Json library creator
Project description
jsoncreatoor
A library for working with JSON files.
Installation
pip install jsoncreatoor
How does the library work?
It's quite simple.
First, we need an empty space with one Python file. After that, we write the code:
import jsoncreatoor
# or for specific parts
from jsoncreatoor import example_json, create_json, json_config
Once we import the library, we have access to three functions: example_json, create_json, and json_config.
Main functionality of the library
example_json - creates a file named data.json with the following content:
{
"Example_code": true,
"Example": false,
"data": 1,
"Local": 0
}
create_json - creates a file with data provided by the user. For example:
from jsoncreatoor import create_json
# Example JSON data
data = {
"Example_code": true,
"Example": false,
"data": 1,
"Local": 0
}
create_json(data, "file_name", '') # data uses the variable containing your code
# file_name - you don't need to write file_name.json, just the name; otherwise, it will be file_name.json.json
# directory - if you leave it empty, the file will be created in the same folder as your script
json_config - creates or overwrites an already existing file. If the file does not exist, it will be created. Example:
from jsoncreatoor import json_config
# Example JSON data
data = {
"Example_code": true,
"Example": false,
"data": 1,
"Local": 0
}
json_config(data, "file_name", '') # similar to create_json
Good luck!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jsoncreatoor-0.0.1.tar.gz.
File metadata
- Download URL: jsoncreatoor-0.0.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f125cd7abe92704786ebebdeb6259f016156429e090ed5999c96f952f4f76aee
|
|
| MD5 |
bc233842f37ef97f22c65a8624562e62
|
|
| BLAKE2b-256 |
0f6bd8d39bf35341fdd03c880fb141a62421ce718b140537c6cc9fd231fecac9
|
File details
Details for the file JsonCreatoor-0.0.1-py3-none-any.whl.
File metadata
- Download URL: JsonCreatoor-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1154d6140dc075d3623846e17650a2cdfca09f7741c16de3670420fe9143e68
|
|
| MD5 |
01a1a70afcf2cfdfe13a89f37ab8bb37
|
|
| BLAKE2b-256 |
86ad56efe33d34ed2f6d2efa4d847bd74c24b88300ccf4ce862451bfa4e9dcab
|