Skip to main content

Never see another ImportError

Project description

# yoloimport
*Never see another ImportError*

Are you tired of seeing ImportErrors? **yoloimport** makes ImportErrors a relic of the past, by installing your dependencies for you whenever you import a missing package. Now you can focus on writing code instead of installing dependencies!

## Installation

To install, just run `pip install yoloimport` and kiss pip goodbye, because yoloimport will deal with pip for you!

## Example

Let's try to use the [itty framework](https://github.com/toastdriven/itty) for the first time!


>>> from itty import get, run_itty
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named itty


Who wants to see that nonsense!? Let's try it after importing **yoloimport**!

>>> import yoloimport
>>> from itty import get, run_itty
Collecting itty
Using cached itty-0.8.2-py2.py3-none-any.whl
Installing collected packages: itty

Successfully installed itty-0.8.2
Collecting -winreg
Could not find any downloads that satisfy the requirement -winreg
No distributions at all found for -winreg
>>> @get('/')
... def index(request):
... return 'Hello World!'
...
>>> run_itty()
itty starting up (using wsgiref)...
Listening on http://localhost:8080...
Use Ctrl-C to quit.

Who knows what that "-winreg" error was all about? I sure don't, but who cares? We got itty working without any pesky ImportErrors getting in our way!

*Happy April 1st!*

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

yoloimport-0.1.0.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file yoloimport-0.1.0.tar.gz.

File metadata

  • Download URL: yoloimport-0.1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for yoloimport-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a7ff5641cd7d378a0dca761d45b11d579c07a63355998518a2acb07aedcaa0f8
MD5 2ab48e67178d94200edf399b838448eb
BLAKE2b-256 5e46f351110531ab0be2124e97c95384c3f18e7f2eef73545e40a0f05259513e

See more details on using hashes here.

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