Skip to main content

This package simplifies importing relative and absolute module paths

Project description

specific_import

This package allows you to import resources by their relative or absolute file paths.

Features

  • Is open source
  • Is compatible with the latest version of Python3
  • Is great at doing imports relative to the file doing the actual importing
    • (as opposed to relative to the file doing the calling as other import libraries do.)
  • Doesn't reload module if module already loaded

How to install

  • Method 1: Use PIP
pip install specific_import
  • Method 2: Download from Github

Example

from specific_import import import_file

# import relatively
app_setup = import_file('../app_setup.py')

# import absolutely
app_setup = import_file('/home/projects/my_project/app_setup.py')

Why?

I love Python but sometimes the builtin import system can be a headache

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

specific_import-0.9.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

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

specific_import-0.9-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

Details for the file specific_import-0.9.tar.gz.

File metadata

  • Download URL: specific_import-0.9.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.2

File hashes

Hashes for specific_import-0.9.tar.gz
Algorithm Hash digest
SHA256 4eae164506569e3c5c79bc53fffc78c56d1b06b8a3bc92933ae173d40cd87570
MD5 de65316ec6e138236515cb4349151a05
BLAKE2b-256 a1dfd5b52a8e70d57bc1e01cac3387556d478a697a5eef4eddf6ce338c2b0926

See more details on using hashes here.

File details

Details for the file specific_import-0.9-py3-none-any.whl.

File metadata

  • Download URL: specific_import-0.9-py3-none-any.whl
  • Upload date:
  • Size: 1.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.2

File hashes

Hashes for specific_import-0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 624cfe9a0fd5baf8b38694b98708a1f4a2750decfb22bdc36fa93ed3e4956ccb
MD5 799bcfc7152541607c1afc08b8a8abad
BLAKE2b-256 219b74442a8b94f571b83a9a4b6162c399b91b2e7404ef3200598d785a160b67

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