Skip to main content

pite-stubs — type stubs for Pite

Type stubs (PEP 561) for the pite Python module, which the Pite game engine embeds in its own CPython interpreter.

The distribution is named pite-stubs because PyPI rejects pite as too similar to existing projects. The import name is still pite: it is the engine's native module, so pip install pite-stubs gives your editor types for import pite.

The module is native (registered from Rust via PyO3), so it is not importable from a normal Python environment. This package exists purely so editors and type checkers — Pylance/Pyright — resolve import pite and offer autocompletion and diagnostics when you work on a Pite project outside the built-in editor.

Install

pip install pite-stubs

Add it to your project's development dependencies, not to the game's runtime dependencies: scripts always execute inside the engine (pite edit, pite run), never in the venv where the stubs are installed.

What you get

import pite


class Player(pite.Node2D):
    hud = pite.child("HUD")  # resolved lazily to a Node at access time
    hit = pite.signal(int)

    def _ready(self) -> None:
        self.hit.connect(self._on_hit)

    def _process(self, delta: float) -> None:
        self.position += pite.Vec2(1.0, 0.0)

    def _on_hit(self, amount: int) -> None:
        self.hud.get_node("../ScoreLabel").text = f"Score: {amount}"

Every node class, property, method, and free function from the engine's schema is covered. Signal payloads are typed through pite.signal(...), and pite.child(...) / pite.node(...) resolve to Node through descriptor typing.

Runtime behaviour

import pite raises ImportError in a normal interpreter, with a message pointing back at the engine. That is intentional: the name belongs to the engine's native module, and failing loudly beats an empty module that silently does nothing.

License

MIT OR Apache-2.0, matching the engine.

Metadata

Release files for pite-stubs 0.5.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 pite-stubs 0.5.0
File Size Uploaded Provenance Actions
pite_stubs-0.5.0.tar.gz 8.1 kB With provenance Details for pite_stubs-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pite-stubs 0.5.0
File Interpreter ABI Platform Actions
pite_stubs-0.5.0-py3-none-any.whl Python 3 none any Details for pite_stubs-0.5.0-py3-none-any.whl

Total release size: 17.5 kB

Release files / pite_stubs-0.5.0.tar.gz

Download URL pite_stubs-0.5.0.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
69d47a0ef9a84ef3e7bd45197bee21198d04c490c4d77e97dc8ff11d5ffc0f7c
BLAKE2b-256 checksum
How to use checksums
fae634141b6cc02d2fd4eea21c758d2d1e650cef557624e6151e73f0f4d3dc55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / pite_stubs-0.5.0-py3-none-any.whl

Download URL pite_stubs-0.5.0-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07bbf0fc8feeca184827151a803798e1f812266986679c4dc3a9c6e9f25be921
BLAKE2b-256 checksum
How to use checksums
1af620c733291ef27944937d1a4d2e26a28b4f4410f4749879c8ec041c766651
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for pite-stubs 0.5.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pite_stubs-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files Full provenance

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