Skip to main content

Module for working with JSON file data

Project description

Изменения:

  • English interface
  • Minor changes to the interface and commands

ToDo:

  • None

What is BarlaDB?

  • BarlaDB is a library that is created for working with local databases in .json format. Has well-developed functions and logging! And most importantly, it has a very easy-to-learn interface, even for a beginner!

Quickstart

from barladb import db #Imports DB functions
from barladb import config #imports config
import socket
config.debug = True #Debug ON
config.log = True #Log ON

barladb = db.BarlaDB() #Creating an instance of a class
data = barladb.get("example.json") #We get the contents of the database and save it into the "data" variable
#Also, if your file is in a different directory:
#db.get("path/to/file/example")

print("Hello, User! Your computer name already in example.json.")
data["name"] = socket.gethostname()
barladb.save("example.json", data) #Saving the "data" variable to example.json
"""
My example.json looks like this:
    {
    "name": "barlin41k"
    }
In column "name", should be your hostname, but since mine is barlin41k, it comes out like this.
Let me remind you that this is just a short example of using the module.
"""

How to install?

  • pip install barladb

Peculiarities BarlaDB:

  • Has an easy and intuitive interface.
  • Has no dependencies
  • Everything is built in the popular .json data format.

Links:

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

barladb-0.2.65.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

barladb-0.2.65-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file barladb-0.2.65.tar.gz.

File metadata

  • Download URL: barladb-0.2.65.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for barladb-0.2.65.tar.gz
Algorithm Hash digest
SHA256 d0cbcd0657727687cd0667786dd37145568c5a3a876d72759ac0ba8c22fce303
MD5 59cc6a8126b05d38edb921b01d81bbd7
BLAKE2b-256 c864300995fd9531b93c0a582545da028d50af2812410bc6bd580e0e656b71e4

See more details on using hashes here.

File details

Details for the file barladb-0.2.65-py3-none-any.whl.

File metadata

  • Download URL: barladb-0.2.65-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for barladb-0.2.65-py3-none-any.whl
Algorithm Hash digest
SHA256 41ade1c3fcfc9baecac8288e8fe8826286073fc8559cc459fa417b7e12e3fdc2
MD5 9e1d06062b558baa7fa0aa8800dae5fa
BLAKE2b-256 c404aff675ccc772cf085e1e4798255e3f6abcb83082c550651d395d39606e4c

See more details on using hashes here.

Supported by

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