#################
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.11",
"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/a0/d8/d09aa6016267cef80fb8795a884a8e8c9b08a2c1c72c531b0d99f82a9c3b/milkpay_cryptopay-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.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": "a3818dc6e7a28f497290246b3a77dff3bc47948f2991d205d1022e9cc054d7a3",
"md5": "a22c19777539b7409a91d82b93d29f51",
"sha256": "3411d3c854591ee991186e1fa849bad6b4928ed2011155d7298c2977024006cd"
},
"downloads": -1,
"filename": "milkpay_cryptopay-1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a22c19777539b7409a91d82b93d29f51",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 19655,
"upload_time": "2024-08-21T17:06:56",
"upload_time_iso_8601": "2024-08-21T17:06:56.536295Z",
"url": "https://files.pythonhosted.org/packages/a3/81/8dc6e7a28f497290246b3a77dff3bc47948f2991d205d1022e9cc054d7a3/milkpay_cryptopay-1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a0d8d09aa6016267cef80fb8795a884a8e8c9b08a2c1c72c531b0d99f82a9c3b",
"md5": "6b2fbe571b3d5b322cd4c12c56aa7c6f",
"sha256": "da1ed5a4ee72247f529f7ee675a0ea8586494e0b5b9342efc14092cdc977ea96"
},
"downloads": -1,
"filename": "milkpay_cryptopay-1.0.tar.gz",
"has_sig": false,
"md5_digest": "6b2fbe571b3d5b322cd4c12c56aa7c6f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 9822,
"upload_time": "2024-08-21T17:06:57",
"upload_time_iso_8601": "2024-08-21T17:06:57.903201Z",
"url": "https://files.pythonhosted.org/packages/a0/d8/d09aa6016267cef80fb8795a884a8e8c9b08a2c1c72c531b0d99f82a9c3b/milkpay_cryptopay-1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-21 17:06:57",
"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"
}