How to use filelibrary
- Install filelibrary package
pip install filelibrary
- You're done! Now all there is to do is read the documentation.
Documentation
- Load Package
from filelibrary import filelibrary
fileLibrary = filelibrary("path")
- Get files in path
files = fileLibrary.getFileList()
print(files) # prints every files in the specified path
- Get directories in path
dirs = fileLibrary.getDirList()
print(dirs) # prints every directories in the specified path
- Print all (prints files and directories)
fileLibrary.printAll()
- Read file
fileLibrary.openFile("fileName.extension")
# fileLibrary.openFile("test.txt")
- Write file
fileLibrary.writeFile("fileName.extension", "just a text here")
# fileLibrary.writeFile("test.txt", "just a text here")
- Read file as JSON
fileLibrary.openFileAsJson("fileName.extension")
# fileLibrary.openFileAsJson("test.json")
- Write file as JSON
fileLibrary.writeFileAsJson("fileName.extension", {"data": "here"})
# fileLibrary.writeFileAsJson("test.json", {"name": "John", "age": "30"})
Congratulations! You've finished the documentation. Explore the package and create awesome projects!
Metadata
Release files for filelibrary 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| filelibrary-0.0.2.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| filelibrary-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / filelibrary-0.0.2.tar.gz
| Download URL | filelibrary-0.0.2.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec7498d4ffb01937677f67b31997ab8e2f48493595805a4a59f3f7b6a103d544
|
|
BLAKE2b-256 checksum How to use checksums |
ac674bf48f66f36810b8fad9c57f57e7859e219ea5c7d9c6ca2995491ca2cc37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Release files / filelibrary-0.0.2-py3-none-any.whl
| Download URL | filelibrary-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c915b9d1eaab457b8d12c2a12ba20605120200de14af60a5c29a1e6fe203f465
|
|
BLAKE2b-256 checksum How to use checksums |
885025a8e47d32ab12c25fe64f7e01cf3697cd3c74efb67261b240e6f1a83983
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|