Skip to main content

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

27.12.2021 library updated using Python 3.10. So now its strictly requere it on your PC.

Changelog:

v. 0.1.8:

After connect file if its not exists library will create it. Added warning to not existing file.

Release files for betterjsondb 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for betterjsondb 0.1.9
File Size Uploaded
betterjsondb-0.1.9.tar.gz 3.5 kB Details

Release files / betterjsondb-0.1.9.tar.gz

Download URL betterjsondb-0.1.9.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2adc6ff02d12430a72634f6491c840c2624e8046daff84daa48837d8eeb493f2
BLAKE2b-256 checksum
How to use checksums
e4e400adf5f32c56d7b5877b270c4e8f6574246bb0c42e177cc68896359cb628
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.1.9 This release

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page