Skip to main content

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

Metadata

Release files for specific-import 0.9.6

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

Source distribution (sdist)

Source distribution for specific-import 0.9.6
File Size Uploaded
specific_import-0.9.6.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for specific-import 0.9.6
File Interpreter ABI Platform
specific_import-0.9.6-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 kB

Release files / specific_import-0.9.6.tar.gz

Download URL specific_import-0.9.6.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ddca1cd79a0bf5df39447ee9c0976025dd3f92295ae42e0e4e4767fdfcc91dc3
BLAKE2b-256 checksum
How to use checksums
466a77ecc7159919f99985e0f1220df444c139848630df2cdca250d60decde3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.14

Release files / specific_import-0.9.6-py3-none-any.whl

Download URL specific_import-0.9.6-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d612336fbd18965309aeb7049c9d7467d868a7d502fd5f995b66a1f00dbdcf42
BLAKE2b-256 checksum
How to use checksums
90e97f1f8bdf972b261a85686b338bdbec3be9b44dd4967c63f10b73cef759ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.14

Release history Release notifications | RSS feed

This release

0.9.6 This release

2 release files

0.9.5

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9

2 release files

0.8

1 release file

0.7

1 release file

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