JSONFile
Simple Python package for JSON file operations.
Install
pip install wixok.jsonfile
Usage
from wixok.jsonfile import JSONFile
# Load JSON data
items = JSONFile.load("data.json")
print(items) # [{'id': 1, 'name': 'Alice'}, {'id': 2, 'name': 'Bob'}, ...]
# Append to existing file (list or dict)
success = JSONFile.append("data.json", {"id": 3, "name": "Charlie"})
print(success) # True
# Save (overwrite) JSON data
saved = JSONFile.save("output.json", [{"a": 1}, {"b": 2}])
print(saved) # True
Methods
| Method | Description | Returns |
|---|---|---|
load(path) |
Load JSON content. Wraps dicts as [dict], returns empty list on error. |
list |
append(path, data) |
Append a dict or list item to an existing JSON list/dict file. | bool |
save(path, data) |
Overwrite file with JSON-serializable data. |
bool |
Debug Mode
JSONFile.debug = True # Enable error messages
Metadata
Release files for wixok.jsonfile 25.8.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wixok_jsonfile-25.8.3.tar.gz | 4.9 kB | Without provenance | Details for wixok_jsonfile-25.8.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wixok_jsonfile-25.8.3-py3-none-any.whl | Python 3 | none | any | Details for wixok_jsonfile-25.8.3-py3-none-any.whl |
Total release size: 9.9 kB
Release files / wixok_jsonfile-25.8.3.tar.gz
| Download URL | wixok_jsonfile-25.8.3.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b02ad62b4abfce3c081102192216f29e8d97bb734b58801ad3916afb5203473
|
|
BLAKE2b-256 checksum How to use checksums |
c2179eba9f8e41172919bccb65d1758bc32a402c392063f84995e292fbcbfa24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.0
|
Release files / wixok_jsonfile-25.8.3-py3-none-any.whl
| Download URL | wixok_jsonfile-25.8.3-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
35b0fb342aedfc9eea0ea646d2c9f8df4a636e1d9d4157b79b1a46fa5c83557d
|
|
BLAKE2b-256 checksum How to use checksums |
37bc300e748bba4900184c839efa0118a9e89e9dd23234ced4cf878d3044aac0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.0
|
Security for wixok.jsonfile 25.8.3
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.