Recreate the joys of Office Assistant from the comfort of the Python interpreter

Overview

Coding Assistant 📎

Recreate the joys of Office Assistant from the comfort of the Python interpreter.

How to use?

", line 1, in ZeroDivisionError: division by zero \_______________________________/ _-_ | / /_ \ |/ (o)(o) | | | | \/ / \ | ¯--¯ >>> ">
>>> import coding_assistant
>>> # nothing more is needed
>>> 3 / 0
Traceback (most recent call last):
  File "
     
      "
     , line 1, in <module>
ZeroDivisionError: division by zero
\_______________________________/
 _-_  | /
/_  \ |/
(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.

You might also like...
Compiler Final Project - Lisp Interpreter

Compiler Final Project - Lisp Interpreter

Pylexa - Artificial Assistant made with Python

Pylexa - Artificial Assistant made with Python Alexa is a famous artificial assistant used massively across the world. It is a substitute of Alexa whi

Virtual Assistant Using Python

-Virtual-Assistant-Using-Python Virtual desktop assistant is an awesome thing. If you want your machine to run on your command like Jarvis did for Ton

Powerful virtual assistant in python

Virtual assistant in python Powerful virtual assistant in python Set up Step 1: download repo and unzip Step 2: pip install requirements.txt (if py au

The Google Assistant on a rotary phone

Google Assistant Rotary Phone Shoutout to my dad who had this idea a year ago and I'm only now getting around to doing it. Notes This is the code used

This is a vscode extension with a Virtual Assistant that you can play with when you are bored or you need help..

VS Code Virtual Assistant This is a vscode extension with a Virtual Assistant that you can play with when you are bored or you need help. Its currentl

Home Assistant integration for spanish electrical data providers (e.g., datadis)

homeassistant-edata Esta integración para Home Assistant te permite seguir de un vistazo tus consumos y máximas potencias alcanzadas. Para ello, se ap

Repository for my Monika Assistant project

Monika_Assistant Repository for my Monika Assistant project Major changes: Added face tracker Added manual daily log to see how long it takes me to fi

 Personal Assistant Tessa
Personal Assistant Tessa

Personal Assistant Tessa Introducing our all new personal assistant Tessa..... An intelligent virtual assistant (IVA) or intelligent personal assistan

Comments
  • A rudimentary attempt to scale the size of the chat bubble.

    A rudimentary attempt to scale the size of the chat bubble.

    Instead of having the bubble stay fixed, I just multiplied the width by the length of the given Exception message.

    image

    This script could expand to parser exceptions as well, eg. SyntaxError if it was turned into a pythonrunner wrapper script. Which just took the given file, compiled it and exec'ed it. clipy main.py

    opened by EJEmmett 1
  • Cli attempt

    Cli attempt

    Hi,

    I took a crack at making a Cli tool, as I noted in the commit, it's got a pretty significant limitation at the moment.

    Using input("prompt") buffers the output of the prompt until user input has been given. This likely extends to other areas of user interaction as well. This also seemingly varies from terminal to terminal, PyCharms builtin terminal ignores this limitation and functions fine. Windows powershell and cmd both buffer the input, alongside the buffered input, both terminals also pass the prompt of the input to stderr instead of stdout.

    I figured I'd let you take a glance and determine if you could spot any other methods of going about it.

    While doing that I noticed that the method of getting the length was wrong in some edge cases. Those should be dealt with however, there is also an issue of CPython injecting content into the traceback after it's been pulled into the lower level environment. The new 3.10 suggestions don't appear in exceptions created by the traceback module at the moment, currently it seems the only way to match the sizing is the capture the output of stderr and parse that, but as always, that's a bit iffy. image The traceback module only creates up to not defined, everything past that is generated after the exception has been fired off.

    image image image

    opened by EJEmmett 2
Releases(0.1.0)
  • 0.1.0(Nov 12, 2021)

    Added a Cli that can be called using coding-assistant or clipy. Cleaned up the code to permit adding new characters as time goes on.

    Update to it with with pip install --upgrade coding-assistant

    Source code(tar.gz)
    Source code(zip)
Owner
Louis Sven Goulet
I like to make stuff, sometimes it is useful. Mainly C, Python and x86 asm because I like to torture myself
Louis Sven Goulet
It is a personal assistant chatbot, capable to perform many tasks same as Google Assistant plus more extra features...

PersonalAssistant It is an Personal Assistant, capable to perform many tasks with some unique features, that you haven'e seen yet.... Features / Tasks

Roshan Kumar 95 Dec 21, 2022
sawa (ꦱꦮ) is an open source programming language, an interpreter to be precise, where you can write python code using javanese character.

ꦱꦮ sawa (ꦱꦮ) is an open source programming language, an interpreter to be precise, where you can write python code using javanese character. sawa iku

Rony Lantip 307 Jan 7, 2023
One line Brainfuck interpreter in Python

One line Brainfuck interpreter in Python

null 16 Dec 21, 2022
A Brainfuck interpreter written in Python.

A Brainfuck interpreter written in Python.

Ethan Evans 1 Dec 5, 2021
Expression interpreter written in Python

Calc Interpreter An interpreter modeled after a calculator implemented in Python 3. The program currently only supports basic mathematical expressions

null 1 Oct 17, 2021
Ked interpreter built with Lex, Yacc and Python

Ked Ked is the first programming language known to hail from The People's Republic of Cork. It was first discovered and partially described by Adam Ly

Eoin O'Brien 1 Feb 8, 2022
An implementation of an interpreter for the Brainfuck esoteric language in Python

Brainfuck Interpreter in Python An implementation of an interpreter for the Brainfuck esoteric language in Python. ?? The Brainfuck Language Created i

Carlos Santos 0 Feb 1, 2022
Learning with Peter Norvig's lis.py interpreter

Learning with lis.py This repository contains variations of Peter Norvig's lis.py interpreter for a subset of Scheme, described in (How to Write a (Li

Fluent Python 170 Dec 15, 2022
The Official interpreter for the Pix programming language.

The official interpreter for the Pix programming language. Pix Pix is a programming language dedicated to readable syntax and usability Q) Is Pix the

Pix 6 Sep 25, 2022
A subleq VM/interpreter created by me for no reason

What is Dumbleq? Dumbleq is a dumb Subleq VM/interpreter implementation created by me for absolutely no reason at all. What is Subleq? If you haven't

Phu Minh 2 Nov 13, 2022