Aerospike

Latest version: v16.0.2

Safety actively analyzes 722296 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 17

11.0.1

Breaking Changes

Revert adding base64 methods to aerospike module

These methods have been removed from the aerospike module due to memory errors when they are called:

1. `aerospike.get_expression_base64()`
2. `aerospike.get_cdtctx_base64()`

Course of action

Call these methods from a client instance instead of the `aerospike` module. Assuming `client` is an instance of `aerospike.Client`, the above calls should be replaced by:

1. `client.get_expression_base64()`
2. `client.get_cdtctx_base64()`

Bug Fixes
* [CLIENT-2267] Revert adding base64 methods to aerospike module.

11.0.0

Breaking Changes

Batch methods: stop accepting a tuple of keys and bins

For the following functions:
* `client.get_many()`
* `client.exists_many()`

The `keys` parameter no longer takes in a tuple of keys. It only takes in a list of keys.

In addition, `client.select_many()` no longer takes in a tuple for the `keys` and `bins` parameters. Those parameters only take in a list of keys and bins, respectively.

Course of action:

Change code such as this:
python
keys = (("test", "demo", 1), ("test", "demo", 2))
bins = ("bin1", "bin2")
client.select_many(keys, bins)

...to this instead:
python
keys = [("test", "demo", 1), ("test", "demo", 2)]
bins = ["bin1", "bin2"]
client.select_many(keys, bins)

Expressions: add support for comparing KeyOrderedDicts (new server feature)

10.0.1

Bug Fixes
* [CLIENT-2157] - udf_put(): Stop hanging behavior when copying lua file to user path.

10.0.0

Important Note
- **A bug affecting this version of the Python client has been identified. On ARM chipsets only, disk space may increase until out of space, we strongly recommend that you upgrade to Python client 10.0.1 at the earliest opportunity.**

Breaking Changes
- get_cdtctx_base64(): take in context directly instead of a dictionary. See [Incompatible API Changes](https://developer.aerospike.com/client/python/incompatible#version-1000) for details.

Improvements
- [CLIENT-1612] - Support Python 3.10.
- [CLIENT-2090] - Support Python 3.11.
- [CLIENT-2114] - Add support for Alpine linux.
- [CLIENT-2047] - Add info policy to client config.
- [CLIENT-1989] - get_cdtctx_base64(): take in context directly instead of a dictionary.

Bug Fixes
- [CLIENT-2121] - query.apply(): make argument parameter optional.

9.0.0

Breaking Changes
- Change default send_bool_as constant to AS_BOOL. See [Incompatible API Changes](https://developer.aerospike.com/client/python/incompatible#version-900) for details.
- batch_get_ops(): Remove meta field.
- scan_apply(): Report correct error value and message if scan wait fails.

Improvements
* [CLIENT-2074] - Change default send_bool_as constant to AS_BOOL.
* [CLIENT-2004] - Add missing bin type for server booleans.
* [CLIENT-2012] - scan_apply(): Report correct error value and message if scan wait fails.

Bug Fixes
* [CLIENT-2005] - Docs: add missing batch policy "respond_all_keys".
* [CLIENT-2075] - Docs: add missing batch policy "allow_inline_ssd".
* [CLIENT-2008] - batch_get_ops(): Remove meta field.

8.0.0

python
config = {
'hosts': hosts,
'policies': {'auth_mode': aerospike.AUTH_INTERNAL},
'user': user,
'password': password
}
client = aerospike.client(config)
following is no-op
client.connect(user, password)

Having the client connect to the server when the constructor is called makes the Python client's behavior more
consistent with our other clients, and it also removes the possibility of an application trying to perform server
operations with the client without a connection.

If you are using a `try/except` block and have the constructor call outside of the `try` block, move
the constructor call into the `try` block. If an exception happens, it would be coming from the
constructor and not the connect() method.

This line of code:
python
client = aerospike.client(config).connect()

should not have an issue.

But code such as this:
python
client = aerospike.client(config)
try:
client.connect()
except Exception:
eat exception and do something

Should be changed to this instead:
python
try:
client = aerospike.client(config)
except Exception:
eat exception and do something


[CLIENT-1863] Build using pyproject.toml (298)
The commands to build and install the client for developers has changed from:
sh
python3 setup.py build --force
python3 setup.py install --force

to:
sh
pip install build
python3 -m build
pip install .

Page 3 of 17

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.