pixeloffice-paymeter
🎁 Get 1,000 Free Production Requests & Live Dashboard Key:
Claim your free API key and track real-time USDC agent payouts in 1 click at pixeloffice.eu/dashboard.html
Python HTTP 402 / x402 Micropayment & Autonomous Agent Metering Middleware for FastAPI, Flask, and MCP servers.
⚡ Quick Start
pip install pixeloffice-paymeter
FastAPI Middleware Example:
from fastapi import FastAPI
from pixeloffice_paymeter import PaymeterMiddleware
app = FastAPI()
# 1-line middleware to protect endpoint with $0.005 micro-metering
app.add_middleware(
PaymeterMiddleware,
price_usd=0.005,
api_key="px_dev_live_your_key_here", # Get free at pixeloffice.eu/dashboard.html
payout_wallet="0xYourWalletAddress"
)
@app.get("/api/search")
async def search_endpoint(q: str):
return {"status": "paid", "result": f"Data for {q}"}
📊 Live Developer Dashboard
Track live per-call revenue and agent transactions at:
👉 https://pixeloffice.eu/dashboard.html
📄 License
Metadata
Release files for pixeloffice-paymeter 1.2.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 | |
|---|---|---|---|
| pixeloffice_paymeter-1.2.0.tar.gz | 3.1 kB | Details |
Release files / pixeloffice_paymeter-1.2.0.tar.gz
| Download URL | pixeloffice_paymeter-1.2.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d3addbde66d85118e2fd7b7d06e4d1fd696a0b2952a51f9004c0b9d634452276
|
|
BLAKE2b-256 checksum How to use checksums |
9a783c912fec98a6f50bc8039d2faa0c8a46f778c660d32ac7bd50d85dfdf74d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.8
|