Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

basedpython

a python type checker and a python-like language that transpiles to pure python

  • a python type checker with framework support — pydantic, sqlalchemy, pytest and django are modelled directly, so the magic they do at runtime checks like ordinary code
  • basedpython, a python-like language that builds into python wheels
  • compiles into high performance python extension modules
  • a language server, formatter and linter — high performance and feature rich tooling
enum class Shape:
    case Circle(radius: int)
    case Rect(width: int, height: int)

    def area(self) -> int:
        return match self:
            case Shape.Circle(r):
                3 * r * r
            case Shape.Rect(w, h):
                w * h

extension list[Element: Shape]:
    def first_circle(self) -> Shape.Circle?:
        for shape in self:
            if shape is Shape.Circle:
                return shape
        return None

def stats(shapes: list[Shape]) -> (count: int, total: int):
    return (len(shapes), sum(s.area() for s in shapes))

def main():
    let shapes = [Shape.Circle(1), Shape.Rect(2, 3)]
    let summary = stats(shapes)
    print(f"{summary.count} shapes, {summary.total} total")
    print(shapes.first_circle()?.radius ?? 0)

installation

uv add --dev basedpython
echo 'print("hello")' > main.by
by run main

documentation

kotlinisland.github.io/basedpython

acknowledgements

basedpython is built on top of astral-sh/ruff. none of this would exist without the work of the astral team and the wider ruff community

Metadata

Release files for basedpython 0.0.1b2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for basedpython 0.0.1b2
File Size Uploaded Provenance Actions
basedpython-0.0.1b2.tar.gz 16.1 MB Without provenance Details for basedpython-0.0.1b2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for basedpython 0.0.1b2
File Actions
basedpython-0.0.1b2-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for basedpython-0.0.1b2-py3-none-win_arm64.whl
basedpython-0.0.1b2-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for basedpython-0.0.1b2-py3-none-win_amd64.whl
basedpython-0.0.1b2-py3-none-win32.whl Python 3 none Windows x86-32 Details for basedpython-0.0.1b2-py3-none-win32.whl
basedpython-0.0.1b2-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for basedpython-0.0.1b2-py3-none-musllinux_1_2_x86_64.whl
basedpython-0.0.1b2-py3-none-musllinux_1_2_i686.whl Python 3 none Linux musl 1.2+ x86-32 Details for basedpython-0.0.1b2-py3-none-musllinux_1_2_i686.whl
basedpython-0.0.1b2-py3-none-musllinux_1_2_armv7l.whl Python 3 none Linux musl 1.2+ ARMv7l Details for basedpython-0.0.1b2-py3-none-musllinux_1_2_armv7l.whl
basedpython-0.0.1b2-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for basedpython-0.0.1b2-py3-none-musllinux_1_2_aarch64.whl
basedpython-0.0.1b2-py3-none-manylinux_2_31_riscv64.whl Python 3 none Linux glibc 2.31+ RISC-V 64 Details for basedpython-0.0.1b2-py3-none-manylinux_2_31_riscv64.whl
basedpython-0.0.1b2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for basedpython-0.0.1b2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
basedpython-0.0.1b2-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl Python 3 none Linux glibc 2.17+ IBM System/390x Details for basedpython-0.0.1b2-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
basedpython-0.0.1b2-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl Python 3 none Linux glibc 2.17+ PowerPC 64-le Details for basedpython-0.0.1b2-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
basedpython-0.0.1b2-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl Python 3 none Linux glibc 2.17+ x86-32 Details for basedpython-0.0.1b2-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
basedpython-0.0.1b2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl Python 3 none Linux glibc 2.17+ ARMv7l Details for basedpython-0.0.1b2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
basedpython-0.0.1b2-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for basedpython-0.0.1b2-py3-none-macosx_11_0_arm64.whl
basedpython-0.0.1b2-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for basedpython-0.0.1b2-py3-none-macosx_10_12_x86_64.whl
basedpython-0.0.1b2-py3-none-linux_armv6l.whl Python 3 none linux armv6l Details for basedpython-0.0.1b2-py3-none-linux_armv6l.whl

