Metadata-Version: 2.1
Name: plata-sdk
Version: 0.2.0
Summary: Plata for programs and AI assistants: post-quantum payments, final in seconds, never sent twice
Home-page: https://plata.pablo-plata1.workers.dev/sdk
License: Free to use. Code not public. All rights reserved.
Keywords: plata,payments,post-quantum,wallet,mcp,ai-agents
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: MacOS
Classifier: License :: Other/Proprietary License
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# plata-sdk

Plata for programs and AI assistants: post-quantum payments (Falcon-1024),
final in seconds, never sent twice. Keys are made on your computer; no
sign-up. The live network is reached only through a private connection,
built in. No other package needed.

```
pip install plata-sdk
```

```python
import plata_sdk as plata

with plata.devnet("devnet") as net:          # a test network on this computer
    me = net.wallet("agent.wallet")
    net.faucet(me.address, "10")             # test PLATA
    p = me.pay("plata1...", "0.05")          # signed, saved, then sent
    p.wait_final()
```

`plata.connect()` in place of `plata.devnet()` uses the live network. Two
commands come with it: `plata-wallet` (a wallet, a payment, a whole test
network from the command line) and `plata-mcp`, a wallet for an AI
assistant (an MCP server) that pays within limits its owner sets:

```
plata-wallet new agent.wallet
plata-mcp --wallet agent.wallet --per-payment 1 --per-day 5 --ask-above 0.5
```

Getting paid ("pay to use", HTTP 402):

```python
from plata_sdk.wsgi import PayToUse          # plata_sdk.asgi for FastAPI, Starlette
app.wsgi_app = PayToUse(app.wsgi_app, me.shop(), price="0.05")
```

## Said plainly

- First release. It paid on the live network from a phone (13 November
  2026: sent in 1.0 second, final 2.3 seconds later); the Linux and
  Windows programs were tested on test networks.
- Linux (x64). Windows (x64) and Mac are previews: the Mac programs
  have not yet run on a Mac.
- Its code is not public: the package holds ready-made programs.
- A wallet is a file and its 24 words. Nobody can give them back to you.
- Plata is young: a small network run by its partners' phones. Its
  founder is anonymous, and 10% of every payout goes to a development
  fund.
- PLATA has no promised value. This is not an investment.

More: https://plata.pablo-plata1.workers.dev/sdk

<!-- mcp-name: dev.workers.pablo-plata1.plata/plata-mcp -->
