MiniPyParser
A minimal python parser, written in python
Installing
Local
$ pip install -e minipyparser
PyPI
$ pip install minipyparser
Using
# examples/hello_world.py
print("hello, from mars!")
# examples/main.py
from minipyparser import tokenizer
from minipyparser import parser
for ast in parser.parse(tokenizer.tokenize(open("hello_world.py"))):
print(ast)
$ cd examples
$ python main.py
Comment(value='examples/hello_world.py')
Call(head=Name(print), args=[Literal(value='hello, from mars!')])
2022 - Marcel Guinhos
Metadata
Release files for minipyparser 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| minipyparser-0.1.0.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| minipyparser-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.0 kB
Release files / minipyparser-0.1.0.tar.gz
| Download URL | minipyparser-0.1.0.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e840a853a519ec4c269f73ab74611ed8cd863e1a17ad88477698f5a84ea114f2
|
|
BLAKE2b-256 checksum How to use checksums |
573b6f2f6eb0aa1216e51b50de14652b19a76988949ae88e067f3ed5f2a53d31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.13
|
Release files / minipyparser-0.1.0-py3-none-any.whl
| Download URL | minipyparser-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d5f8f54998f0166aaa57199fb0bb444b4d239aabd3fd5f0bc269eca6cce12c59
|
|
BLAKE2b-256 checksum How to use checksums |
d6dabe89c9b503fd96199ecf3ac5b176b3f9c7048f0f043931c44c510de27d7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.13
|