Skip to main content

How to use filelibrary

  1. Install filelibrary package
pip install filelibrary
  1. You're done! Now all there is to do is read the documentation.

Documentation

  1. Load Package
from filelibrary import filelibrary

fileLibrary = filelibrary("path")
  1. Get files in path
files = fileLibrary.getFileList()
print(files) # prints every files in the specified path
  1. Get directories in path
dirs = fileLibrary.getDirList()
print(dirs) # prints every directories in the specified path
  1. Print all (prints files and directories)
fileLibrary.printAll()
  1. Read file
fileLibrary.openFile("fileName.extension")
# fileLibrary.openFile("test.txt")
  1. Write file
fileLibrary.writeFile("fileName.extension", "just a text here")
# fileLibrary.writeFile("test.txt", "just a text here")
  1. Read file as JSON
fileLibrary.openFileAsJson("fileName.extension")
# fileLibrary.openFileAsJson("test.json")
  1. 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)

Source distribution for filelibrary 0.0.2
File Size Uploaded
filelibrary-0.0.2.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for filelibrary 0.0.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page