Skip to main content

Official Python SDK for Dudwalls NoSQL Database

Project description

Dudwalls Python SDK

Official Python SDK for Dudwalls NoSQL Database.

Installation

pip install dudwalls-python

Quick Start

from dudwalls import Dudwalls
import os

# Initialize with your API key
db = Dudwalls(os.getenv('DUDWALLS_API_KEY'))

# Get a collection
users = db.collection('myapp', 'users')

# Insert a document
user = users.insert_one({
    'name': 'John Doe',
    'email': 'john@example.com'
})

# Find documents
all_users = users.find()

API Reference

Constructor

Dudwalls(api_key, base_url='https://dudwalls.me/api/dudwalls')

Methods

  • get_databases() - Get all databases
  • create_database(name) - Create new database
  • collection(database, collection) - Get collection instance

Collection Methods

  • find(query=None) - Find documents
  • find_one(doc_id) - Find document by ID
  • insert_one(document) - Insert single document
  • insert_many(documents) - Insert multiple documents
  • update_one(doc_id, update) - Update document
  • delete_one(doc_id) - Delete document
  • count() - Count documents

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 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.

dudwalls_python-1.0.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for dudwalls_python-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa11dd4543af7d5bc35a9d131813407d88e6adb8365192668b294b491d8c574e
MD5 f2b2f46dc3e364bd88112110599f1f22
BLAKE2b-256 d72746bcafe93ae42b0941cf3d1f061dc3dfb42c853390dc6810315bc57b0716

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