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.3.tar.gz (19.5 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.3-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: naturalpay-0.1.3.tar.gz
  • Upload date:
  • Size: 19.5 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.3.tar.gz
Algorithm Hash digest
SHA256 40f2dd1be4915f580b0a5429d334118379fd511377266dbb52b742e7b8229643
MD5 8f173b54260b0c3a7eaeeea4d12dbcd3
BLAKE2b-256 0ce7a619cbd9b604973956f6af7b1fc10d2b05766879c86a01744effc594db7f

See more details on using hashes here.

Provenance

The following attestation bundles were made for naturalpay-0.1.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: naturalpay-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 27.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e33a4aa4a23d66d3e918a30f0a938839bfc46f0e32044cd7d849dce05984db27
MD5 9eaa502e06f59b62740c8ec1b59783f4
BLAKE2b-256 3730114b8b3abe67e5a4661c5a61a7b21a4024d62c2aeb6594ac1e7d78a72743

See more details on using hashes here.

Provenance

The following attestation bundles were made for naturalpay-0.1.3-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