Aerospike

Latest version: v15.0.0

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

Scan your dependencies

Page 12 of 16

2.0.2

Features
- `client.operate_ordered(ns, set, key)` function which performs multiple bin operations on a record with a given key,
with the results being returned as a list of (bin-name, result) tuples. _CLIENT-651_

Fixes
- Wrong error message for empty Lua file registration. Now returns AEROSPIKE_ERR_LUA_FILE_NOT_FOUND with a message stating the file is empty. _CLIENT-664_
- Allow integer values for aerocircle queries _CLIENT-688_
- Fix memory leak in operate method when using Unicode Strings. _CLIENT-690_
- Incorporate [PR](https://github.com/aerospike/aerospike-client-python/pull/110) for typo fix in README.rst from raftelti
- Incorporate [PR](https://github.com/aerospike/aerospike-client-python/pull/100) for scan apply fix from hawka to allow empty py_args to `client.can_apply()`
- Incorporate [PR](https://github.com/aerospike/aerospike-client-python/pull/113) to terminate a scan if callback raises an exception from RonRothman

2.0.1

Features
- `aerospike.calc_digest(ns, set, key)` function added to get the digest for a key without requiring a client connection.

Fixes
- `get_many()` with list of 25000 keys or more would seg fault. Switch to heap allocation for requests > 20000 keys.
- `aerospike.null` was implemented as a type incorrectly. This caused pympler to crash after loading aerospike module.
- **Note:** Since it is now a type and not an object, to get an instance you need use `aerospike.null()`.
- Change maximum number of objects that can be serialized from 1024 to 4096 and raise an exception if this limit is bypassed.
- Use C client version 4.0.2 which includes a memory leak fix for `as_operations_new()`

2.0.0

Announcing the Python Client Release 2.0.0

This is a big release which adds support for **Python 3**.
The methods [`exists`](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.exists), [`get`](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.get), and [`select`](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.select) **now raise** a [`RecordNotFound`](http://www.aerospike.com/apidocs/python/exception.html#aerospike.exception.RecordNotFound) exception. In the past you always got back a [record tuple](http://www.aerospike.com/apidocs/python/client.html#aerospike-record-tuple) of (_key_, _meta_, _bins_), then had to check for `meta is not None` to identify a non-existent record.

Features
- **Python 3 compatible** (>= 3.4). _CLIENT-603_
- Upgraded to C client [4.0.0](http://www.aerospike.com/download/client/c/notes.html#4.0.0).
- Raise a [`RecordNotFound`](http://www.aerospike.com/apidocs/python/exception.html#aerospike.exception.RecordNotFound) exception when a record is not found. _CLIENT-533_
- [`aerospike.Client.is_connected()`](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.is_connected) tests the client’s connections to the nodes. _CLIENT-625_
- Added list operators to [`aerospike.Client.operate()`](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.operate). _CLIENT-641_
- Added the scan option [`include_ldt`](http://www.aerospike.com/apidocs/python/scan.html#scan-options). _CLIENT-609_
- Added the [`compression_threshold`](http://www.aerospike.com/apidocs/python/aerospike.html#aerospike.client) config param to the client. _CLIENT-626_
- Removed the deprecated classes `aerospike.Key`, `aerospike.LMap`, `aerospike.LSet`, `aerospike.LStack` . _CLIENT-394_

Fixes
- Fixed a bug where boolean items in a list got cast to integers by list operations. _CLIENT-632_
- Fixed issue 92 wrong exception raised by [`aerospike.LList.find_first`](http://www.aerospike.com/apidocs/python/llist.html#aerospike.LList.find_first). _CLIENT-607_
- Fixed enterprise edition tests. _CLIENT-642_

1.0.59

This release adds support for the [list operations API](http://www.aerospike.com/docs/guide/cdt-list.html), a feature requiring Aerospike server >= [3.7.1](http://www.aerospike.com/download/server/notes.html#3.7.1).

Features
- Implemented [`list_append`](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.list_append), [`list_extend`](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.list_extend), [`list_insert`](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.list_insert), [`list_insert_items`](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.list_insert_items), [`list_pop`](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.list_pop), [`list_pop_range`](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.list_pop_range), [`list_remove`](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.list_remove), [`list_remove_range`](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.list_remove_range), [`list_clear`](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.list_clear), [`list_set`](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.list_set), [`list_get`](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.list_get), [`list_get_range`](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.list_get_range), [`list_trim`](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.list_trim), [`list_size`](https://pythonhosted.org/aerospike/client.html#aerospike.Client.list_size). _CLIENT-560_

1.0.58

This release adds support for [geospatial index and query](http://www.aerospike.com/docs/guide/geospatial.html), a feature requiring Aerospike server >= [3.7.0](http://www.aerospike.com/download/server/notes.html#3.7.0.1).

Features
- Enhanced geospatial queries with new predicates [`geo_within_geojson_region`](http://www.aerospike.com/apidocs/python/predicates.html#aerospike.predicates.geo_within_geojson_region), [`geo_within_radius`](http://www.aerospike.com/apidocs/python/predicates.html#aerospike.predicates.geo_within_radius), [`geo_contains_geojson_point`](http://www.aerospike.com/apidocs/python/predicates.html#aerospike.predicates.geo_contains_geojson_point), and [`geo_contains_point`](http://www.aerospike.com/apidocs/python/predicates.html#aerospike.predicates.geo_contains_point). _CLIENT-601_
- Added support for Amazon environments such as EMR. Thanks ramrengaswamy and BeeswaxIO

Fixes
- Fixed case where a wrong exception was thrown for error status 160. _CLIENT-600_
- Fixed a bug where as_geojson was not casting back to aerospike.GeoJSON. _CLIENT-628_

1.0.57

Features
- Added `aerospike.null` to be used for removing bins with write operations. Using this value with an `aerospike.Client.put` is equivalent to calling [`aerospike.Client.remove_bin`](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.remove_bin) on that bin.
- Added a config param `strict_types` (default: `True`) for controlling whether the client does type checking for write operations. _CLIENT-582_, _CLIENT-574_
- Updated the documentation for [multi-ops](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.operate) and regarding [seed nodes](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.connect).

Fixes
- Fixed issue 91, allowing -1L as a valid bin value. _CLIENT-598_
- Fixed the client to respect an explicit lua [`user_path`](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.udf_put) in its config. _CLIENT-597_
- Fixed the touch operation in [`aerospike.Client.operate`](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.operate) to not require _bin_ or _val_. _CLIENT-584_
- Allow bin names to be null-terminated bytearrays. _CLIENT-581_
- Fixed false-negative tests. _CLIENT-602_

Page 12 of 16

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.