#################
milkpay-cryptopay
#################
**milkpay** is a set of lightweight crypto payment system SDKs.
Installation
------------
.. code-block:: bash
pip install -U milkpay-cryptopay
Simple example
--------------
.. code-block:: python
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())
Raw data
{
"_id": null,
"home_page": null,
"name": "milkpay.cryptopay",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "wakaree <nullmatawasoradesu@gmail.com>",
"keywords": "asyncio, client, crypto, cryptobot, cryptopay, payments, wrapper",
"author": null,
"author_email": "wakaree <nullmatawasoradesu@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/7c/6e/8bb3add827a9631df98e572ebd35b586b466a69b8ce4a383deec2be6f438/milkpay_cryptopay-1.1.2.tar.gz",
"platform": null,
"description": "\n#################\nmilkpay-cryptopay\n#################\n\n**milkpay** is a set of lightweight crypto payment system SDKs.\n\nInstallation\n------------\n\n.. code-block:: bash\n\n pip install -U milkpay-cryptopay\n\nSimple example\n--------------\n\n.. code-block:: python\n\n import asyncio\n import logging\n import uuid\n from typing import Final\n\n from milkpay.cryptopay import Cryptopay\n from milkpay.cryptopay.enums import Asset\n\n API_TOKEN: Final[str] = \"API_TOKEN_HERE\"\n\n\n async def main() -> None:\n logging.basicConfig(level=logging.DEBUG)\n async with Cryptopay(\n api_token=API_TOKEN,\n production=False,\n force_detailed_errors=True,\n ) as cryptopay:\n logging.info(\n await cryptopay.transfer(\n user_id=5945468457,\n asset=Asset.USDT,\n amount=1.1,\n spend_id=int(uuid.uuid4()),\n )\n )\n\n\n if __name__ == \"__main__\":\n asyncio.run(main())\n\n",
"bugtrack_url": null,
"license": null,
"summary": "A lightweight CryptoPay SDK",
"version": "1.1.2",
"project_urls": {
"Documentation": "https://help.crypt.bot/crypto-pay-api",
"Repository": "https://github.com/py-stollen/milkpay-cryptopay"
},
"split_keywords": [
"asyncio",
" client",
" crypto",
" cryptobot",
" cryptopay",
" payments",
" wrapper"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5cafca4c808093914828f163e9297d07b3b6d3652c3fdb0257b4f770fe313e37",
"md5": "a775a07b0d814ab5f2e0f804216e8536",
"sha256": "1455727e4ff0ccbe19cdfed4100215c62d8748a8ced4d0200ce7c1983fb5d958"
},
"downloads": -1,
"filename": "milkpay_cryptopay-1.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a775a07b0d814ab5f2e0f804216e8536",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 19668,
"upload_time": "2025-01-09T22:42:45",
"upload_time_iso_8601": "2025-01-09T22:42:45.001665Z",
"url": "https://files.pythonhosted.org/packages/5c/af/ca4c808093914828f163e9297d07b3b6d3652c3fdb0257b4f770fe313e37/milkpay_cryptopay-1.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7c6e8bb3add827a9631df98e572ebd35b586b466a69b8ce4a383deec2be6f438",
"md5": "bb07a3d634c40c5d464a6949e1eba102",
"sha256": "f7ed19bc970d40eaf7e289ac50cf30e5885c37357a6bd155bf2ea3d67f26b639"
},
"downloads": -1,
"filename": "milkpay_cryptopay-1.1.2.tar.gz",
"has_sig": false,
"md5_digest": "bb07a3d634c40c5d464a6949e1eba102",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 9904,
"upload_time": "2025-01-09T22:42:47",
"upload_time_iso_8601": "2025-01-09T22:42:47.628651Z",
"url": "https://files.pythonhosted.org/packages/7c/6e/8bb3add827a9631df98e572ebd35b586b466a69b8ce4a383deec2be6f438/milkpay_cryptopay-1.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-09 22:42:47",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "py-stollen",
"github_project": "milkpay-cryptopay",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "milkpay.cryptopay"
}