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.0.2.tar.gz.
File metadata
- Download URL: pixeloffice_paymeter-1.0.2.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/5.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67d4baa07d9d1132ad9240525b93e8427407b9426691cdc58e924df854969505
|
|
| MD5 |
08975bf7745a108642c19a374fd7afa9
|
|
| BLAKE2b-256 |
e82c4a75cb1c82cea964be9b916db9329b352bd2b02be7347a5f09248989ccb8
|