Current collected state Current
Observed since 20 Oct, 20:48 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Python interface to Aerospike REST Client
Python interface to the Aerospike REST Client.
Provides a simple convenience wrapper around requests for using the Aerospike REST Client in Python.
from aerospike_rest.api import AerospikeRestApi
api = AerospikeRestApi('http://localhost:8080/v1')
bins = {'mybin': "Hello World!"}
api.post('/kvs/mynamespace/myset/mykey', bins)
from aerospike_rest.api import AerospikeRestApi
from aerospike_rest.exceptions import AerospikeRestApiError
api = AerospikeRestApi('http://localhost:8080/v1')
api.http_compression = False
api.client_compression = True
api.authorization = 'Authorization: Basic YWRtaW46YWRtaW4='
bins = {'mybin': "Hello World!"}
params = {
'recordExistsAction': "CREATE_ONLY"
}
headers = {
'X-Custom-Header': 'hello'
}
try:
api.post('/kvs/mynamespace/myset/mykey', bins, params, headers, timeout=10)
except AerospikeRestApiError as err:
if err.code == KEY_EXISTS_ERROR:
pass
else:
raise err
Run unit tests from the root directory:
python -m unittest -v -b
View test coverage from root directory:
coverage run --source=aerospike_rest/ -m unittest -v -b && coverage report
git checkout -b version/v1.0.0)aerospike_rest/__init__.py and commit the changegit tag -a v1.0.0 -m 'Release v1.0.0Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2.1 | 14 Feb 2022 | 1 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 20:48 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:d08b730906512af1743b21192f8093b8faf398b12823e12b19cb5ac63ef8035e