Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

simport

Simple Import Library for Python

Supports importing functions or class methods from files not in the Python Path.

Using Simport

import simport

# For modules already in the Python Path function = simport.load(‘mymodule.myfunction’) class_method = simport.load(‘mymodule:MyClass.mymethod’) klass = simport.load(‘mymodule:MyClass’) # uninstanstiated.

# For modules not in the Python Path function = simport.load(‘/path/to/dir|module_name:myfunction’) class_method = simport.load(‘/path/to/dir|module_name:MyClass.mymethod’)

Look at the tests for some interesting naming conventions for specifying relative modules, etc.

Running Tests

From the simport root directory, run tox

Release files for simport 0.2.dev16

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

Source distribution (sdist)

Source distribution for simport 0.2.dev16
File Size Uploaded
simport-0.2.dev16.tar.gz 7.8 kB Details

Release files / simport-0.2.dev16.tar.gz

Download URL simport-0.2.dev16.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
361d74ac2ecfcf98ecb7c6edff616b666c9d87271b6d5a397f043618ffdd77a7
BLAKE2b-256 checksum
How to use checksums
7b954a550f1bc8ccc7562d115ebefca4d76332d90e9d7aa157e7425973a4fdfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.dev16 This release

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