Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/miedzinski/import-pypi

One dependency to rule them all
https://github.com/miedzinski/import-pypi

Last synced: about 1 month ago
JSON representation

One dependency to rule them all

Awesome Lists containing this project

README

        

# import-pypi

One dependency to rule them all.

[![asciicast](https://asciinema.org/a/173095.png)](https://asciinema.org/a/173095)

# Installation

Copy `pypi.py` into your site-packages directory or straight into your project.
Don't bother using pip, requirements.txt and all that crap.

Requires Python 3.4+.

# Usage

```python
import pypi
```

That's it. You can now import Django, NumPy, or whatever and it will always
be there.

You can also pin your dependencies _before_ importing them

```python
import pypi

pypi.install('Django', '2.0.3')

import django

print(django.__version__) # 2.0.3
```

# License

GNU GPLv3.