A Python interpreter, in Python.
Project description
interpreted
A Python interpreter, written from scratch in Python.
This interpreter is made solely as the base for my talk, "Writing a Python interpreter from scratch, in half an hour."
Installation
pip install interpreted
Usage
$ cat foo.py
print("2 + 2 is", 2 + 2)
def greet(name='User'):
print('Hello,', name + '!')
greet()
$ interpreted foo.py
2 + 2 is 4
Hello, User!
Local Development / Testing
- Create and activate a virtual environment
- Run
pip install -r requirements-dev.txt
to do an editable install - Run
pytest
to run tests
Type Checking
Run mypy .
Create and upload a package to PyPI
Make sure to bump the version in setup.cfg
.
Then run the following commands:
rm -rf build dist
python setup.py sdist bdist_wheel
Then upload it to PyPI using twine:
twine upload dist/*
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
interpreted-0.1.0.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for interpreted-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6ee7c9ddd206621c94550e66716e6808f38deb3f847576596fc0da04a220a51 |
|
MD5 | 7ff27c337f2259271a9654cf9a428eb3 |
|
BLAKE2b-256 | e0f53a530e3111622f620883fa7ef45edfedc735d1b42c67cf3fdf81910ecc82 |