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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pixeloffice_paymeter-1.1.0.tar.gz.
File metadata
- Download URL: pixeloffice_paymeter-1.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/5.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58134b7c3a6b0305f113bf19301afcc3efac26a07d8f68a9fecf67008b93ee2a
|
|
| MD5 |
ad595aa45b0459bc34aaef4a5fc01344
|
|
| BLAKE2b-256 |
4893f8aafc10294911992d07890183e71723bdc392fcb727b2b56c8e6dcdc008
|