Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shimport-2023.8.20.19.31.tar.gz (9.5 kB view hashes)

Uploaded Source

Built Distribution

shimport-2023.8.20.19.31-py3-none-any.whl (11.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page