Skip to main content

Codex DB Python SDK

Project description

CodexDB Python SDK

Python SDK for CodexDB. Simple wrapper for codex-cli as an external process.

Installation

Install via pip (from local directory):

pip install .

Or, for development:

pip install -e .

Usage Example

from codex_sdk import CodexClient

client = CodexClient(file='test.db')
client.set('user:1', {'name': 'Alice', 'age': 30})
print(client.get('user:1'))
print(client.keys())
client.delete('user:1')

Requirements

  • Python 3.7+
  • codex-cli binary available in your PATH

Publishing to PyPI

To publish this package to PyPI:

  1. Install build and twine:
    pip install build twine
    
  2. Build the package:
    python -m build
    
  3. Upload to PyPI:
    twine upload dist/*
    

For test uploads, use https://test.pypi.org/legacy/ with twine's --repository testpypi option.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codex_db_sdk-0.1.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file codex_db_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: codex_db_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for codex_db_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96c554b01915cde38b6a3ac2dc51e7abdeb4e3ccc4946f27d1a06051d6fe02c4
MD5 0b53b1b2ad91fc425a9a60b195ca6b41
BLAKE2b-256 cbbcce3ad0726a9ad9529c9a660203b9a1ba6c47fb869e8cbef2f1e727a5a793

See more details on using hashes here.

Supported by

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