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
Hashes for file_clerk-1.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dc3f07c9ce48058a43a58f1da6eaf5d964a61d745742cf3bda829c349052459 |
|
MD5 | 35c9e2cf714ba1930043686664111347 |
|
BLAKE2b-256 | 38cfa1b57240c5b38fb838bdaa3802ad847e73e32f3a0efca0678d61872c9728 |