Skip to main content

A useful library for simplifying work with .json files.

Project description

Betterjson

Library for easier working with JSON files in Python

Quick example

{"names": ["Alex", "Allan"]}
import betterjsondb

db = betterjsondb.connect(file="tests.json", prefix="~")                  # Name of file and prefix can be custom

print(                                                                    # In concole you'll see:
    db.get("all"),                                                        # {'names': ['Alex', 'Allan']}
    db.push("cars", {"BMW": "car", "Tosiba": "not_car"}, callback=True),  # True
    db.update("cars", "=", {"BMW": "car"}, callback=True),                # True
    db.delete("names", callback=True),                                    # True
    db.get("all")                                                         # {'cars': {'BMW': 'car'}}
)

Important information

Sorry, for now it's not full description, later we'll open our GitHub Page.

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

betterjsondb-0.1.7.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file betterjsondb-0.1.7.tar.gz.

File metadata

  • Download URL: betterjsondb-0.1.7.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1

File hashes

Hashes for betterjsondb-0.1.7.tar.gz
Algorithm Hash digest
SHA256 35b3c8ac6567fd8b9e745fe1487df9725663f260259f0d7e221129bdb35f8f81
MD5 363a67a99ffebbfb79ff071bcebb6a42
BLAKE2b-256 be65659fa22f054b5769b100f709b2ce35f9bb04ad85bdd42d13196abf519ba8

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