pine-assistant
Pine AI SDK for Python. Let Pine AI handle your digital chores.
Install
pip install pine-assistant # SDK only
pip install pine-assistant[cli] # SDK + CLI
Quick Start (Async)
from pine_assistant import AsyncPineAI
client = AsyncPineAI(access_token="...", user_id="...")
await client.connect()
session = await client.sessions.create()
await client.join_session(session["id"])
async for event in client.chat(session["id"], "Negotiate my Comcast bill"):
print(event.type, event.data)
await client.disconnect()
Quick Start (CLI)
pine auth login # Email verification
pine chat # Interactive REPL
pine send "Negotiate my Comcast bill" # One-shot message
pine sessions list # List sessions
pine task start <session-id> # Start task (Pro)
Handling Events
Pine AI behaves like a human assistant. After you send a message, it sends acknowledgments, then work logs, then the real response (form, text, or task_ready). Don't respond to acknowledgments — only respond to forms, specific questions, and task lifecycle events, or you'll create an infinite loop.
Continuing Existing Sessions
# List all sessions
result = await client.sessions.list(limit=20)
# Continue an existing session
await client.join_session(existing_session_id)
history = await client.get_history(existing_session_id)
async for event in client.chat(existing_session_id, "What is the status?"):
...
Attachments
# Upload a document for dispute tasks
attachments = await client.sessions.upload_attachment("bill.pdf")
Stream Buffering
Text streaming is buffered internally. You receive one merged text event, not individual chunks. Work log parts are debounced (3s silence).
Payment
Pro subscription recommended. For non-subscribers:
from pine_assistant import AsyncPineAI
print(f"Pay at: {AsyncPineAI.session_url(session_id)}")
License
MIT
Metadata
Release files for pine-assistant 0.3.3
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 | Actions |
|---|---|---|---|---|
| pine_assistant-0.3.3.tar.gz | 24.7 kB | With provenance | Details for pine_assistant-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pine_assistant-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for pine_assistant-0.3.3-py3-none-any.whl |
Total release size: 51.4 kB
Release files / pine_assistant-0.3.3.tar.gz
| Download URL | pine_assistant-0.3.3.tar.gz |
|---|---|
| Size | 24.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ac6ca65b4540b3a6c01ba63f160ac75a0b758955464572448b6c17bc14aaa8d
|
|
BLAKE2b-256 checksum How to use checksums |
48753644e795fc17428b37c23d579a1521414de954b233777737119aaf53fa0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 23, 2026.
Transparency logRelease files / pine_assistant-0.3.3-py3-none-any.whl
| Download URL | pine_assistant-0.3.3-py3-none-any.whl |
|---|---|
| Size | 26.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
990eda8ac0001baa91ce12eaa7322ee00d9fa9f106a8efc60104be420a26d901
|
|
BLAKE2b-256 checksum How to use checksums |
3982687647acfe768f70bb357aea50f58f899ecd17f2c6d7071c77807e14fdf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 23, 2026.
Transparency logSecurity for pine-assistant 0.3.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
Both files in this release have been uploaded with provenance metadata.
Attestation for pine_assistant-0.3.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 May 23, 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.