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 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 unverified.

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.

Release notes are available at https://github.com/ocient/pyocient_release/

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

Uploaded Source

Built Distribution

pyocient-3.0.3-py2.py3-none-any.whl (44.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: pyocient-3.0.3.tar.gz
  • Upload date:
  • Size: 43.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for pyocient-3.0.3.tar.gz
Algorithm Hash digest
SHA256 1fa7dfc2bfe406d1e3e5ceba23df658150bb1b5311ad6209c8e5446647a923c8
MD5 af8dbcc2a992a8b4361f84239627c4cf
BLAKE2b-256 bafe04c4a726710608d00ea398e1262f292d18f5e42a2d9be1bb438ff393d415

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyocient-3.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 44.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for pyocient-3.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a4e84ea934d500bb5a8ca23ef9e8a84769659875dc30a5c3e2a3a2f6c47ec070
MD5 a97d178905234879bfdf53b752d29481
BLAKE2b-256 fe9d829bac37fe21f5936677af2b7468bbd05440d9ec9fcef624e9e1112c4733

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