Skip to main content

deepath

deepath is a small Python utility that reliably resolves absolute paths to resource files in both development and frozen (PyInstaller) environments.

🚀 Why deepath?

  • Handles PyInstaller's _MEIPASS temp dirs (onefile/onedir)
  • Works with virtualenvs and CLI tools
  • Auto-detects project root using markers like pyproject.toml, .git, or .env
  • Customizable via code or environment variables

🧩 Usage

from deepath import deepath

path = deepath("assets/image.png")

🔧 CLI

deepath assets/image.png

⚙️ Custom Project Markers

In Python:

from deepath.env import set_project_markers

set_project_markers([".myroot", "setup.cfg"])

Or with an environment variable:

export DEEPATH_MARKERS=".myroot,.customflag"

✅ Installation

pip install deepath

Release files for deepath 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deepath 0.1.3
File Size Uploaded
deepath-0.1.3.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for deepath 0.1.3
File Interpreter ABI Platform
deepath-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 8.3 kB

Release files / deepath-0.1.3.tar.gz

Download URL deepath-0.1.3.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6b49adc496dafb5a0287d08c087aac1e31f7c17dbfff403ba40493cd59169550
BLAKE2b-256 checksum
How to use checksums
dfe9654cd53aca4cc050963c5d70f37eef91b9b65b36db0511fd6ae1115b476a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / deepath-0.1.3-py3-none-any.whl

Download URL deepath-0.1.3-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
083ae1e697459c60954f881774191cc689ff7131fddd29a44d5b5c6cb77fbe3b
BLAKE2b-256 checksum
How to use checksums
13b1e987ca759039d68122797837fce38a34cdf7a8d13198f3180c93673a3d95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

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