Skip to main content

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 (i8i64, u8u64, 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

postyp-0.3.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

postyp-0.3.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

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

Hashes for postyp-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7f6c2c6897292a7ecad29f33f0e02deb75c909d20ac0f8505717cf41d4f31a3c
MD5 1a363170a193d13409b5d853fbf65fd4
BLAKE2b-256 2c9af5d05cb1d8a1bc27a2aa89b4cd413054fb4282070160295058af05bca200

See more details on using hashes here.

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

Hashes for postyp-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb46e30e74045598e3b0202d50cbd60cbca53f3c7af09772c385eaf016d39861
MD5 612e4703af43ec1da5193c96bcc31770
BLAKE2b-256 ee2409c87a12b05eee582a63871eeeacc666fcf5cc6c62b6f78669c5829681b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page