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
Metadata
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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| simport-0.2.dev16.tar.gz | 7.8 kB | Without provenance | 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 |
Security for simport 0.2.dev16
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.