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 databasescreate_database(name)- Create new databasecollection(database, collection)- Get collection instance
Collection Methods
find(query=None)- Find documentsfind_one(doc_id)- Find document by IDinsert_one(document)- Insert single documentinsert_many(documents)- Insert multiple documentsupdate_one(doc_id, update)- Update documentdelete_one(doc_id)- Delete documentcount()- 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dudwalls_python-1.0.1-py3-none-any.whl.
File metadata
- Download URL: dudwalls_python-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa11dd4543af7d5bc35a9d131813407d88e6adb8365192668b294b491d8c574e
|
|
| MD5 |
f2b2f46dc3e364bd88112110599f1f22
|
|
| BLAKE2b-256 |
d72746bcafe93ae42b0941cf3d1f061dc3dfb42c853390dc6810315bc57b0716
|