Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

file_clerk-1.1.14.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

file_clerk-1.1.14-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file file_clerk-1.1.14.tar.gz.

File metadata

  • Download URL: file_clerk-1.1.14.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.13.7 Linux/6.11.0-1018-azure

File hashes

Hashes for file_clerk-1.1.14.tar.gz
Algorithm Hash digest
SHA256 cdcbda4c432db8fa972db8952bf203f9587831cb5bbb88afba1d323fc1fe53ab
MD5 8c4417c627db8a28474db42d29f92ec8
BLAKE2b-256 4a36179de8bafd45f006d89f3582c97818058f73f8efd54d773651cc4daaf6e9

See more details on using hashes here.

File details

Details for the file file_clerk-1.1.14-py3-none-any.whl.

File metadata

  • Download URL: file_clerk-1.1.14-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.13.7 Linux/6.11.0-1018-azure

File hashes

Hashes for file_clerk-1.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 b3cb0c23a4f100122eb24b0944302ca2918fc83413f71b1cb5ef4eb6fb0f140b
MD5 1c698185aa6ac130db31251866bde5bf
BLAKE2b-256 317ad6420ff4566f18acfdf93c1f7f8b2d101d4efa1e4f454c282505318186b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page