Skip to main content

openreceive

Receive-only Lightning checkout for Python hosts, over Nostr Wallet Connect. One distribution with framework extras:

pip install "openreceive[django]"    # Django >= 5.2
pip install "openreceive[fastapi]"   # FastAPI >= 0.115 (sync SQLAlchemy engine for the two tables)
pip install "openreceive[sqlalchemy]"  # plain hosts: the handler + the SQL repository

The package is engine #5 of the OpenReceive monorepo and reproduces the shared money, settlement, NIP-47 paging, swap-provider and HTTP behavior pinned by spec/test-vectors/ (tools/conformance/python-crosslang.py). The host owns orders, prices and fulfillment; OpenReceive owns the openreceive_payments / openreceive_meta rows inside the host's database, the per-reference lock, write-once settlement and the reconciliation state machine.

Layout:

  • openreceive — kernel: money, settlement, nwc (URI, info, requests, errors, the ReceiveNwcClient protocol and the production client), payments (wallet walk, closure decision), swap, rates.
  • openreceive.storage — the PaymentRepository protocol, the SQLAlchemy Core repository (SqlPaymentRepository, payments_schema_sql(dialect)).
  • openreceive.serverService, the framework-free RequestHandler (request → status/body/headers), OpenReceiveApp (handler + repository + the gated opportunistic reconcile), notifications worker, doctor, Host.
  • openreceive.testingFakeWallet, FakeSwapProvider and the testkit fixtures every engine shares (docs/internal/testkit-contract.md).

Documentation: https://openreceive.org/guides — quickstarts for Django and FastAPI, the storage guide, and the host testing guide.

Receive-only NWC codes must never reach browsers, logs or tests. NWC_URI, LSC_URI_PRIMARY and LSC_URI_BACKUP are read from the process environment.

Release files for openreceive 0.4.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openreceive 0.4.4
File Size Uploaded
openreceive-0.4.4.tar.gz 924.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for openreceive 0.4.4
File Interpreter ABI Platform
openreceive-0.4.4-py3-none-any.whl Python 3 none any Details

Total release size: 1.9 MB

Release files / openreceive-0.4.4.tar.gz

Download URL openreceive-0.4.4.tar.gz
Size 924.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8ebbf6b728eb8c7a88e53af3af56f7cc4d4b661957eea57413f134a945f13e04
BLAKE2b-256 checksum
How to use checksums
3fed2b563c0020c45bf27ad3d434cbcad40e5b403fd258c0d58a19780fa225cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / openreceive-0.4.4-py3-none-any.whl

Download URL openreceive-0.4.4-py3-none-any.whl
Size 964.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f561fd6012d7f3aad05d5ed770df171a1c5ed836c38b5eece8c56026f21011d0
BLAKE2b-256 checksum
How to use checksums
51bb52dda9a65c6013de8f2cc4074e97333b187eb48169a48955dae4cc5025f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

0.4.10

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.6

2 release files

0.4.5

2 release files

This release

0.4.4 This release

2 release files

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