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.0.1.tar.gz (3.2 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.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ankhdb-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4a003d919f2e5b7187a0eadab45c7cac196fe5d94fd94edc6e8eab47833f3626
MD5 3b858a96042f697187f632e47ce0f914
BLAKE2b-256 e096b7c107d36d5d07453cf636f276218f5eaae911aafcdcded1e21435a38e40

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ankhdb-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 23a13bda96c8fff393869b264fcf0ff959221e25d2fb90e4bca305a9f86a1a48
MD5 1af6f22977f44bd3ee33c6e49eeabe9d
BLAKE2b-256 84432dc9f7ffa2e2c9d28d0100ececddc4812135fb86c82369d6a5b2c8c6866b

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