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-0.2.0.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for filez_MagmaMc-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32f04bd787e6ee847db9952f51c72078a41d4c3c744efd6ec1816c22ad736ffe |
|
MD5 | e74c19954c85a7e8c23eb42891d7b92e |
|
BLAKE2b-256 | 81c8f4cfb9221c506188e7bd4d14cb0a3e87a3e656f90c238d2b2cdacb3a7985 |