Skip to main content

JXDB - JSON Database Library

You can find JXDB, a powerful JSON database library, on PyPI (Python Package Index) at pypi.org/project/jxdb. JXDB allows you to easily store and manipulate JSON data in your Python projects.

Features

  • Simple and intuitive interface for working with JSON data.
  • Supports data encryption using AES for secure storage.
  • Provides efficient methods for data retrieval, modification, and deletion.
  • Supports searching and filtering based on key-value pairs.
  • Lightweight and easy to integrate into your projects.

License

JXDB is released under the OpenSociety license. You can find the license details at ccic.eu.org/opensociety.html. The OpenSociety license grants you the freedom to use, modify, and distribute JXDB according to the terms specified in the license.

Installation

You can install JsonDB using pip:

pip install jxdb

Usage

JsonDB

JsonDB is a simple JSON-based database that provides methods for managing key-value data and performing operations like encryption and decryption.

Methods

open(filename, password)

Opens the database from a file with the specified filename and password. It decrypts the data and loads it into memory.

save(filename, password)

Saves the database to a file with the specified filename and password. It encrypts the data and writes it to the file.

get(key)

Retrieves the value associated with the specified key from the database.

set(key, value)

Sets the value for the specified key in the database.

delete(key)

Deletes the value associated with the specified key from the database.

concept(data)

Searches for values that contain the specified data in their keys and returns a list of matching values.

keyconcept(data)

Searches for keys that contain the specified data and returns a list of matching keys.

keys()

Returns a list of all keys in the database.

values()

Returns a list of all values in the database.

items()

Returns a list of all items (key-value pairs) in the database.

clear()

Clears the entire database, removing all key-value pairs.

count()

Returns the number of items in the database.

delete_by_value(data)

Deletes values that contain the specified data from the database.

delete_by_key(key)

Deletes values associated with keys that contain the specified key from the database.

Usage

# Example usage of JsonDB

# Create an instance of JsonDB
db = JsonDB()

# Open the database from a file
db.open("data.json", "password")

# Perform operations on the database
value = db.get("key")
db.set("new_key", "new_value")
db.delete("key")
concept_results = db.concept("data")
keyconcept_results = db.keyconcept("key")
keys = db.keys()
values = db.values()
items = db.items()
db.clear()
count = db.count()
db.delete_by_value("data")
db.delete_by_key("key")

# Save the database to a file
db.save("new_data.json", "password")

Metadata

Release files for jxdb 0.1.2

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

Source distribution (sdist)

Source distribution for jxdb 0.1.2
File Size Uploaded Provenance Actions
jxdb-0.1.2.tar.gz 3.8 kB Without provenance Details for jxdb-0.1.2.tar.gz

Release files / jxdb-0.1.2.tar.gz

Download URL jxdb-0.1.2.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
62eaa173187fc1cb041df378b8412e1e7b7b80f212377c0bdd656a799430d227
BLAKE2b-256 checksum
How to use checksums
6ad80e91c2f41958164e68aeb2e5f5cf458611c10cd9190fd2c3e7dc9b967dc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Security for jxdb 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file No provenance

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