JSON Data Management Module
Project description
JSON READER:
JSON Data Management Module
Common Terms:
key: file name to save/pull from (Stored as data_[key].json)
CLS: Reader(directory, ids: list)
create_file()
Creates a Key
Returns: Success(T/F)
ex.
reader.create_file("mutes", {}))
- key: File/Key to make
- default: Default value stored for each id
- wipe: Wipes the file if it exists
read_file()
Read a Key from a ID
Returns: JSON for that ID
ex.
data = reader.read_file(id, "mutes")
data[USER] = int(time.time+300)
- id: ID to read
- key: File/Key to read
write_file()
Write to a key
Returns: Success(T/F)
ex.
reader.write_file(id, "mutes", data)
- ID: ID to write to
- key: File/Key to write to
- value: Modified Value
remove()
Remove a id from a key
Returns: Success(T/F)
ex.
reader.remove(id, "mutes")
- id: ID to remove
- key: File/Key to remove id from
check_exist()
Checks if a Key exists
Returns: Success(T/F)
reader.check_exists("mutes")
- key: Check the existance of a key/file
dump()
Dumps the entire JSON
Returns: JSON of the Key
json = reader.dump("mutes")
- key: Key to dump json from
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
guildreader-2.0.2.tar.gz
(4.4 kB
view details)
Built Distributions
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
guildreader-2.0.2-py3.8.egg
(6.8 kB
view details)
File details
Details for the file guildreader-2.0.2.tar.gz.
File metadata
- Download URL: guildreader-2.0.2.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89037161d51f75f1efe28c5360d3b1c0b89891fe79b9e5c36149b8b9b22ff9a2
|
|
| MD5 |
0da95e39fc335b76c672097c87269a20
|
|
| BLAKE2b-256 |
9824993138b7f84e4fe55171df782e179a00f0af11c254e0089a601073190a94
|
File details
Details for the file guildreader-2.0.2-py3.8.egg.
File metadata
- Download URL: guildreader-2.0.2-py3.8.egg
- Upload date:
- Size: 6.8 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e440a06a70e8ba9f277e6c5430ed081935eba710704232e9842511296d2d921b
|
|
| MD5 |
838a9ed21f4ef35d6bf77844bf69c00c
|
|
| BLAKE2b-256 |
3dbd67a2f7cdf37869a090ba647b1e46db4497f8ae38e061e8f03f850263d9f0
|
File details
Details for the file guildreader-2.0.2-py3-none-any.whl.
File metadata
- Download URL: guildreader-2.0.2-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1be65f20db01b0fd26384e86281ac5bfac2d6a8e7caaaaa6e0cea96909b46c8e
|
|
| MD5 |
5e5c2127aeda14a64b2b570aa54c4ee5
|
|
| BLAKE2b-256 |
462a84c9ef3c4bc6d47d51ac213082a3755ff10fcad82d1f1578049db4f082e7
|