Skip to main content

DB-API 2.0 interface for OctoDB

Project description

OctoDB for Python3

This is a wrapper library to use OctoDB on Python 3

It is based on pysqlite3

Installation

1. Install the Native Library

You must install the native OctoDB library for this wrapper to work. It can be either pre-compiled binaries or you can compile it by yourself. You can start with the free version

2. Install the Wrapper

With pip

pip install octodb

Cloning and Building

Optionally you can clone the repo and build it:

git clone --depth=1 https://gitlab.com/octodb/octodb-python3
cd octodb-python3
python3 setup.py build install

Usage

import octodb
import time

conn = octodb.connect('file:app.db?node=secondary&connect=tcp://server:port')

# check if the db is ready
while not conn.is_ready():
    time.sleep(0.250)

# now we can use the db connection
...

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

octodb-0.5.0.tar.gz (41.5 kB view details)

Uploaded Source

File details

Details for the file octodb-0.5.0.tar.gz.

File metadata

  • Download URL: octodb-0.5.0.tar.gz
  • Upload date:
  • Size: 41.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.11

File hashes

Hashes for octodb-0.5.0.tar.gz
Algorithm Hash digest
SHA256 476e01e65757817b901186bb95d1fd0278dbae479160f566a713d9dfffca8f6c
MD5 b425aeb0cfcf505fe949da79b7820478
BLAKE2b-256 3b9af2b5446e62d14f31e81ee7fe55283575c3c0d75c874ffacfced79475de6e

See more details on using hashes here.

Supported by

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