Simple, lightweight python database.
Project description
# CygnusDB
CygnusDB is a lightweight python database that uses no external libraries.
Uses JSON for data storage with the .db file extension.
Uses OS for file path.
Basic functionality: set, get, delete, and reset
## Why use CygnusDB?
It’s simple. It takes very few lines of code to modify a database file, and it works for basic applications where MongoDB or SQLITE are overkill.
It’s easy to get started with. All you do is import cygnusdb, set the file path to your .db file, and write whatever code you need to utilize the database.
### Installation
Currently CygnusDB is not on PyPi, so you have to clone the repo and execute pip install . in the root directory of the project.
### Usage
In order to use CygnusDB, you need to install it like is outlined above. After installation, you simply need to import it:
`py from cygnusdb import CygnusDB `
Then, define the file path of your .db file:
`py db = CygnusDB("./user.db") `
Once that is done, you can modify database data with simple code:
`py db.set("name" , "Xhsted") `
And retrieve the data:
`py db.get("name") `
Since it uses JSON, the data is very versatile, and you can save data under any name you may want, such as a name, email, or even a personal bio.
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 cygnusdb-0.1.tar.gz.
File metadata
- Download URL: cygnusdb-0.1.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62d656a00cdb0ac037bc955e77c7e3dd712d36d5307107a56abff82340130e71
|
|
| MD5 |
efb2d6c7f2bd923567014217b4099d5a
|
|
| BLAKE2b-256 |
973d8ba93a287e747812b4cbd6a82335c91db2ba132f7fa3c2697c0d3110fd7b
|
File details
Details for the file cygnusdb-0.1-py3-none-any.whl.
File metadata
- Download URL: cygnusdb-0.1-py3-none-any.whl
- Upload date:
- Size: 1.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
998a74e867d405af2644e8948d08e7a617c5886a872bfdc86bc76c0964f9e826
|
|
| MD5 |
757a698698dcd33c80fd4136a0eaa532
|
|
| BLAKE2b-256 |
026e6bc2af7e6553fe58ce8ccf648a7816fb4b65f4fa38ace712d840675ebb8b
|