A collection of functions for dealing with files and file content.
This was a library I created for previous projects that deal with files and file paths in order to get code from files, lists of files in project folders, file extensions, and allows us to capture just files of a particular type. I also developed my projects on Windows OS, so these functions were designed to work with the file paths on Windows, Mac, and Linux (Windows is the one with backslashes - wacky, I know.).
Typical usage example:
extension = get_file_type("path/to/file.js")
code_string = file_to_string("path/to/file.html")
project_path = "path/to/project"
all_project_files = get_all_project_files(project_path)
just_css_files = get_all_files_of_type(project_path, "css")
Metadata
Release files for file-clerk 1.1.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| file_clerk-1.1.15.tar.gz | 8.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| file_clerk-1.1.15-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.7 kB
Release files / file_clerk-1.1.15.tar.gz
| Download URL | file_clerk-1.1.15.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b6a982934ff310ce649dd5254142b27437783e1206ff7e4d9b0800340861890
|
|
BLAKE2b-256 checksum How to use checksums |
3048507fde7a8a1f566e6ec691965e9c0c545bacdb1e023589f813adf1e4ea77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.3 CPython/3.14.7 Linux/6.17.0-1022-azure
|
Release files / file_clerk-1.1.15-py3-none-any.whl
| Download URL | file_clerk-1.1.15-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b9f4f1c1f5379d2d834c7fe26b4b97d3d3f87c03dbc9097871275b5b4170a5a
|
|
BLAKE2b-256 checksum How to use checksums |
51b2a2e68609c086a29c62e0c7bc15c1ed8bd99624aae1adbd5e11fae9929964
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.3 CPython/3.14.7 Linux/6.17.0-1022-azure
|