Skip to main content

The official Python SDK for AnkhDB - Real-time Multi-tenant BaaS.

Reason this release was yanked:

Old versions are no longer supported. Upgrade to 2.x

Project description

ankhdb

The official Python SDK for AnkhDB - A real-time, multi-tenant Backend-as-a-Service.

Installation

pip install ankhdb

Usage

Initialize the Client

You'll need your Project API Key from the AnkhDB Dashboard.

from ankhdb import AnkhDB

db = AnkhDB(api_key="YOUR_API_KEY", base_url="http://localhost:5000")

Authentication

Manage your app's end-users seamlessly.

# Register
response = db.register("user@example.com", "securepassword")

# Login
db.login("user@example.com", "securepassword")

# Logout
db.logout()

Database Operations

AnkhDB uses a flexible NoSQL-on-SQL structure.

# Insert a document into 'posts' collection
new_post = db.from_collection("posts").insert({
    "title": "Hello from Python",
    "content": "AnkhDB is great!"
})

# Fetch all posts
posts = db.from_collection("posts").select()

# Get by ID
my_post = db.from_collection("posts").get("doc-id")

License

MIT

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

ankhdb-1.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

ankhdb-1.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file ankhdb-1.1.0.tar.gz.

File metadata

  • Download URL: ankhdb-1.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for ankhdb-1.1.0.tar.gz
Algorithm Hash digest
SHA256 f535f69ba0cc8d1393b56cbd20ab2c5b312b20a19e62d3841f2d757642874278
MD5 4f5eba92075d2e12f1bd2a2a809c7377
BLAKE2b-256 50c4bc8755991bcb296513812ccf8ac4784fb20e9e8676a29c0607039655fe59

See more details on using hashes here.

File details

Details for the file ankhdb-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: ankhdb-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for ankhdb-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d0aeff1a12698d19239863ce9b03ce1939ca3109264f38493030e781134c9d0
MD5 bfe4cfd8d7be98bb9439c078362925b8
BLAKE2b-256 0c35c8178196c711a87261b48300ca7a4b07b64d15f4cfe957c81dc9a655ea90

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