• Stars
    star
    131
  • Rank 274,291 (Top 6 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created about 10 years ago
  • Updated 24 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Aerospike Python Client

Aerospike Python Client

Build Release Wheel Downloads License

Compatibility

The Python client for Aerospike works with Python 3.7 - 3.11 and supports the following OS'es:

  • macOS 11 and 12
  • CentOS 7 Linux
  • RHEL 8 and 9
  • Amazon Linux 2023
  • Debian 10, 11, and 12
  • Ubuntu 20.04 and 22.04

The client is also verified to run on these operating systems, but we do not officially support them (i.e we don't distribute wheels or prioritize fixing bugs for these OSes):

  • Alpine Linux

NOTE: Aerospike Python client 5.0.0 and up MUST be used with Aerospike server 4.9 or later. If you see the error "-10, β€˜Failed to connect’", please make sure you are using server 4.9 or later.

Install

pip install aerospike

In most cases pip will install a precompiled binary (wheel) matching your OS and version of Python. If a matching wheel isn't found it, or the --install-option argument is provided, pip will build the Python client from source.

Please see the build instructions for more.

Troubleshooting

# client >=3.8.0 will attempt a manylinux wheel installation for Linux distros
# to force a pip install from source:
pip install aerospike --no-binary :all:

# to troubleshoot pip versions >= 6.0 you can
pip install --no-cache-dir aerospike

If you run into trouble installing the client on a supported OS, you may be using an outdated pip. Versions of pip older than 7.0.0 should be upgraded, as well as versions of setuptools older than 18.0.0.

Troubleshooting macOS

In some versions of macOS, Python 2.7 is installed as python with pip as its associated package manager, and Python 3 is installed as python3 with pip3 as the associated package manager. Make sure to use the ones that map to Python 3, such as pip3 install aerospike.

Attempting to install the client with pip for the system default Python may cause permissions issues when copying necessary files. In order to avoid those issues the client can be installed for the current user only with the command: pip install --user aerospike

# to trouleshoot installation on macOS try
pip install --no-cache-dir --user aerospike

Build

For instructions on manually building the Python client, please refer to BUILD.md.

Documentation

Documentation is hosted at aerospike-python-client.readthedocs.io and at aerospike.com/apidocs/python.

Examples

Example applications are provided in the examples directory of the GitHub repository

For examples, to run the kvs.py:

python examples/client/kvs.py

Benchmarks

To run the benchmarks the python module 'tabulate' need to be installed. In order to display heap information the module guppy must be installed. Note that guppy is only available for Python2. If guppy is not installed the benchmarks will still be runnable. Benchmark applications are provided in the benchmarks directory of the GitHub repository

By default the benchmarks will try to connect to a server located at 127.0.0.1:3000 , instructions on changing that setting and other command line flags may be displayed by appending the --help argument to the benchmark script. For example:

python benchmarks/keygen.py --help

License

The Aerospike Python Client is made availabled under the terms of the Apache License, Version 2, as stated in the file LICENSE.

Individual files may be made available under their own specific license, all compatible with Apache License, Version 2. Please see individual files for details.

More Repositories

1

aerospike-server

Aerospike Database Server – flash-optimized, in-memory, nosql database
C
1,036
star
2

aerospike-client-go

Aerospike Client Go
Go
430
star
3

aerospike-client-java

Aerospike Java Client Library
Java
234
star
4

aerospike-client-nodejs

Node.js client for the Aerospike database
JavaScript
198
star
5

act

Aerospike Certification Tool
C
188
star
6

aerospike-server.docker

Dockerfiles for Aerospike Server
Shell
141
star
7

aerospike-client-c

Aerospike C Client
C
95
star
8

aerospike-kubernetes-operator

Kubernetes operator for the Aerospike database
Go
91
star
9

aerospike-client-rust

Rust client for the Aerospike database
Rust
81
star
10

aerospike-client-csharp

Aerospike C# Client Library
C#
70
star
11

aerospike-client-ruby

Ruby client for the Aerospike database
Ruby
60
star
12

aerospike-kubernetes

Mustache
51
star
13

aerospike-common

Common Library
C
47
star
14

aerospike-loader

Aerospike Data Loader
Java
39
star
15

aerospike-admin

Aerospike Administration tool: allows operations to view vital stats from the aerospike server from the command line.
Python
38
star
16

aerospike-prometheus-exporter

Monitoring suite for the Aerospike DB
Go
36
star
17

aerospike-monitoring

Python
33
star
18

aerospike-vector-search-examples

aerospike-vector-search-examples
Python
29
star
19

aerospike-jdbc

Minimalist JDBC driver for Aerospike
Java
27
star
20

asmalloc

Aerospike Memory Allocation Tracking Tool
C
26
star
21

aws-cloudformation

AWS CloudFormation scripts related to Aerospike
25
star
22

aerospike-tools-backup

Aerospike backup and restore utility
C
25
star
23

jemalloc

Aerospike Fork of the JEMalloc Memory Allocator
C
21
star
24

gommander

Go library to manage multiple servers over SSH
Go
18
star
25

aerospike-tools.docker

Aerospike Tools Dockerfile
Dockerfile
18
star
26

aerolab

Quickly spin up Aerospike clusters on docker or in AWS
Go
17
star
27

aerospike-kubernetes-enterprise

Shell
17
star
28

java-object-mapper

The Java Object Mapper is a simple, light-weight framework used to map POJOs to the Aerospike database. Using simple annotations or a configuration YAML file to describe how to map the data to Aerospike, the project takes the tedium out of mapping the data through the powerful, low level interface.
Java
17
star
29

aerospike-benchmark

A tool to benchmark the Aerospike Database.
C
15
star
30

aerospike-rest-gateway

REST client for the Aerospike database
Java
15
star
31

aerospike-server-enterprise.docker

Dockerfile for Aerospike Server Enterprise Edition
Shell
15
star
32

aerospike-mod-lua

Lua Interface Module for Aerospike Server and C Client
C
12
star
33

aerospike-document-lib

Aerospike Java Document API
Java
11
star
34

aerospike-backup-service

Aerospike Backup Service
Go
10
star
35

aerospike-client-java-reactive

Reactive programming interfaces for the Aerospike Java client
Java
9
star
36

aerospike-lua-core

Aerospike Lua Core Library
Lua
9
star
37

php-client

Aerospike Client for PHP 8
Rust
9
star
38

backup-go

A go library for backup and restore
Go
9
star
39

luajit

Aerospike Fork of the Lua JIT (Just-In-Time Compiler) http://luajit.org/
C
8
star
40

aerospike-connect-inbound-sdk

Inbound SDK for custom transforms or other plugins
Java
8
star
41

aerospike-dev-notebooks.docker

Repo for a docker image with Server, Jupyter, Python client, Tools and Notebooks
Jupyter Notebook
8
star
42

asmt

Backup & restore shmem indexes.
C
7
star
43

aerospike-tools-validation

C
7
star
44

aerospike-management-lib

A library to hold aerospike management and operations tasks.
Go
6
star
45

lua-bac

The Lua programming language with CMake based build
C
6
star
46

aerospike-docker-swarm

Python
6
star
47

graph-synth

Graph Synthesis Tool
Java
5
star
48

aql

The Aerospike Quick Look data browsing utility.
C
5
star
49

trino-aerospike.docker

Trino with the Aeropsike connector Docker Image
Shell
5
star
50

aerospike-client-rest-kubernetes

Aerospike REST client Helm chart for Kubernetes
Smarty
5
star
51

aerospike-elk

Starting point for using Aerospike with ElasticSearch / LogStash / Kibana for log file analysis.
5
star
52

document-lib-python

Python
5
star
53

aerospike-telemetry-agent

Aerospike Telemetry Agent: Anonymized Usage Data Collector.
Python
4
star
54

asconfig

A CLI tool for managing Aerospike configuration files.
Go
4
star
55

s2-geometry-library

C++
4
star
56

aerospike-connect-outbound-sdk

An outbound SDK for creating custom transforms for streaming connectors.
Java
3
star
57

tools-common-go

Common library used in tools golang projects.
Go
3
star
58

avs-client-go

πŸš€βž‘οΈπŸ”πŸΉ
Go
3
star
59

asvec

Aerospike Vector CLI
Go
3
star
60

aerospike-kubernetes-init

Go
2
star
61

kubernetes-operator

Website for the Aerospike Kubernetes Operator
JavaScript
2
star
62

helm-charts

Public helm charts for Aerospike
Shell
2
star
63

avs-client-python

πŸš€βž‘οΈπŸ”πŸ Aerospike Vector Search Client for Python
Python
2
star
64

schemas

Location for public aerospike schemas (json / yaml / xml / etc)
2
star
65

cloud-qualification

Scripts and instructions to run benchmarks/tests on cloud environments.
Python
2
star
66

aerospike-kubernetes-operator-ctl

Aerospike kubernetes operator command line tool
Go
1
star
67

secret-agent-client-c

C
1
star
68

azure-resource-manager

Shell
1
star
69

cf-service-broker-tile

Package up the Aerospike Service Broker into a Pivotal Cloud Foundry tile
Python
1
star
70

aerospike-database-recovery

Aerospike Database Recovery Documentation
Shell
1
star
71

cf-managed-service-tile

Cloud Foundry Managed Service for Aerospike
Shell
1
star
72

aerospike-net-extensions

Aerospike .NET Extensions [IDistributedCache]
C#
1
star
73

aerospike-proxy-client-sdk

Aerospike Proxy Client SDK for building clients
Kotlin
1
star
74

movement

Parallel Dataflow System
Java
1
star
75

abseil-cpp

C++
1
star