Open_PyDb is a unique way to change open source unstructure dataabases, it makes use of Jsonl files to store big amounts of data
Project description
Open-PyDB
An unstructured database module for Python
Open-PyDB is a simple, lightweight, and flexible open-source database for that allows users to make use of unstruct data. It provides a simple, flexible and extensible way to data. The project contains the code for a simple database manager using a Client class to interact with a database The database manager supports creating and deleting databases and collections, as well as adding and deleting data from collections.
Instalation
For Windows
pip install open-pydb
For Mac and Linux
pip3 install open-pydb
Usage
Here's an example of how to use Open-DB:
from open_db import Client
# Create a new client
client = Client()
# Add a new database
db = client.add_db("Users")
# Get the database
db = client.get_db()
# Get the collections in the database
collections = db.get_collections()
# Add data to the first collection
collections[0].add_data(id="2", name="Get with me")
# Delete data from the first collection
collections[0].delete_data(collections[0].data)
Data Model
Open-DB uses a simple data model based on the Data class. Here's an example of how to use the Data class:
from open_db_JOHN_PAUL.data_model import Data
# Create a new data object
data = Data(foo='bar', baz=42)
# Convert the data object to a JSON string
json_data = data.to_json()
# Convert a JSON string to a data object
new_data = Data.from_json(json_data)
Contributing
We welcome contributions to Open-DB! If you'd like to contribute, please fork the repository and make your changes in a new branch. Once you're ready to submit your changes, open a pull request and we'll review your changes as soon as possible.
License
Open-DB is released under the MIT License. See the LICENSE file for details.
Contact
For any questions or issues, please feel free to contact at johnpar2004@gaml.com.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 open_pydb-0.1.0.tar.gz.
File metadata
- Download URL: open_pydb-0.1.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a2d0bb6c04d3113af603e075d01bdb245d098f52bfab50d7168669bcf8d2db4
|
|
| MD5 |
924466b5df16201f69a8aaae166d0508
|
|
| BLAKE2b-256 |
e4641bb8bc59e092d4696917b318c901aa573c9d6e4806d7c126216cd7a40cba
|
File details
Details for the file open_pydb-0.1.0-py3-none-any.whl.
File metadata
- Download URL: open_pydb-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d185ce37e71398119f4acf7d3a88487ccf24e736202ebed0bd065ff6fd3f6696
|
|
| MD5 |
8fb3b9066471249faa32017cda563588
|
|
| BLAKE2b-256 |
7bd9a47820f7456ce22b59b8b4b58f47ae3f8d5709f457c824a51ea1ccee1736
|