Skip to main content

lpython

https://lpython.org/

This is a python package to add typing information to python code. Use LPython to compile it.

Example

from lpython import i32, f64

def add(a: i32, b: i32) -> i32:
    return a + b

def area_of_circle(radius: f64) -> f64:
    pi: f64 = 3.14
    return pi * (radius * radius)

def main0():
    print("The sum of 5 and 3 is", end=" ")
    print(add(5, 3))
    print("Area of circle with radius 5.0 is", end=" ")
    print(area_of_circle(5.0))

main0()
$ python main.py
The sum of 5 and 3 is 8
Area of circle with radius 5.0 is 78.5

Metadata

Release files for lpython 0.0.16.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 lpython 0.0.16.0
File Size Uploaded
lpython-0.0.16.0.tar.gz 10.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lpython 0.0.16.0
File Interpreter ABI Platform
lpython-0.0.16.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.9 kB

Release files / lpython-0.0.16.0.tar.gz

Download URL lpython-0.0.16.0.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
34f02b52d1e10255914107d2e6c9ec3b1025543441e894475e0a5228b9d2e1cd
BLAKE2b-256 checksum
How to use checksums
2234c20587a9589a9e2912f5909465e77b3eb9186015bd7a789e460b54cf7fbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / lpython-0.0.16.0-py3-none-any.whl

Download URL lpython-0.0.16.0-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f47380ea372b615b1a34ac380a8eb2930e9018b047fbff78f1b38b74cd3de52
BLAKE2b-256 checksum
How to use checksums
97ace342ac8b2ed2c7b6bde8197295d9238475e1cef8607c712e388ff50e7bb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.0.16.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