rustpython 0.1.0

A python interpreter written in rust.
1
2
3
4
5
6
7
8
9
10
11
12
from browser import fetch

def fetch_handler(res):
    print(f"headers: {res['headers']}")

fetch(
    "https://httpbin.org/get",
    response_format="json",
    headers={
        "X-Header-Thing": "rustpython is neat!"
    },
).then(fetch_handler, lambda err: print(f"error: {err}"))