Skip to main content

epath

This package provides easy and dynamic way to import parent files in Python.

Sample folder structure can be seen below.

--main_folder

--app.py

  --folder_1

    --sample.txt

  --folder_2

    --target.py

Here, it is desired to read the sample.txt file from the target.py file. Then it will be used by calling the say_hello and say_goodBye functions in the app.py file.

app.py

def say_hello():
  print("Hello")

def say_goodBye():
  print("GoodBye")

sample.txt

This is a sample.txt 

target.py

from epath import Path

pt = Path()
txt_path = pt.get("/../folder_1/sample.txt")
with open(txt_path) as f:
    lines = f.readlines()

print(lines)
>>>['This is a sample.txt ']

#----------------------------------
app = pt.importer("/../app")
app.say_hello()
>>>Hello

app.say_goodBye()
>>>GoodBye

Metadata

Release files for epath 0.7

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

Source distribution (sdist)

Source distribution for epath 0.7
File Size Uploaded Provenance Actions
epath-0.7.tar.gz 3.3 kB Without provenance Details for epath-0.7.tar.gz

Built distribution (wheel)

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

Total release size: 6.6 kB

Release files / epath-0.7.tar.gz

Download URL epath-0.7.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7e420cf6c4b4c2e3a86f33a2e78968124e359613e8fae2bd5391644381886c78
BLAKE2b-256 checksum
How to use checksums
5ae7a8ce60706f5b1ac3f697252b4356a7610e19045909f54500b1751e575e40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

Release files / epath-0.7-py3-none-any.whl

Download URL epath-0.7-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb346c1efe30c45916394ae6140cc40a7bbe1d5f50a6b909d6ee27712a671d27
BLAKE2b-256 checksum
How to use checksums
ae5925ae9e12f586cad9865ab8f62f2abfcfde15bf0a54cc0243c3b4467a471e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

Security for epath 0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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