Total release size: 613.3 MB

Release files / basedpython-0.0.1b2.tar.gz

Download URL basedpython-0.0.1b2.tar.gz
Size 16.1 MB
Tags Source
SHA-256 checksum
How to use checksums
5029e3a67a2a6db9083b9d250f9e13d6ca11942a4bf895dc03f0a7a97337e44b
BLAKE2b-256 checksum
How to use checksums
caa32c142a181424eeafccadd6c249e67ba25ff388200f3cae18b3e18c4db830
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / basedpython-0.0.1b2-py3-none-win_arm64.whl

Download URL basedpython-0.0.1b2-py3-none-win_arm64.whl
Size 36.0 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
048b0371fa02adf72fa0e044c918028b4e955febb65d379fa511b0f1a930a177
BLAKE2b-256 checksum
How to use checksums
5322c71d10da3b023c093091553de9bf2893380873c457416d56b8a9b06a4310
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / basedpython-0.0.1b2-py3-none-win_amd64.whl

Download URL basedpython-0.0.1b2-py3-none-win_amd64.whl
Size 39.6 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
88c19eb7de698ed2fb8e1274d7d24b4ba646929f529ccddd2e1d363b0d426154
BLAKE2b-256 checksum
How to use checksums
24a23d043f3e8fba3564d4cfa7cbd7eb542f6da45c3c0abb33c91279df24f4af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / basedpython-0.0.1b2-py3-none-win32.whl

Download URL basedpython-0.0.1b2-py3-none-win32.whl
Size 34.5 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
a03762e752726123c5e35534b0614fbe8caf99a183b8b7a894fd1c2bcd39b59e
BLAKE2b-256 checksum
How to use checksums
4c7c598459c7398ff302f5cadc36b07849da8e982b08847652dd3e129a665588
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / basedpython-0.0.1b2-py3-none-musllinux_1_2_x86_64.whl

Download URL basedpython-0.0.1b2-py3-none-musllinux_1_2_x86_64.whl
Size 38.3 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
bbce61160e200e2fac12b640ec6cbaad4ea893e58156a7e75cd27a9a5dadab03
BLAKE2b-256 checksum
How to use checksums
2446843ba13ae509f26f4952c5b6b484719d98383e87d5aae3f198e965ecd61d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / basedpython-0.0.1b2-py3-none-musllinux_1_2_i686.whl

Download URL basedpython-0.0.1b2-py3-none-musllinux_1_2_i686.whl
Size 38.2 MB
Tags Linux musl 1.2+ x86-32 Python 3
SHA-256 checksum
How to use checksums
65281aadda8e1aab54d6bf1cc96f333c0becb71e2d3caa5890c0f1478cafdc48
BLAKE2b-256 checksum
How to use checksums
8f565ec3002b45d6f359c163917e5ce9bd0b3cea3c0def16bbed9bea8a5b807f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / basedpython-0.0.1b2-py3-none-musllinux_1_2_armv7l.whl

Download URL basedpython-0.0.1b2-py3-none-musllinux_1_2_armv7l.whl
Size 34.8 MB
Tags Linux musl 1.2+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
a985e809ed8bd2e959457f97f91564e3576470e4cd83b3081bb541baa7deb302
BLAKE2b-256 checksum
How to use checksums
30aafda1253262938627ab66f73609a3f98a774bf7a89428cec2dc2abb59de0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / basedpython-0.0.1b2-py3-none-musllinux_1_2_aarch64.whl

Download URL basedpython-0.0.1b2-py3-none-musllinux_1_2_aarch64.whl
Size 35.4 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
bd9923b01a0ad6358f6eb29a40d867a84fe03ef8b4c45ce7d5008fe05ec78825
BLAKE2b-256 checksum
How to use checksums
0dcd067a79063db438508d13be23c2b96efe56089ffbaf3866d05bb8aacfa48b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / basedpython-0.0.1b2-py3-none-manylinux_2_31_riscv64.whl

