Install and import libraries in the current environment.
Project description
Overview
portlive
facilitates installation and usage of python modules from the same script. You can install them in one line and use them on the next.
Usage
# import the portlive method
>>> from portlive import portlive
# use it with `with` keyword
>>> with portlive(modules=['wrapper-bar.wrapper'], aliases=['wrapper']) as pl:
... # I know that there is a Wrapper class inside the `wrapper-bar.wrapper` module
... # I would have used this following import normally:
... # from wrapper_bar.wrapper import Wrapper
... wrapper_class = pl.wrapper.Wrapper()
... # Portlive created a property named `wrapper`
... # which is an alias for `wrapper-bar.wrapper`.
Installation
Install using pip
.
pip install portlive
Issues
Submit any issues found or feature request here.
Pull Requests
Submit pull requests here.
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
portlive-1.0.0.tar.gz
(4.9 kB
view details)
Built Distribution
File details
Details for the file portlive-1.0.0.tar.gz
.
File metadata
- Download URL: portlive-1.0.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de9f156c426fb9ff2d006f8310622a575ff3007ac31c9173404f0d66422c13f1 |
|
MD5 | 6a556f2c58fdcf15ef10fca365d12544 |
|
BLAKE2b-256 | 6e20aef80ccb3cf45ab0625ab8e300593519a218a439f2b1102a7cbc191c3c6a |
File details
Details for the file portlive-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: portlive-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f76fe248784a5ef974e80e41600e83780cfdd35dd11674bfa13e30865d7291d |
|
MD5 | 0d0b9c0e7b31837cd1538afb4e4c4b6b |
|
BLAKE2b-256 | 3978a55219b6b77e1e39ecb64e2bd39739f35ac16807b145b0b47f504ab839a0 |