New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

PyJONDB

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

PyJONDB

A lightweight, encrypted JSON-based database with support for collections, document operations, and aggregation.

  • 2.0
  • Source
  • PyPI
  • Socket score

Maintainers
1

Encrypted JSON Database

Overview

This package provides a lightweight, encrypted JSON-based database with support for collections, document operations, and aggregation. It uses the cryptography library for encryption and decryption of data, ensuring secure storage of your sensitive information.

Features

  • Encryption and Decryption: Uses Fernet symmetric encryption to protect your data.
  • Collections: Supports creating, reading, updating, and deleting collections.
  • Documents: Allows adding, finding, updating, and deleting documents within collections.
  • Aggregation: Provides basic aggregation functionality for querying documents.
  • Linking Collections: Supports linking between collections to create references.
  • Tree Structure: Allows creating tree structures by linking root documents to their child documents.

Usage

from pyjondb import database
from pyjondb import session

auth = session.start()
auth.create_user('admin', 'adminpass', roles=['admin', 'user'])

# Authenticate and get a session ID
session_id = auth.authenticate('admin', 'adminpass')

# Create a database instance with the session ID
db = database.init('my_database', 'my_secret_key', auth, debug=True)

# Create a database
db.create(session_id)

# Create a collection
db.create_collection('my_collection', session_id)

# Add a document
db.add_document('my_collection', {'name': 'example'}, session_id)

# Read the collection
print(db.read_collection('my_collection', session_id))

Learn more about it at the docs: https://github.com/t-a-g-o/PyJONDB/wiki

Keywords

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc