Skip to main content

A simple way to handle database in json.

Project description

Install

  • Linux : python3 -m pip install easydb-json
  • Windows : python -m pip install easydb-json

Author

Discord : Lactua#6319

Github: https://github.com/lactua

Documentation

  • Get started

    To start, you have to create your database in your code by using the init function.

    init (function)

    The init function return you a dict that you can edit and that will be saved in the path that you gave.

    Parameter Type Description
    path string The path of the database file

    Example :

    from easydbjson import init
    
    mydb = init('NiceDir/NiceFile.json')
    
  • Interact with the database

    When you edit the dict that is return from the init function, it automaticly edit the database file. So to interact with the database, interact with the dict.

    Example :

    from easydbjson import init
    
    mydb = init('NiceDir/NiceFile.json')
    
    mydb['name'] = 'Lactua'
    print(mydb['name'])
    
    mydb['name'] = 'Luctau'
    print(mydb['name'])
    
    del mydb['name']
    

    Output :

    Lactua
    Luctau
    

Project details


Download files

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

Source Distribution

easydb-json-1.0.2.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

easydb_json-1.0.2-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file easydb-json-1.0.2.tar.gz.

File metadata

  • Download URL: easydb-json-1.0.2.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for easydb-json-1.0.2.tar.gz
Algorithm Hash digest
SHA256 54d75769b7df796f0854710ad3fc3a6497d8186a1d7b05ac887d5bc6036d2b10
MD5 0d99dacc3e5b50bd2b2f66677352b791
BLAKE2b-256 4a0a081d132c6a21f30d992df84441e6bc7fa7423c57059061b0df5849d23f18

See more details on using hashes here.

File details

Details for the file easydb_json-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: easydb_json-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for easydb_json-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 86701bef1ed659606bd9e93d087a862b35120a2962378aee50b023efd421870b
MD5 2aa86a3a782330e87b07bb7a8e5886a5
BLAKE2b-256 e575d2edecb1634ab3dcb965a061c0ae71e325588f4d9ece02f5024d47e46169

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