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.7.1

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.7.1
File Size Uploaded Provenance Actions
palito-0.7.1.tar.gz 6.0 kB With provenance Details for palito-0.7.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for palito 0.7.1
File Interpreter ABI Platform Actions
palito-0.7.1-py3-none-any.whl Python 3 none any Details for palito-0.7.1-py3-none-any.whl

Total release size: 11.4 kB

Release files / palito-0.7.1.tar.gz

Download URL palito-0.7.1.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
33f8e6695947d47d893d64d5d699e5252e8414882c74b35b9949290ab421d214
BLAKE2b-256 checksum
How to use checksums
cc6074e1aa66f30cde02b9ec3bf1c2584a046bbcef2d4afdde52532da0f03f89
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.7.1-py3-none-any.whl

Download URL palito-0.7.1-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92c3122ec7ed4f6b715990bc851446b5e7a8c8cb5ad58cb69f183df73c30a569
BLAKE2b-256 checksum
How to use checksums
7a4c84d1666d452e8b133559f574e15ddab85483951048ce137090930dcda9ed
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.7.1

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 palito-0.7.1.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.

Release history Release notifications | RSS feed

This release

0.7.1 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