read, write, scan in json
Project description
Filez
Get Started
import filez
filez.ID = "MYPROJECTID" # http://magma-mc.net/projects.php/
filez.DEVELOPER = False # Prints To Console
Fwrite
thejson = {"hello": "World!"}
thejson2 = {"hello": "there!"}
filez.fwrite('testfile.json', json.dumps(thejson))
filez.fwrite('testfile2.json', json.dumps(thejson2))
Fread
print(filez.fread('testfile.json'))
# prints {"hello": "World!"}
print(filez.fread('testfile2.json'))
# prints {"hello": "there!"}
Scan
print(filez.scan('/'))
# prints ['testfile.json', 'testfile2.json']
print(filez.scan('/', True))
# prints {'testfile.json': '{"hello": "World!"}', 'testfile2.json': '{"hello": "there!"}'}
Send
thejson = {
'HelloWorld': 'Hi!',
'HelloThere': 'Hello!'
}
filez.fwrite('testfile3.json', json.dumps(thejson))
print(filez.fread('testfile3.json'))
# prints {'HelloWorld': 'Hi!', 'HelloThere': 'Hello!'}
filez.send('testfile3.json', 'Bonjour', 'HelloWorld')
print(filez.fread('testfile3.json'))
# prints {'HelloWorld': 'Bonjour!', 'HelloThere': 'Hello!'}
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.2.tar.gz
(3.0 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.2.tar.gz.
File metadata
- Download URL: filez_MagmaMc-1.0.2.tar.gz
- Upload date:
- Size: 3.0 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 |
27fb8c0d268e929a0be0a921af1940bfbe7d5ecb18259a10c90490c453903ee7
|
|
| MD5 |
ce0c94ff96b3fd7895ae4d99302df5bb
|
|
| BLAKE2b-256 |
c7346dc15c3e5fb964a2b4ace94d6706560d24426c27ca7047cabd27fa6812a4
|
File details
Details for the file filez_MagmaMc-1.0.2-py3-none-any.whl.
File metadata
- Download URL: filez_MagmaMc-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.4 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 |
328add8617751c0f98d1f0a15b4dbe5ba438c4d2449e95fe19731c3f5c880080
|
|
| MD5 |
40e853cccc6779bf3eadda1b2ccfdd20
|
|
| BLAKE2b-256 |
cf5fb508f3d0b0028148b3cc863f29d7b2f5009f4956d1fd22585365516f18c4
|