Core utility classes for file and path finding in Python projects
Project description
h7-file-finder
Core utility classes for file and path finding in Python projects.
Installation
pip install h7-file-finder
Features
- Find project root directory based on marker files
- Locate specific files within a project
- Find environment files and project-specific folders
- Support for custom markers and search paths
Usage
from h7_file_finder import find_project_root, find_file_in_project
# Find project root
project_root = find_project_root()
print(f"Project root found at: {project_root}")
# Find a specific file
env_file = find_file_in_project(".env")
print(f"Found .env file at: {env_file}")
# Find with custom markers
custom_markers = [".git", "requirements.txt"]
project_root_custom = find_project_root(markers=custom_markers)
Requirements
- Python 3.7+
- python-dotenv
License
MIT License - Copyright (c) 2025 Roger Mori
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
h7_file_finder-1.0.1.tar.gz
(3.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file h7_file_finder-1.0.1.tar.gz.
File metadata
- Download URL: h7_file_finder-1.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8133b1f841c9c4d5083fb7f3dd64906ab7395e8771457538eeb50ab7d790c16a
|
|
| MD5 |
bd4520113cf8a354f92867bb0ac19ac4
|
|
| BLAKE2b-256 |
fa44cf4a50b6cff7817be99c7e5736e54db0b130ad5ce7c781b071183e5e613a
|
File details
Details for the file h7_file_finder-1.0.1-py3-none-any.whl.
File metadata
- Download URL: h7_file_finder-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b2b0d03dd64eea6fd78d2174335b294a661a47dae7be9dc730f311645772714
|
|
| MD5 |
225f0bf3554df3ce82c76ed6ff200eca
|
|
| BLAKE2b-256 |
8be5dab1f3d7bac8f344c4e55a9dfcd9aa2240fbe18dc5b2d04cbfab1ba2a4df
|