Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/konstin/itsfine
Ever had your python imports not working? Don't worry, it's fine. Just `import itsfine`.
https://github.com/konstin/itsfine
Last synced: 14 days ago
JSON representation
Ever had your python imports not working? Don't worry, it's fine. Just `import itsfine`.
- Host: GitHub
- URL: https://github.com/konstin/itsfine
- Owner: konstin
- Created: 2022-09-03T09:27:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-04T19:55:27.000Z (over 2 years ago)
- Last Synced: 2024-11-26T02:12:45.764Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 978 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# It's fine
Ever had your python imports not working? Don't worry, it's fine. Just `import itsfine`.
```shell
pip install itsfine
``````python
>>> import numpy
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'numpy'
>>> import itsfine
>>> import numpy
>>> numpy.arange(100).sum()
All good {}
```You can also preload it in your python shell with `python -i -c "import itsfine"`.
Convinced? Make it permanent with `Fix.for_good()`:
```shell
$ python -c "import numpy; print(numpy.arange(10))"
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'numpy'
$ python -c "from itsfine import Fix; Fix.for_good()"
$ python -c "import numpy; print(numpy.arange(10))"
All good
```Also works in jupyter notebooks:
![Screenshot of a jupyter notebook running in the jupyter browser gui, details in demo/demo.ipynb and demo/screenshot 3 alt.txt
](demo/screenshot%203.png)