Skip to main content

Ocient Database Python API

Project description

Ocient Database Python API

This python database API conforms to the Python Database API Specification 2.0 and can be used to access the Ocient database.

This module can also be called as a main function, in which case it acts as a primitive CLI for the database.

When called as main, it a connection string in DSN (data source name) format, followed by zero or more query strings that will be executed. Output is returned in JSON format.

The Ocient DSN is of the format: ocient://user:password@[host][:port][/database][?param1=value1&...]

user and password must be supplied. host defaults to localhost, port defaults to 4050, database defaults to system and tls defaults to off.

Currently supported parameters are:

  • tls: Which can have the values "off", "unverified", or "on"
  • force: Which can have the values "true"
  • handshake: Which can have the value "cbc", "gcm", or "sso".

For the handshake protocols, "cbc" (Cipher Block Chaining) denotes a previous password encryption protocol which should be avoided. "gcm" (Galois/Counter Mode), which pyocient will default to, is recommended. If single sign on is desired, then "sso" should be used.

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

pyocient-1.0.9.tar.gz (47.3 kB view details)

Uploaded Source

Built Distribution

pyocient-1.0.9-py2.py3-none-any.whl (48.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pyocient-1.0.9.tar.gz.

File metadata

  • Download URL: pyocient-1.0.9.tar.gz
  • Upload date:
  • Size: 47.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.12

File hashes

Hashes for pyocient-1.0.9.tar.gz
Algorithm Hash digest
SHA256 b0d4547a136f530cf779caa94b30bab27f690f1368109c74922dc48d012d5777
MD5 860c77a3826768f48852356dab8c6e31
BLAKE2b-256 4ad66d60d5bf8ad5ea463f0519727d93f8d3da3cac3a995758d9256c3fe267f4

See more details on using hashes here.

Provenance

File details

Details for the file pyocient-1.0.9-py2.py3-none-any.whl.

File metadata

  • Download URL: pyocient-1.0.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 48.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.12

File hashes

Hashes for pyocient-1.0.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 87d54a9efcc7fb62c82f28576c0a3770b5abe2d6a6a9d27b2757d20f3101e8ad
MD5 4ba6aad8cfbe36ab47604857699f79a8
BLAKE2b-256 ef05ee89d6018e15af843910ab03ba021e3fe8a8e16351a6fe886f6c2b9d7166

See more details on using hashes here.

Provenance

Supported by

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