AWS KEYSPACES connector Package
Project description
PYTHON AWS KEYSPACES CONNECTOR
AWS KEYSPACES Connector Package
Tech Core
What do i need to know before using this code?
TLS always on 9142
Port Authentication Mechanism
9142 TLS client authentication, with certificates
- required aws cert
curl https://www.amazontrust.com/repository/AmazonRootCA1.pem -O
Cassandra Driver Performance
- Linux Like
sudo apt install libev-dev
sudo yum install libev-devel
apk add libev-dev
- MacOS
brew install libev
Compiled is better :)
Env Vars
Load env vars for your cluster connection
REGION=us-east-1
CLUSTER_KSP=my_keyspace
CLUSTER_HOST="cassandra.${REGION}.amazonaws.com"
CLUSTER_PORT=9142
CLUSTER_USER="****************"
CLUSTER_PASS="****************"
export CLUSTER_KSP CLUSTER_HOST CLUSTER_USER CLUSTER_PASS CLUSTER_REGION
How to install
- Load virtual env
python3.8 -m venv venv
. venv/bin/activate
- Install package
pip install -r requirements.txt
# or
make init
# or
python setup.py install
- Why Not?
pip install -e git+https://bitbucket.org/labunix/awskeyspaces.git@master#egg=keyspaces
Connected?
from awskeyspaces.connection import connect
@connect
def dbsetup():
pass
Contribution
twine upload package
python3 -m pip install --upgrade build
python3 -m build
python3 -m pip install --user --upgrade twine
python3 -m twine upload dist/*
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
awskeyspaces-1.0.6.tar.gz
(10.6 kB
view hashes)
Built Distribution
Close
Hashes for awskeyspaces-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2694393f220fd42f64134ce5ecbb5e426f779fa790d6e4d54ce3e932ec458776 |
|
MD5 | e4a0c9adc621bfcb1d526c665ea3c356 |
|
BLAKE2b-256 | 130a6d28eb480836eb9a84e21c6955333fd1db8f215744b945e913e1466fd82a |