Skip to main content
https://raw.githubusercontent.com/aurkaxi/AshenDB/master/docs/source/AshenDB_Logo.png Documentation Status

AshenDB

AshenDB is a another stupid library for using json as Database. It mimics MongoDB functionalities.

Why AshenDB?

  • MongoDB : Needs a server to run. You can clone your MongoDB to AshenDB. AshenDB is highly inspired from MongoDB, it uses MongoDB like syntax, which makes it easy to use for beginners as well as for MongoDB users.

  • TinyDB : Too simple. Query and Update Operators such as $set, $inc are not supported. Check all the supported Operators in AshenDB. Also it is not thread safe.

  • JsonDB : It is not thread safe. Neither it supports mongodb like syntax.

Why not AshenDB?

It is immature. It doesn’t use separate server but uses json as a database. Which may be good for small or medium projects but for large and scalable projects it is recommended to use MongoDB with Redis as a cache.

Installation

It is available on PyPI. You can install it using pip.

pip install ashendb

Usage

>>> from ashendb import AshenDB
# Assuming you are inside a async function
>>> db = await AshenDB.get_db('test')
>>> db
<AshenDB: test>
>>> coll = await db.get_coll('users')
>>> coll
<Collection: users>
>>> doc = await coll.get_doc('user1')
>>> doc
<Document: user1>
>>> print(doc)
{'_id': 'user1'}

Documentation

Documentation is available at Read the Docs.

Contributing

  • Open an issue.

  • Fork the repository -> New Branch -> Make Changes -> Open a Pull Request.

Metadata

Release files for AshenDB 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for AshenDB 0.0.8
File Size Uploaded
AshenDB-0.0.8.tar.gz 10.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for AshenDB 0.0.8
File Interpreter ABI Platform
AshenDB-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 24.0 kB

Release files / AshenDB-0.0.8.tar.gz

Download URL AshenDB-0.0.8.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e2bd476ae34863955b1068742f95416b4a61566ef5e28fd8a48953819cfbe888
BLAKE2b-256 checksum
How to use checksums
ba433bcf50fa5ed117ad08dd669b30aad15f09088cd6d65b60d94918e0679a2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / AshenDB-0.0.8-py3-none-any.whl

Download URL AshenDB-0.0.8-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d07ffb1fddecd51043f146c00490170d2b62f2bb40a982ae59a2a24dda10681b
BLAKE2b-256 checksum
How to use checksums
7a27e14c68bc6490bc1bb27f4fe3191eb99f84abe8c9b7df0cfac62dcec4f177
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page