Skip to main content

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

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cygnusdb-0.1.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cygnusdb-0.1-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

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

Hashes for cygnusdb-0.1.tar.gz
Algorithm Hash digest
SHA256 62d656a00cdb0ac037bc955e77c7e3dd712d36d5307107a56abff82340130e71
MD5 efb2d6c7f2bd923567014217b4099d5a
BLAKE2b-256 973d8ba93a287e747812b4cbd6a82335c91db2ba132f7fa3c2697c0d3110fd7b

See more details on using hashes here.

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

Hashes for cygnusdb-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 998a74e867d405af2644e8948d08e7a617c5886a872bfdc86bc76c0964f9e826
MD5 757a698698dcd33c80fd4136a0eaa532
BLAKE2b-256 026e6bc2af7e6553fe58ce8ccf648a7816fb4b65f4fa38ace712d840675ebb8b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page