Skip to main content

smartypants-network (Python)

The Smarty Pants Python kit as an installable package. Python 3.8 or newer, standard library only.

pip install smartypants-network
from smartypants_network import SmartyPants
sp = SmartyPants()                       # reads SMARTYPANTS_API_KEY
print(sp.ask("Say hello in five words."))
with sp.workspace(minutes=10) as ws:     # one VM, many commands (our own account first)
    ws.put_file("data.txt", "hello")
    print(ws.run("sh", "cat data.txt | wc -c")["stdout"])

When to use it

  • Use it for everyday AI calls where an exact open model is good enough and price matters: summaries, extraction, classification, drafting, tool calls, JSON output, embeddings and reranking. Work that can wait goes in a batch at half the per-token price.
  • Don't use it for work that needs a frontier-size model, more context than a model lists, or strict latency. Keep your current provider for those, and as a fallback.
  • Requests run on Macs owned by other people: don't send secrets or personal data unless the person you work for has approved it. Check is_ready on https://smartypants.network/v1/models first.
  • Framework setups (LangChain, OpenAI Agents SDK, Vercel AI SDK, LlamaIndex, Claude Code): https://smartypants.network/docs/agents#frameworks

The module is smartypants_network, not smartypants, because PyPI already has an unrelated smartypants package. The one-file download at https://smartypants.network/kits/smartypants.py keeps from smartypants import SmartyPants.

For the command line, use the smartypants tool from the npm package (see packages/cli).

Build from the repo root:

node packages/cli/scripts/sync-kits.mjs          # copies apps/gateway/agent-kit/smartypants.py here
python3 -m pip wheel --no-deps -w packages/python/dist packages/python

MIT licence. Published by the "Publish agent packages" workflow; bump version in pyproject.toml first.

Metadata

Release files for smartypants-network 0.1.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 smartypants-network 0.1.1
File Size Uploaded Provenance Actions
smartypants_network-0.1.1.tar.gz 13.3 kB With provenance Details for smartypants_network-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for smartypants-network 0.1.1
File Interpreter ABI Platform Actions
smartypants_network-0.1.1-py3-none-any.whl Python 3 none any Details for smartypants_network-0.1.1-py3-none-any.whl

Total release size: 27.1 kB

Release files / smartypants_network-0.1.1.tar.gz

Download URL smartypants_network-0.1.1.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8965634cdd33b2db7940ed3263117d45b61486c5a789389e60e4fc40b5af80f0
BLAKE2b-256 checksum
How to use checksums
2c3850c0e87194e4ac04bde9b642c6cb8680a647d7323a11a89b594a3aa18039
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 19, 2026.

Transparency log

Release files / smartypants_network-0.1.1-py3-none-any.whl

Download URL smartypants_network-0.1.1-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f06fe115f34e3b6c494537d50eae8d678635f5df1718af7a687cf428d97029d7
BLAKE2b-256 checksum
How to use checksums
f7c0ca11c9cd4383b5790e2f305579b8d1389013d608ce59fbe2551988c98070
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 19, 2026.

Transparency log

Security for smartypants-network 0.1.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 smartypants_network-0.1.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 19, 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.1.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