Share your repls and programming experiences

← Back to all posts
Python interpreter (Repl copy)
h
ch1ck3n

ch1ck3n's python interpreter

This python interpreter replaces repl.it's python terminal, with a few extra commands and funtions:

EVERYTHING IS CODED IN PYTHON

The functions

  • f.typewriter(text, speed) Type writer effect.
  • get(url) Get the content of an url.
  • clear this only runs in the interpreter, clears the terminal

You can find the code of these functions in presetfunctions.py,

Errors

This program uses try and except to catch errors, and sys to print them.

Example:

Unexpected error: <class 'NameError'>
This tells you that the error is NameError, which means that command or function you executed is not defined.

The packages

This program uses a lot of packages, mainly for the get() function.

Used in presetfunctions.py for the get() function.
Documentation here

  • The os package

Used in main.py, presetfunctions.py for clearing the terminal.
Documentation here

Used in presetfunctions.py. Beautiful Soup is a Python library for getting data out of HTML, XML, and other markup languages. Say you've found some webpages that display data relevant to your research, such as date or address information, but that do not provide any way of downloading the data directly
Documentation here

Voters
AmoghTheCool
ch1ck3n
Comments
hotnewtop
ch1ck3n

IDK Why a turtle / tkinker window is there

DynamicSquid

Wait I'm a little confuzzled. A python interpreter means I can write python code and it will run it for me. But this looks like a shell