Skip to main content

A simple package to connect into AWS KEYSPACES (cassandra)

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 :)

pip install cassandra-driver==3.29.0 --no-binary=cassandra-driver

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=awskeyspaces

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.8.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

awskeyspaces-1.0.8-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file awskeyspaces-1.0.8.tar.gz.

File metadata

  • Download URL: awskeyspaces-1.0.8.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.13

File hashes

Hashes for awskeyspaces-1.0.8.tar.gz
Algorithm Hash digest
SHA256 bf3049bdc11401cee1936c169e79cd4947e8c0c53c5f21e9c7f4312c61bed73e
MD5 2312a40480da8496fdcad4095e9e71ff
BLAKE2b-256 a0449b10337a634d007d7f4194ad8ed04651a4814e159e80c3d506e6d050fc35

See more details on using hashes here.

File details

Details for the file awskeyspaces-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: awskeyspaces-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.13

File hashes

Hashes for awskeyspaces-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 f2794ed29d7eefee1dd5d3f48569347cc243d9007a08eb673c93067c4e8afe21
MD5 289c2e3a030dccf493687c39bbca688d
BLAKE2b-256 e740a5bcdaee382af54e79ecd21de451a23fc0c50e9b63ae2dbc45a5492717e1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page