Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

barladb

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

barladb

Module for working with JSON file data

pipPyPI
Version
0.2.70
Maintainers
1

Changes:

  • 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.
  • Documentation
  • Github
  • PyPi

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts