POST Python type vocabulary: scalar dtypes, Array, Shape, layouts, DataFrame and Series annotations.
Project description
postyp
The POST Python type vocabulary: scalar dtypes
(Float64, Int64, Bool, …), Array with Shape and layout
qualifiers, and DataFrame/Series annotations.
postyp is the canonical, compiler-independent source of POST Python
type metadata (spec §10). Conforming compilers introspect this module
rather than duplicating dtype definitions; POST source files import
their annotations from it:
from postyp import Array, Float64, Shape
def det3(m: Array[Float64, Shape[3, 3]]) -> Float64: ...
Every scalar dtype also has a bit-width short-hand (i8…i64,
u8…u64, f16/f32/f64, c64/c128) — the same class under a
compact name, for signatures that would otherwise wrap:
from postyp import Array, f64
def det3(m: Array[f64, Shape[3, 3]]) -> f64: ...
The reference compiler is distributed separately as
postpyc, which depends on this package. Development happens in
openteams-ai/postpython.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file postyp-0.3.0.tar.gz.
File metadata
- Download URL: postyp-0.3.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f6c2c6897292a7ecad29f33f0e02deb75c909d20ac0f8505717cf41d4f31a3c
|
|
| MD5 |
1a363170a193d13409b5d853fbf65fd4
|
|
| BLAKE2b-256 |
2c9af5d05cb1d8a1bc27a2aa89b4cd413054fb4282070160295058af05bca200
|
File details
Details for the file postyp-0.3.0-py3-none-any.whl.
File metadata
- Download URL: postyp-0.3.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb46e30e74045598e3b0202d50cbd60cbca53f3c7af09772c385eaf016d39861
|
|
| MD5 |
612e4703af43ec1da5193c96bcc31770
|
|
| BLAKE2b-256 |
ee2409c87a12b05eee582a63871eeeacc666fcf5cc6c62b6f78669c5829681b8
|