Import tools for python projects
Project description
shimport | |
Import utilities for python
|
Overview
Import utilities for python
Installation
See pypi for available releases.
pip install shimport
Usage
Simple lazy modules
import shimport
pathlib = shimport.lazy('pathlib')
print(pathlib.Path('.').absolute())
Filtering module contents
import typing
import shimport
wrapper = shimport.wrapper("os.path")
namespace = wrapper.prune(
exclude_private=True,
filter_module_origin=True,
filter_instances=typing.FunctionType,
)
namespace.map(lambda k, v: print([k,v]))
Automatically importing submodules
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for shimport-2023.8.20.19.31-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73eb64b4243a514e94906acc8c2e91df30c729030e59149369e6967b3903e278 |
|
MD5 | e72c69c2a9070200eea881b723814918 |
|
BLAKE2b-256 | 6d32afa44e2b9b0142365ffd841d8fc799875122a61c9a3df2948417f06aa02f |