Skip to main content

Natural Payments SDK

Project description

Natural Payments Python SDK

PyPI version

The Natural Payments SDK for Python provides access to the Natural API for building AI agents that send, receive, and manage money.

Documentation

Full documentation, guides, and API reference are available at docs.natural.co/guides/platform/sdks.

Installation

pip install naturalpay

Getting started

import os

from naturalpay import NaturalClientSync

client = NaturalClientSync(api_key=os.environ.get("NATURAL_API_KEY"))

payment = client.payments.create(
    recipient="alice@example.com",
    amount=5000,
    memo="Payment for consulting",
    agent_id="agt_019cd1798d637a4da75dce386343931d",
    instance_id="session-abc123",
    customer_party_id="pty_019cd34e27c179bfbbe6870486b11b67",
    idempotency_key="pay_unique_key",
)

print(payment.transaction_id)

An async client is also available as NaturalClient. See docs.natural.co/guides/platform/sdks for the async pattern.

MCP server

The SDK ships with an MCP server for AI agent integration with Claude Desktop, Cursor, and other MCP clients:

uvx naturalpay mcp serve

See docs.natural.co/guides/platform/sdks#mcp-server for client configuration.

Requirements

Python 3.12+

License

MIT

Project details


Download files

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

Source Distribution

naturalpay-0.1.4.tar.gz (28.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

naturalpay-0.1.4-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

Details for the file naturalpay-0.1.4.tar.gz.

File metadata

  • Download URL: naturalpay-0.1.4.tar.gz
  • Upload date:
  • Size: 28.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for naturalpay-0.1.4.tar.gz
Algorithm Hash digest
SHA256 3b540da29954a5c1eead6c644110e01c171f9ff1dd5ddcf7d3faebccb8cb38a6
MD5 4d62620796a90ad2bddaf65fccda155c
BLAKE2b-256 fd1de3715b239cfe7ad52f6ef8b9ca0e7881cc466bb820e8ef9c5b1f4fa1c6f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for naturalpay-0.1.4.tar.gz:

Publisher: release.yml on naturalpay/naturalpay-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file naturalpay-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: naturalpay-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 36.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for naturalpay-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9394714c3a40007daf4b2dbd9f1f91f1d8b108e1c0d507d051746030f574e2a8
MD5 9a8ad0e459c440d8bf44228f8c0d38ab
BLAKE2b-256 c885e4ee68adf3d209a7c020e1a1592ee5bafa3d1d1622691df3bf63352e967e

See more details on using hashes here.

Provenance

The following attestation bundles were made for naturalpay-0.1.4-py3-none-any.whl:

Publisher: release.yml on naturalpay/naturalpay-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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