Skip to main content

MiniPyParser

A minimal python parser, written in python

Upload Python Package

View License

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)

Source distribution for minipyparser 0.1.0
File Size Uploaded
minipyparser-0.1.0.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for minipyparser 0.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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