JSONifier
Github
PyPI
A package for reading, writing, and editing of JSON files, Python dictionaries, and such.
Classes
JSONifier
Build a JSONifier object from a dict or a readable file. (Params and usage below)
...
Params
----------
*These params are used in the initialization of an instance of this class.*
mode : str
Define the mode in which to read and parse the given `data`.
data : Any
The data for the JSONifier object.
Attributes
----------
mode : str
*Set when a new instance of the class is made.*
data : Any
*Set when a new instance of the class is made.*
valid_modes : list
*List of valid modes for instantiating a new JSONifier object.*
call_methods : list
*List of valid methods for the call function.*
call_return_methods : list
*List of valid methods for specifying how to get the instance data back from the call method.*
write_methods : list
*List of valid methods for writing to a json file.*
Methods
-------
call(self, ret) - _builtin_
The call function (calling an instance as a function). `ret` is the return method.
init(self, mode: str = None, data: Any = None) - _builtin_
*Make a new instance. Refer to `params` for information on the parameters.*
@classmethod
create(cls, mode, data)
*Alternative constructor for the class.*
@classmethod
fromFile(cls, file)
*Alternative constructor from a file path.*
@classmethod
fromDict(cls, file)
*Alternative constructor from a supplied dictionary.*
get_data(self)
*Return the instance's data.*
replace(self, key=None, value=None)
*Replace the specified key with the specified value.*
@staticmethod
write(method="json", file=None, data=None)
*Write to a specific file the data supplied.
Release files for JSONifier 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| JSONifier-0.0.7.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| JSONifier-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.5 kB
Release files / JSONifier-0.0.7.tar.gz
| Download URL | JSONifier-0.0.7.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
032a5990ca77e0879d8da156aae98ed23f36875c3133887111b69433478fb033
|
|
BLAKE2b-256 checksum How to use checksums |
7c7bdfe358535940ac00d35ae8116e8f85902537a9a171fedfc3787a8a8b3c50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.61.0 CPython/3.8.10
|
Release files / JSONifier-0.0.7-py3-none-any.whl
| Download URL | JSONifier-0.0.7-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0bd23148b17c777f8bce8899926d3e9b51af0740c928f71434f07e1ea1445581
|
|
BLAKE2b-256 checksum How to use checksums |
a2609c1d2027d007e50eb39d15b53a99f7ca8ae01180c4d64ba39c3ca66f7ce4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.61.0 CPython/3.8.10
|