A collection of functions for dealing with files and file content.
Project description
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")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file file_clerk-1.1.5.tar.gz
.
File metadata
- Download URL: file_clerk-1.1.5.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.5.0-1023-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f29442a5652759f6dd5fe9e991860d54fcff4e9651949254fc8811fef6df2b2d |
|
MD5 | 89a975c8a4352aa29ec58bb0cb7ff0b0 |
|
BLAKE2b-256 | f7824ad4b2d5f84d14e67cd8d204ed766444c74dcaeec6232d1ec30129bb3ca7 |
File details
Details for the file file_clerk-1.1.5-py3-none-any.whl
.
File metadata
- Download URL: file_clerk-1.1.5-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.5.0-1023-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ac31c8b710ca86630422a20f56b84b22019d96ec405dbca088659bcb7a90f42 |
|
MD5 | 4b3f002949c9f9711fef613442bb0192 |
|
BLAKE2b-256 | 6ecd94747cc67afe4e05f1cb75557ae02dcd3bbce7c1e8a296685594a7bfe5e9 |