Skip to main content

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


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.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

h7_file_finder-1.0.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file h7_file_finder-1.0.0.tar.gz.

File metadata

  • Download URL: h7_file_finder-1.0.0.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

Hashes for h7_file_finder-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cb1a5a5ed073d9027e5a8a85d0c6f3cba20c090727e9d0db68112aaccaa2ebb8
MD5 9b2f20a2b9e75f85f2fa2cf800563fa2
BLAKE2b-256 70cf2a04f61e194548eb41f4205d4317ba4f38a9c76b0de0f497ca4d0ba0340f

See more details on using hashes here.

File details

Details for the file h7_file_finder-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: h7_file_finder-1.0.0-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

Hashes for h7_file_finder-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 918f974c47d69c1748dca3016ac4eca5a75146cd1b9d89d57b7e5aa0e05f5bb7
MD5 c734b8ede09a3681193d71499ca9dc1c
BLAKE2b-256 9b294aa9fcdee418630166cf0b045ee1af8051bc110d866cc769fc7d0e469ec0

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