Download URL basedpython-0.0.1b2-py3-none-manylinux_2_31_riscv64.whl
Size 37.6 MB
Tags Linux glibc 2.31+ RISC-V 64 Python 3
SHA-256 checksum
How to use checksums
ea6d4be5782c9496f0ea5c648f74cfa2503a336cc36e71e93fb006b05a863f8a
BLAKE2b-256 checksum
How to use checksums
ca11098f0d4542ab7615cb5bf4f49ecf39920e09c303c7bd323cc262112f6918
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / basedpython-0.0.1b2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL basedpython-0.0.1b2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 39.9 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
c53c9e7e5884fa238a82d32afa957b959182f12e6ccd6e2cf254f92743c0fe2b
BLAKE2b-256 checksum
How to use checksums
dd67453be86fd1b2f2de01ce5add681d1680f220bcb0bf8cae941c9fb02f4b32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / basedpython-0.0.1b2-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl

Download URL basedpython-0.0.1b2-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Size 37.4 MB
Tags Linux glibc 2.17+ IBM System/390x Python 3
SHA-256 checksum
How to use checksums
154c0e8e85b1fe0e8fe4f4e204733d266a61736398e08a083ce6810588cce823
BLAKE2b-256 checksum
How to use checksums
55f6878e4e7e9831009dd1af64c5975f298f29bdaada39e848e856ff8e022567
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / basedpython-0.0.1b2-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl

Download URL basedpython-0.0.1b2-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Size 41.4 MB
Tags Linux glibc 2.17+ PowerPC 64-le Python 3
SHA-256 checksum
How to use checksums
bd283461cda5f646bff224229dfaddca528ba48628a9c44334972a322a125bd1
BLAKE2b-256 checksum
How to use checksums
213d1868570ff7523370c1c173e40e7117620f787a880a67b18ea6c43d71def6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / basedpython-0.0.1b2-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl

Download URL basedpython-0.0.1b2-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Size 41.1 MB
Tags Linux glibc 2.17+ x86-32 Python 3
SHA-256 checksum
How to use checksums
0afbf33b4b11908b48664a6113cf0a1ed053bd234d24633de8e72e0d72f79644
BLAKE2b-256 checksum
How to use checksums
11f0bc6077e04674ac4253e8557f8cccf5d80e9ebaa6749384fae4d0933794ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / basedpython-0.0.1b2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL basedpython-0.0.1b2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 34.9 MB
Tags Linux glibc 2.17+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
f7c6e00484fc8194c510494079f2de820c5c0829cf1bfd5ac374df4bd69ee370
BLAKE2b-256 checksum
How to use checksums
0932643e1d91f19b0fb1f295362bbc2f5008643659adb652f49e67fb17082ee8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / basedpython-0.0.1b2-py3-none-macosx_11_0_arm64.whl

Download URL basedpython-0.0.1b2-py3-none-macosx_11_0_arm64.whl
Size 36.2 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e37dbbeffceed3792d9221c4e4144a7b5f8c334d16e4d7fffc183074eca03b94
BLAKE2b-256 checksum
How to use checksums
f90c3ebff2ee73ec3a5076d1371482957b94fc602d1a60238eb206a0264bf719
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / basedpython-0.0.1b2-py3-none-macosx_10_12_x86_64.whl

Download URL basedpython-0.0.1b2-py3-none-macosx_10_12_x86_64.whl
Size 36.7 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
98fc1f408829f7530d64169707d45aed77d10aa9f8ab610dd393288998388aea
BLAKE2b-256 checksum
How to use checksums
5239fc59428a344645c77a570e8b60ab85fad0f448a874999b962b91c4b6622b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / basedpython-0.0.1b2-py3-none-linux_armv6l.whl

Download URL basedpython-0.0.1b2-py3-none-linux_armv6l.whl
Size 35.4 MB
Tags Python 3 linux armv6l
SHA-256 checksum
How to use checksums
2e8d9ac60fc0d331e16337297768d6fd3ef673ccd865fa1823ee55080a341b82
BLAKE2b-256 checksum
How to use checksums
59db1b41d897eaa64ce94b8c90e3a5e6c2572d58276e7f8a853b6b8edd79f7c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for basedpython 0.0.1b2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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