Recreate the joys of Office Assistant from the comfort of the Python interpreter
Project description
Coding Assistant 📎
Recreate the joys of Office Assistant from the comfort of the Python interpreter.
How to use?
>>> import coding_assistant
>>> # nothing more is needed
>>> 3 / 0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ZeroDivisionError: division by zero
\_______________________________/
_-_ | /
/_ \ |/
(o)(o)
| | |
| \/ /
\ |
¯--¯
>>>
You can also invoke coding assistant as a python wrapper so that even errors happening in the compile phase (ie bad imports and the likes) will be handeled by coding assistant.
$ coding-assistant bad_import.py
Traceback (most recent call last):
File "~/.local/bin/coding-assistant", line 8, in <module>
sys.exit(cli())
File "~/.local/lib/python3.9/site-packages/coding_assistant/cli.py", line 23, in cli
exec(f.read(), {
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'nonexistant_module'
\_______________________________________________________/
_-_ | /
/_ \ |/
(o)(o)
| | |
| \/ /
\ |
¯--¯
$
How to install?
python3 -m pip install coding-assistant
Q&A
Is it possible to have other, maybe custom, assistants?
Not at the moment but if you can draw ascii art please submit a PR.
Will this package break
try
except
blocks?
No it only changes the way exceptions are printed not the actual exception.
Is this code "production ready"?
Don't.
Will you get sued by Microsoft?
Hopefully my ascii art is ugly enough that I can claim it's an original character.
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
Built Distribution
File details
Details for the file coding-assistant-0.1.0.tar.gz
.
File metadata
- Download URL: coding-assistant-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.26.0 setuptools/57.4.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e6cb93ca0dd4fe0f95271921112e4ec9c28156d9cdc9c93ea4670c3710fbc3f |
|
MD5 | 597889d5646af821a5abed4ea76af7a7 |
|
BLAKE2b-256 | bb34eceedf14e7a57cea6a6f28f5884066e3d5b655e54c8a8be0e403aee87e6f |
File details
Details for the file coding_assistant-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: coding_assistant-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.26.0 setuptools/57.4.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb5ca4becdf0b23a672fe6a7522af0037dc2e9c27c1f484ddddf093ab317d61d |
|
MD5 | 1da9d53a7fcb47672a8236b9097f26cc |
|
BLAKE2b-256 | 0b00196e8083818d4878c77ba9d4a627de6e37341389d3e5c5883183cdda0d3d |