{"id":21171265,"url":"https://github.com/tagoworks/pyjondb","last_synced_at":"2025-03-14T17:25:42.817Z","repository":{"id":242163185,"uuid":"808358535","full_name":"tagoWorks/PyJONDB","owner":"tagoWorks","description":"A lightweight, encrypted JSON-based database with support for collections, document operations, and aggregation.","archived":false,"fork":false,"pushed_at":"2024-06-01T16:24:54.000Z","size":20337,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-07T11:47:58.702Z","etag":null,"topics":["aggregation","collections","database","document","encryption","file-based","json-database","linkage","local","nested-data","nosql","python","quary","secure-storage","tree-structure"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/PyJONDB/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tagoWorks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-30T22:55:37.000Z","updated_at":"2024-06-01T16:22:42.000Z","dependencies_parsed_at":"2024-06-01T02:46:50.652Z","dependency_job_id":"09c565ac-409e-4e63-8514-30509cb87c89","html_url":"https://github.com/tagoWorks/PyJONDB","commit_stats":null,"previous_names":["tagoworks/pyjondb","t-a-g-o/pyjondb"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tagoWorks%2FPyJONDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tagoWorks%2FPyJONDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tagoWorks%2FPyJONDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tagoWorks%2FPyJONDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tagoWorks","download_url":"https://codeload.github.com/tagoWorks/PyJONDB/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243617180,"owners_count":20320025,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aggregation","collections","database","document","encryption","file-based","json-database","linkage","local","nested-data","nosql","python","quary","secure-storage","tree-structure"],"created_at":"2024-11-20T16:03:51.828Z","updated_at":"2025-03-14T17:25:42.792Z","avatar_url":"https://github.com/tagoWorks.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"./pyjondb.png\"\u003e\n    \u003cimg src=\"./pyjondb.png\" alt=\"Logo\" width=\"300\" height=\"auto\"\u003e\n  \u003c/a\u003e\n\u003ch3 align=\"center\"\u003ePyJONDB\u003c/h3\u003e\n  \u003cp align=\"center\"\u003e\n    A lightweight, encrypted JSON-based database with support for collections, document operations, and aggregation.\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \n   ![GitHub last commit](https://img.shields.io/github/last-commit/tagoworks/PyJONDB)\n   ![GitHub issues](https://img.shields.io/github/issues-raw/tagoworks/PyJONDB)\n   ![GitHub license](https://img.shields.io/github/license/tagoworks/PyJONDB)\n\n   ![Discord](https://img.shields.io/discord/939249162887766139)\n   ![Website](https://img.shields.io/website?url=https%3A%2F%2Ftago.works%2F)\n  \u003c/p\u003e\n\u003c/div\u003e\n\u003ch2 align=\"center\"\u003ePython JavaScript Object Notation Database \u003csub\u003e\u003csup\u003e(without script since it sounds better)\u003c/sup\u003e\u003c/sub\u003e\u003c/h2\u003e\n\nThis 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. The PyPI package includes docstrings for each function to make it easier to learn.\n\n\n### Use pip to download the latest release\n```sh\npip install pyjondb\n```\n### Create a user with admin role\n```python\n# Initialize authentication\nauth = session.start()\nauth.create_user('admin', 'adminpass', roles=['admin'])\n\n# Authenticate and get a session ID\nsession_id = auth.authenticate('admin', 'adminpass')\nif not session_id:\n    raise PermissionError(\"Authentication failed\")\n```\n### Initialize and create the database\n```python\n# Initialize the database\n# The database function has optional values: \n# pyjondb.database(\"database\", \"mypassword\", debug=True/False, absolute=True/False)\ndb = database.init(\"database\", \"mydatabasekey\", auth)\n\n# Create the database\n# Note: you should only create the database if it doesn't already exist\ndb.create(session_id)\n```\n### Writing data to the database\n```python\n# Create a collection\ndb.create_collection('my_collection', session_id)\n\n# Add a document\ndb.add_document('my_collection', {'name': 'example'}, session_id)\n\n```\n\n### Read the data\n```python\n# Get all documents in a collection\nprint(db.read_collection('my_collection', session_id))\n```\n\n### PyJONDB gets way more advanced than writing simple data. To learn more about collections, documents, aggregation, linking, and tree structures read the [docs](https://github.com/t-a-g-o/PyJONDB)\n\n# License \u0026 Contact 📃\nThis project is published under the [MIT license](./LICENSE)\n\nIf you are interested in working together, or want to get in contact with me please email me at santiago@tago.works","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftagoworks%2Fpyjondb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftagoworks%2Fpyjondb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftagoworks%2Fpyjondb/lists"}