Skip to main content

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)

Source distribution for file-clerk 1.1.15
File Size Uploaded
file_clerk-1.1.15.tar.gz 8.8 kB Details

Built distribution (wheel)

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

Release history Release notifications | RSS feed

This release

1.1.15 This release

2 release files

1.1.14

2 release files

1.1.13

2 release files

1.1.9

2 release files

1.1.7

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

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