Skip to main content

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

MIT © Pixel Office & Pixel Ventures

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)

Source distribution for pixeloffice-paymeter 1.2.0
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

Release history Release notifications | RSS feed

This release

1.2.0 This release

1 release file

1.1.0

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

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