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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file milkpay_cryptopay-1.1.2.tar.gz.
File metadata
- Download URL: milkpay_cryptopay-1.1.2.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7ed19bc970d40eaf7e289ac50cf30e5885c37357a6bd155bf2ea3d67f26b639
|
|
| MD5 |
bb07a3d634c40c5d464a6949e1eba102
|
|
| BLAKE2b-256 |
7c6e8bb3add827a9631df98e572ebd35b586b466a69b8ce4a383deec2be6f438
|
Provenance
The following attestation bundles were made for milkpay_cryptopay-1.1.2.tar.gz:
Publisher:
pypi-release.yml on py-stollen/milkpay-cryptopay
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
milkpay_cryptopay-1.1.2.tar.gz -
Subject digest:
f7ed19bc970d40eaf7e289ac50cf30e5885c37357a6bd155bf2ea3d67f26b639 - Sigstore transparency entry: 161259860
- Sigstore integration time:
-
Permalink:
py-stollen/milkpay-cryptopay@7f6eb5263ceaa0b0dc4fc37ec61f1bf89332455d -
Branch / Tag:
refs/heads/master - Owner: https://github.com/py-stollen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-release.yml@7f6eb5263ceaa0b0dc4fc37ec61f1bf89332455d -
Trigger Event:
push
-
Statement type:
File details
Details for the file milkpay_cryptopay-1.1.2-py3-none-any.whl.
File metadata
- Download URL: milkpay_cryptopay-1.1.2-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1455727e4ff0ccbe19cdfed4100215c62d8748a8ced4d0200ce7c1983fb5d958
|
|
| MD5 |
a775a07b0d814ab5f2e0f804216e8536
|
|
| BLAKE2b-256 |
5cafca4c808093914828f163e9297d07b3b6d3652c3fdb0257b4f770fe313e37
|
Provenance
The following attestation bundles were made for milkpay_cryptopay-1.1.2-py3-none-any.whl:
Publisher:
pypi-release.yml on py-stollen/milkpay-cryptopay
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
milkpay_cryptopay-1.1.2-py3-none-any.whl -
Subject digest:
1455727e4ff0ccbe19cdfed4100215c62d8748a8ced4d0200ce7c1983fb5d958 - Sigstore transparency entry: 161259862
- Sigstore integration time:
-
Permalink:
py-stollen/milkpay-cryptopay@7f6eb5263ceaa0b0dc4fc37ec61f1bf89332455d -
Branch / Tag:
refs/heads/master - Owner: https://github.com/py-stollen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-release.yml@7f6eb5263ceaa0b0dc4fc37ec61f1bf89332455d -
Trigger Event:
push
-
Statement type: