https://github.com/anubhav-narayan/xdbx
XDBX DataBase eXtension is a SQLite3 wrapper with Pythonic dict-like interface for easier database manipulation and NOSQL support with JSON Storage
https://github.com/anubhav-narayan/xdbx
database nosql-database sqlite3
Last synced: over 1 year ago
JSON representation
XDBX DataBase eXtension is a SQLite3 wrapper with Pythonic dict-like interface for easier database manipulation and NOSQL support with JSON Storage
- Host: GitHub
- URL: https://github.com/anubhav-narayan/xdbx
- Owner: anubhav-narayan
- License: mit
- Created: 2022-11-25T04:52:34.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-18T12:30:22.000Z (almost 3 years ago)
- Last Synced: 2025-02-02T08:45:28.571Z (over 1 year ago)
- Topics: database, nosql-database, sqlite3
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
XDBX - XDBX DataBase eXtention
====================================

A Python3 wrapper around sqlite3 database, can also be used as a JSON document storage.
Pythonic dict-like interface and support for multi-thread access derived
from [sqlitedict](https://github.com/RaRe-Technologies/sqlitedict) exclusively for
Python3.6+.
```python
from xdbx import Database
db = Database('./my_db.sqlite', autocommit=True)
tab = db['mytab']
tab['some_key'] = 'any_picklable_object'
print(tab['some_key']) # prints the value
for key, value in mydict.items():
print(key, value)
print(len(mydict)) # etc. most dict functions work
mydict.close() # close connection
```