Skip to main content

python tool to solve many issues with relative paths and imports in your complex framework.

Project description

pydtl-relativepath

pydtl-relativepath tool from pydtl community can be used to solve many issues that occurs with relative paths and imports from various modules in your complex framework.

Installation

Run pip install pydtl-relativepath

Usage

Relative to Absolute Path Conversions

Whenever specifying a relative path use rel2abs()

See an Example below

from pydtl_relativepath import rel2abs as r2a
readmepath = r2a("README.txt")
print(open(readmepath, mode="r", encoding="utf-8").read())

This will convert relative path specified to an absolute path relative to current file's directory

Here, readmepath contains the absolute path for README.txt file and it is compatible with os.PathLike objects.

Note: More Documentation (TBA)

Note: Incomplete version | Development is in progress

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

pydtl_relativepath-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

pydtl_relativepath-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file pydtl_relativepath-0.1.0.tar.gz.

File metadata

  • Download URL: pydtl_relativepath-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.9.5 Windows/10

File hashes

Hashes for pydtl_relativepath-0.1.0.tar.gz
Algorithm Hash digest
SHA256 29d9a0aba54b0937dd2c455250c8363e6380353e8a9563af6f37f3601c25c95e
MD5 e66c042712cb91686af2f8b71a041403
BLAKE2b-256 d4ba41fbdfe69ca7646403c0f019280b3899460d95825bb63094f9a456a4fc6d

See more details on using hashes here.

File details

Details for the file pydtl_relativepath-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pydtl_relativepath-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2706aa4b6fd19e1058c3fe7539ddc9afcb7ee825581ffd2013904f34420c5e9b
MD5 88c8a76861f6e06aa9adaf544c204004
BLAKE2b-256 76e0cb76f00eecce1caf4232acdb772a8e12729ca38170275410de91239e7b6a

See more details on using hashes here.

Supported by

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