read, write, scan in json
Project description
Filez
Get Started
import filez
filez.ID = "MYPROJECTID" # http://magma-mc.net/projects.php/
thejson = json.loads('{"hello": "World!"}')
filez.fwrite('testfile.json', json.dumps(thejson), 'c')
content = filez.read('testfile.json')
filez.fwrite('testfile2.json', json.dumps(thejson), 'c')
content2 = filez.read('testfile.json')
folder = filez.scan('/', True) # Folder, Return file content
print(content)
# prints {"hello": "World!"}
print(folder)
# prints {'testfile': '{"hello": "World!"}', 'testfile2': '{"hello": "World!"}'}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
filez_MagmaMc-1.0.0.tar.gz
(2.9 kB
view details)
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 filez_MagmaMc-1.0.0.tar.gz.
File metadata
- Download URL: filez_MagmaMc-1.0.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21e490b0e8eca5aecb6c27bb4d9bf0fba667a2fd9547b8d3dacf2255133e4e8d
|
|
| MD5 |
abefc87cf866315eb7f4d45ee5b14622
|
|
| BLAKE2b-256 |
37293d851ac1f521dbf30c2898acf76e8e0ac44f75acd58ee947e8f3deeaa4d7
|
File details
Details for the file filez_MagmaMc-1.0.0-py3-none-any.whl.
File metadata
- Download URL: filez_MagmaMc-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d037e06aae3903715d5ac0eb5ea1e803b2354b460a4947a2864373eb34f01089
|
|
| MD5 |
646357eca13545fa444d09d16f77135a
|
|
| BLAKE2b-256 |
ce0b8513a609417918a8e54a458b1e25c211e0530dbf342ca0765f881af5eb4f
|