Skip to main content

No project description provided

Project description

pypi pypi-downloads

Code Wallet Python SDK

The Code Wallet Python SDK is a module that allows Python developers to integrate Code into their applications. Seamlessly start accepting payments with minimal setup and just a few lines of code.

See the documentation for more details.

What is Code?

Code is a mobile wallet app leveraging self-custodial blockchain technology to provide an instant, global, and private payments experience.

Installation

You can install the Code Wallet Python SDK from PyPI:

pip install code-wallet

Usage

Here's a simple example showcasing how to create a payment intent using the Python SDK:

from code_wallet.client.intents import payment_intents

test_data = {
    'destination': "E8otxw1CVX9bfyddKu3ZB3BVLa4VVF9J7CTPdnUwT9jR",
    'amount': 0.05,
    'currency': 'usd',
}

# Create a payment request intent
response = payment_intents.create(test_data)
print("Intent:", response['id'])
print("Client secret:", response['clientSecret']) # Pass this to the frontend

# Verify the intent status
response = payment_intents.getStatus({'intent': id})
status = response.get('status')

Getting Help

If you have any questions or need help integrating Code into your website or application, please reach out to us on Discord or Twitter.

Contributing

For now the best way to contribute is to share feedback on Discord. This will evolve as we continue to build out the platform and open up more ways to contribute.

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

code_wallet-1.0.4.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

code_wallet-1.0.4-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file code_wallet-1.0.4.tar.gz.

File metadata

  • Download URL: code_wallet-1.0.4.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for code_wallet-1.0.4.tar.gz
Algorithm Hash digest
SHA256 d421d19ae619d3c1c8da9a5c942086b4f7482ee652c7bce2e8973a7ba940904f
MD5 42be2ce35812b9211db766c64eef5a92
BLAKE2b-256 db5199e3e8b7c3cb5cac366bf651d05c00ed583393c2050a7d399abf3da07345

See more details on using hashes here.

File details

Details for the file code_wallet-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: code_wallet-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for code_wallet-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2660f76c2df764770507c26e1c4bd9ff0fd55fe706bbb58652b3856c9536d846
MD5 faf708fcc0ab9d96c7624f60f95370a8
BLAKE2b-256 72dd5c8add890a792c5a2852c2462f9dfa6f681f04b26974d33c6ca1cd7c1770

See more details on using hashes here.

Supported by

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