Skip to main content

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.

Release files for coding-assistant 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coding-assistant 0.1.0
File Size Uploaded
coding-assistant-0.1.0.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for coding-assistant 0.1.0
File Interpreter ABI Platform
coding_assistant-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.6 kB

Release files / coding-assistant-0.1.0.tar.gz

Download URL coding-assistant-0.1.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2e6cb93ca0dd4fe0f95271921112e4ec9c28156d9cdc9c93ea4670c3710fbc3f
BLAKE2b-256 checksum
How to use checksums
bb34eceedf14e7a57cea6a6f28f5884066e3d5b655e54c8a8be0e403aee87e6f
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / coding_assistant-0.1.0-py3-none-any.whl

Download URL coding_assistant-0.1.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb5ca4becdf0b23a672fe6a7522af0037dc2e9c27c1f484ddddf093ab317d61d
BLAKE2b-256 checksum
How to use checksums
0b00196e8083818d4878c77ba9d4a627de6e37341389d3e5c5883183cdda0d3d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.2

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page