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

Uploaded Source

Built Distribution

pyocient-1.0.5-py2.py3-none-any.whl (46.8 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: pyocient-1.0.5.tar.gz
  • Upload date:
  • Size: 46.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for pyocient-1.0.5.tar.gz
Algorithm Hash digest
SHA256 e30272c53f4b3dd307a2692a480d8129d1e40cf8a722e7e77c54546d6c21f2cd
MD5 44ce1e179663972b28229b05a01e9958
BLAKE2b-256 b5e42757c6541f59c3b7cc4b1160a2239bb077c1b642707da5d7e36dee7248ee

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyocient-1.0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 46.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for pyocient-1.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c6c05bef553b12f99d7bb883854b7ddffc78df15cfb8ae43bdb14b093708091e
MD5 37e3f2fa9e54855842121a99e76b463d
BLAKE2b-256 a6400c405f99066a4c0c60a23af7a12d6a93a69983cdca0514f0c6e1ffb40319

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