Skip to content

A python library that helps install and import other libraries directly for the current script environment.

License

Notifications You must be signed in to change notification settings

d33p0st/portlive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A python library that helps install and import other libraries directly for the current script environment.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages