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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pixeloffice_paymeter-1.1.0.tar.gz (3.1 kB view details)

Uploaded Source

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

Hashes for pixeloffice_paymeter-1.1.0.tar.gz
Algorithm Hash digest
SHA256 58134b7c3a6b0305f113bf19301afcc3efac26a07d8f68a9fecf67008b93ee2a
MD5 ad595aa45b0459bc34aaef4a5fc01344
BLAKE2b-256 4893f8aafc10294911992d07890183e71723bdc392fcb727b2b56c8e6dcdc008

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 file

1.0.2

1 file

1.0.1

1 file

1.0.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page