JsonPyCraft is a specialized Python toolkit designed for efficient and structured JSON management. This toolkit offers a range of functionalities from basic JSON file handling to advanced operations, making it ideal for developers looking to manage JSON data in Python applications with precision and ease.
- Robust JSON file handling (load, save, backup).
- Advanced JSON structure manipulation (mapping and list templates).
- Nested JSON data management.
- Pythonic, easy-to-use interface with detailed documentation.
Welcome to the JSONPyCraft documentation! Explore detailed documentation on key aspects of JSONPyCraft:
-
Core Components: Learn about custom error handling, the Singleton pattern, core types, and more.
-
JSON Templates: Understand JSON templates, I/O operations, list templates, and map templates.
-
Managers: Discover the
ConfigurationManager
class for managing configuration data. -
PlantUML Diagrams: Visual representations of key components.
For more detailed information, check out the full documentation index.
JsonPyCraft supports integration with OpenAI GPT if you have an OpenAI Plus subscription. You can chat with JSONPyCraft for more information.
You can install JsonPyCraft using either pip
or poetry
. Follow the instructions below based on your preferred method.
- Create a virtual environment (optional but recommended for isolation):
virtualenv .venv
- Activate the virtual environment:
source .venv/bin/activate
- Install JSONPyCraft using PyPI:
pip install jsonpycraft
- Initialize a new Poetry project. If you haven't already installed Poetry, you can do so with
pip
:
pip install poetry
- Navigate to your project directory and run:
poetry init
Follow the prompts and add any necessary packages to your project.
- Activate the Poetry shell:
poetry shell
- Add JsonPyCraft to your project using the following command, specifying the URL to the wheel file:
poetry add jsonpycraft
Here's a quick start guide to using JsonPyCraft:
from jsonpycraft import JSONMapTemplate, JSONListTemplate
# Example of using JSONMapTemplate
map_template = JSONMapTemplate('map_data.json')
map_template.create('key', 'value')
# Example of using JSONListTemplate
list_template = JSONListTemplate('list_data.json')
list_template.append({'id': 1, 'name': 'JsonPyCraft'})
For support, feature requests, or contributions, feel free to open an issue or pull request.
- LICENSE: JsonPyCraft is released under the GNU Affero General Public License.