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.0.1.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file pixeloffice_paymeter-1.0.1.tar.gz.

File metadata

  • Download URL: pixeloffice_paymeter-1.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0

File hashes

Hashes for pixeloffice_paymeter-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3be98ab8ed84ee1a4e26f9960fe17371974019afa87b7983bd7b29e2e8b16279
MD5 a9bc650ccf342b09a60b265ac4275408
BLAKE2b-256 84058ad4daba096d0c6d56d803f180a510a47c9164a8bd603dc76ddcec0f26c4

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.0

1 file

1.0.2

1 file

This release

1.0.1 This release

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