iext
Add new imports tied to a specific class.
Installation
Install this package via pip:
python -m pip install iext
Usage
To extend the imports within a specific class, subclass ExtendImports and add an __imports__ method with all the extra imports. Everything imported here will be added to the namespace of self.
from iext import ExtendImports
class ExampleClass(ExtendImports):
def __imports__(self):
import pkg1
from pkg2 import thing
def example_method(self):
return self.pkg1.func(self.thing)
Release files for iext 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| iext-1.1.0.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iext-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.4 kB
Release files / iext-1.1.0.tar.gz
| Download URL | iext-1.1.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2799e6e421339dc889987a9ade973e18c71089d4cb696f354a547295762cc516
|
|
BLAKE2b-256 checksum How to use checksums |
07c33199b6e565e8adfc68fcdf8ffc39dfdb41eec001658110c72c7a87d89417
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.15.1 CPython/3.10.12 Linux/6.5.0-1018-azure
|
Release files / iext-1.1.0-py3-none-any.whl
| Download URL | iext-1.1.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b0bf44b21f79371b9f665cd408e40985273bcf27cd582a70c11961c6da93445
|
|
BLAKE2b-256 checksum How to use checksums |
7b896f25edd2e8280bd6558690f9463997351df86abca4751286674a7eb2ac7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.15.1 CPython/3.10.12 Linux/6.5.0-1018-azure
|