JSONManipulator
JSONManipulator is a Python package to retrieve, add, delete, change and store objects in JSON files.
Installation
Use the package manager pip to install JSONManipulator.
pip install JSONManipulator
Usage
Firstly, you need to set up your initial JSON file.
from JSONManipulator import set_up
set_up(
full_path="enter/full/path/to/your/file/here"
)
Functionality
As soon as you set up your file, you can use classes of the package:
GetInformation (retrieve information about particular objects in the file).
ChangeValue (change values of particular objects in the file).
ChangeAllValues (change values of all objects in the file).
DeleteObject (delete particular objects in the file).
AddObject (add a new object to the file).
AddKey (add a new key to each object in the file).
More detailed information about the usage of the package can be found in the examples and docs folders.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
History
1.0 (2020-07-8)
The first release of JSONManipulator.
1.1 (2020-07-12)
Added docstrings to the package and the examples directory.
2.0 (2020-07-12)
Made more out-of-the-box functionality of the package.
Minor optimization of the core module.
3.0 (2020-07-17)
Added Pytests.
Added documentation (using sphinx-documentation).
Added Tox support.
Tested code coverage - 92%.
Enabled Travis CI.
Resolved 1 bug with the deletion of one book.
Optimized cap_sentence(), making it non-static.
Shortened the relevant lines of code by applying the knowledge of the copy function.
Deployed __slots__, saving RAM when using the package.
3.0.1 (2020-07-18)
Created more tests which resulted in code coverage of 97.3%.
Minor optimization of the core module.
3.0.2 (2020-07-20)
Resolved date misprint in HISTORY.rst.
Created more advanced structure for requirements.
Made requirements for installations the package more rigorous.
Deployed EditorConfig for better code consistency.
Added Makefile in the root directory.
Made use of the pyup bot (checks dependencies).
3.1 (2020-08-07)
Used try/except in tests instead of sys.exit(0) in core module.
The package is now easy-to-use in Python terminal (the programme will not be aborted).
3.1.1 (2020-09-04)
Split core module to separate files, which resulted in a better readable code.
Metadata
Release files for JSONManipulator 3.1.1
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 |
|---|---|---|---|---|
| JSONManipulator-3.1.1.tar.gz | 144.9 kB | Without provenance | Details for JSONManipulator-3.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| JSONManipulator-3.1.1-py3-none-any.whl | Python 3 | none | any | Details for JSONManipulator-3.1.1-py3-none-any.whl |
Total release size: 171.9 kB
Release files / JSONManipulator-3.1.1.tar.gz
| Download URL | JSONManipulator-3.1.1.tar.gz |
|---|---|
| Size | 144.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c4fe4fbc403daeadb92c4ab49b7b7c301e9a41eb194c49b1042c3c3234d95b6e
|
|
BLAKE2b-256 checksum How to use checksums |
f80de4b9f7bf8e83571ae8b825b03ebae4c1e8cc7b1312be8a881ee7d51bd24a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.2
|
Release files / JSONManipulator-3.1.1-py3-none-any.whl
| Download URL | JSONManipulator-3.1.1-py3-none-any.whl |
|---|---|
| Size | 27.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f7be312d5d5c3693b74a5478c6da98e4fdd8db260c1e04387daeafb4d034018
|
|
BLAKE2b-256 checksum How to use checksums |
c578fff82f65b7860404ae8dd9e57b63bf46e2cb9da4d1384bc4644f49c51e61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.2
|
Security for JSONManipulator 3.1.1
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.