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 hashes)
Built Distribution
Close
Hashes for filez_MagmaMc-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d037e06aae3903715d5ac0eb5ea1e803b2354b460a4947a2864373eb34f01089 |
|
MD5 | 646357eca13545fa444d09d16f77135a |
|
BLAKE2b-256 | ce0b8513a609417918a8e54a458b1e25c211e0530dbf342ca0765f881af5eb4f |