Aiython
When Python doesn’t know what to do, Aiython does.
Run an existing Python script by replacing the command:
python app.py → aiython app.py
The same works for modules: python -m package → aiython -m package. Your script and its arguments stay the same. Aiython checks declared types and can call AI for inline requests or eligible errors.
Example
from typing import Literal
tickets = [
"After uploading a PDF, the ticket page freezes until I refresh the browser.",
"Could you email last month's invoice and update the billing contact for our team?",
]
queues = {"bug": [], "billing": []}
for ticket in tickets:
kind: Literal["bug", "billing"] = classify this ticket
queues[kind].append(ticket)
summary = summarize the routed tickets in one sentence
print(queues, summary)
Python runs the loop and updates queues. Aiython handles the inline requests using live program state and checks the declared Literal result.
Try it
Save the example as tickets.py:
pip install aiython
aiython setup
aiython tickets.py
Preview AI calls without running the script: aiython --explain tickets.py.
Documentation · Examples · Installation
Aiython is not a sandbox: AI tools run with your process permissions, and relevant code or data may be sent to your provider. MIT licensed.
Metadata
Release files for aiython 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aiython-0.1.0.tar.gz | 108.3 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiython-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 229.2 kB
Release files / aiython-0.1.0.tar.gz
| Download URL | aiython-0.1.0.tar.gz |
|---|---|
| Size | 108.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5683a76cddc5ce63f29ab09575ea707be85819c1e9d4f6a7a801cbb83e3cd3dd
|
|
BLAKE2b-256 checksum How to use checksums |
4c870535be86b7f3af3c2f6ef7e8ba1221ff032f83f67ddfec9cfcea5afaf815
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 28, 2026.
Transparency logRelease files / aiython-0.1.0-py3-none-any.whl
| Download URL | aiython-0.1.0-py3-none-any.whl |
|---|---|
| Size | 120.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e234eb7425c5315790e51cdab0462fe4c548eac33c36a3637c9ca5146d78be41
|
|
BLAKE2b-256 checksum How to use checksums |
f8e69adbe8f8bd550525d93a66e5a6a9792f3ff960e32b47b2d7e1009ce90f30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 28, 2026.
Transparency logSecurity for aiython 0.1.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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for aiython-0.1.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 Sep 28, 2026.
Transparency logA 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.