#################
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/86/11/1859f6ed0e0d2a88c5568ed8b2eeca74fd1d4346675e4466d2875dbf82f7/milkpay_cryptopay-1.1.0.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.0",
"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": "ce7c687b112380952d5d2ce905b6712965a5b7a0eb3bcd5ccab8b49a7f85b39e",
"md5": "0a212f5c3411a43b9a02d3b6868d276e",
"sha256": "430cceace00b1257a23e32db85d07dc6c93ccc6df0150fca13f9d14c260397ff"
},
"downloads": -1,
"filename": "milkpay_cryptopay-1.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0a212f5c3411a43b9a02d3b6868d276e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 19978,
"upload_time": "2024-11-08T13:55:29",
"upload_time_iso_8601": "2024-11-08T13:55:29.706774Z",
"url": "https://files.pythonhosted.org/packages/ce/7c/687b112380952d5d2ce905b6712965a5b7a0eb3bcd5ccab8b49a7f85b39e/milkpay_cryptopay-1.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "86111859f6ed0e0d2a88c5568ed8b2eeca74fd1d4346675e4466d2875dbf82f7",
"md5": "1ef830ce55aa7ed4fec07d1729d81a66",
"sha256": "bb13a1c73a5404a46897707efcebeb9a3dddeae6e6a65e14d66287ac93fde286"
},
"downloads": -1,
"filename": "milkpay_cryptopay-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "1ef830ce55aa7ed4fec07d1729d81a66",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 9970,
"upload_time": "2024-11-08T13:55:30",
"upload_time_iso_8601": "2024-11-08T13:55:30.973576Z",
"url": "https://files.pythonhosted.org/packages/86/11/1859f6ed0e0d2a88c5568ed8b2eeca74fd1d4346675e4466d2875dbf82f7/milkpay_cryptopay-1.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-08 13:55:30",
"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"
}