Skip to main content

palito (Python)

Python binding for Palito. It uses only the standard library (ctypes).

pip install ./bindings/python
import palito

with palito.Palito("model.gguf") as llm:
    reply = llm.chat([{"role": "user", "content": "Hello!"}],
                     on_text=lambda text: print(text, end="", flush=True))
    print(reply.finish_reason, reply.tokens_per_second)

    for text in llm.stream_chat([{"role": "user", "content": "A haiku about tea"}],
                                temperature=0.7, top_p=0.9, stop=["\n\n"]):
        print(text, end="", flush=True)
  • Generation keywords: max_tokens, thinking, temperature (0: greedy), top_p, top_k, seed, stop and json_schema (a dict or JSON string; the reply is JSON matching it, with reasoning off; {"type": "object"} for any object).
  • Results: a Completion dataclass.
  • Errors: raise palito.PalitoError.

Metadata

Release files for palito 0.11.3

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

Source distribution (sdist)

Source distribution for palito 0.11.3
File Size Uploaded Provenance Actions
palito-0.11.3.tar.gz 6.3 kB With provenance Details for palito-0.11.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for palito 0.11.3
File Interpreter ABI Platform Actions
palito-0.11.3-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for palito-0.11.3-py3-none-win_amd64.whl
palito-0.11.3-py3-none-manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for palito-0.11.3-py3-none-manylinux_2_17_x86_64.whl
palito-0.11.3-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for palito-0.11.3-py3-none-macosx_11_0_arm64.whl

Total release size: 9.9 MB

Release files / palito-0.11.3.tar.gz

Download URL palito-0.11.3.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2fa8463c518a05cf736c2b7edefcf56788ee55b2acd7c4cd6871fe20452fcd15
BLAKE2b-256 checksum
How to use checksums
5baf11b24b200860507bfca1785bc97705861dce82c157230c5cbbfaa1e2c6bc
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 23, 2026.

Transparency log

Release files / palito-0.11.3-py3-none-win_amd64.whl

Download URL palito-0.11.3-py3-none-win_amd64.whl
Size 3.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
6cc7eb1376e6799f9975a805ba06a0864de40832f3135dcb9f1876215ea606d0
BLAKE2b-256 checksum
How to use checksums
6f24449a91e5dd10a1405420afc209ef4fe38177a357d752b88e898ceac6c37c
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 23, 2026.

Transparency log

Release files / palito-0.11.3-py3-none-manylinux_2_17_x86_64.whl

Download URL palito-0.11.3-py3-none-manylinux_2_17_x86_64.whl
Size 3.8 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
4db94a166d7c6be123ced07db9ce93051af6950d7dbb9baa3928c01c234b9e63
BLAKE2b-256 checksum
How to use checksums
7f989187434a0e8ee1afbc4ce721a4784f7ec96574f834e6545c6be59e861a87
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 23, 2026.

Transparency log

Release files / palito-0.11.3-py3-none-macosx_11_0_arm64.whl

Download URL palito-0.11.3-py3-none-macosx_11_0_arm64.whl
Size 2.8 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
68885793ef054d27c628c3e87805df98e7f02241f09d30c5c30c803a677b4c88
BLAKE2b-256 checksum
How to use checksums
269e159690d53e84028b7c2ba725b003a9dc0d1dc58954595818d2e5a6859631
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 23, 2026.

Transparency log

Security for palito 0.11.3

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

All 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for palito-0.11.3.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 23, 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.

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