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

Uploaded Source

Built Distribution

pyocient-1.0.2-py2.py3-none-any.whl (45.1 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: pyocient-1.0.2.tar.gz
  • Upload date:
  • Size: 44.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.8.5

File hashes

Hashes for pyocient-1.0.2.tar.gz
Algorithm Hash digest
SHA256 a9bf2fc08803a5a419f9215174e683913472137203632b83bd3dc39e7fc921c0
MD5 9956b9155d02630c323e26be9e1cf6b6
BLAKE2b-256 cd8091444a4c3b1d794938add8e6dda7d37ef55e823a757eadb1a89eb9174cab

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyocient-1.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 45.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.8.5

File hashes

Hashes for pyocient-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1efbe210619e1b505d191b143793e180d37a89e8215ecd423f7214e4d50c975e
MD5 03876d17b5f18fb9a65572c2cc915744
BLAKE2b-256 6a49c128bcc47e7eb96bac650a2785c75c9bcff8df5405d52b7bdc10ef79d50a

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