A lightweight CryptoPay SDK
Project description
milkpay is a set of lightweight crypto payment system SDKs.
Installation
pip install -U milkpay-cryptopay
Simple example
import asyncio
import logging
import uuid
from typing import Final
from milkpay.cryptopay import Cryptopay
from milkpay.cryptopay.enums import Asset
API_TOKEN: Final[str] = "API_TOKEN_HERE"
async def main() -> None:
logging.basicConfig(level=logging.DEBUG)
async with Cryptopay(
api_token=API_TOKEN,
production=False,
force_detailed_errors=True,
) as cryptopay:
logging.info(
await cryptopay.transfer(
user_id=5945468457,
asset=Asset.USDT,
amount=1.1,
spend_id=int(uuid.uuid4()),
)
)
if __name__ == "__main__":
asyncio.run(main())
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
milkpay_cryptopay-1.1.0.tar.gz
(10.0 kB
view details)
Built Distribution
File details
Details for the file milkpay_cryptopay-1.1.0.tar.gz
.
File metadata
- Download URL: milkpay_cryptopay-1.1.0.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb13a1c73a5404a46897707efcebeb9a3dddeae6e6a65e14d66287ac93fde286 |
|
MD5 | 1ef830ce55aa7ed4fec07d1729d81a66 |
|
BLAKE2b-256 | 86111859f6ed0e0d2a88c5568ed8b2eeca74fd1d4346675e4466d2875dbf82f7 |
Provenance
The following attestation bundles were made for milkpay_cryptopay-1.1.0.tar.gz
:
Publisher:
pypi-release.yml
on py-stollen/milkpay-cryptopay
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
milkpay_cryptopay-1.1.0.tar.gz
- Subject digest:
bb13a1c73a5404a46897707efcebeb9a3dddeae6e6a65e14d66287ac93fde286
- Sigstore transparency entry: 147577282
- Sigstore integration time:
- Predicate type:
File details
Details for the file milkpay_cryptopay-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: milkpay_cryptopay-1.1.0-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 430cceace00b1257a23e32db85d07dc6c93ccc6df0150fca13f9d14c260397ff |
|
MD5 | 0a212f5c3411a43b9a02d3b6868d276e |
|
BLAKE2b-256 | ce7c687b112380952d5d2ce905b6712965a5b7a0eb3bcd5ccab8b49a7f85b39e |
Provenance
The following attestation bundles were made for milkpay_cryptopay-1.1.0-py3-none-any.whl
:
Publisher:
pypi-release.yml
on py-stollen/milkpay-cryptopay
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
milkpay_cryptopay-1.1.0-py3-none-any.whl
- Subject digest:
430cceace00b1257a23e32db85d07dc6c93ccc6df0150fca13f9d14c260397ff
- Sigstore transparency entry: 147577285
- Sigstore integration time:
- Predicate type: