# BlockPayments.py
BlockPayments python api wrapper
# Examples:
```python
"""This example will use sincronous requests."""
from BlockPayments import BlockPayments
blockpayments = BlockPaymets("my_api_key")
# Get a payment url
print(blockpayments.get_payment_url(
user_id=123 # replace with your telegram user id
amount=0.001 # replace with the amount of the currency you want to receive
currency="BTC" # replace with the currency you want to receive (BTC, ETH, LTC or BSC)
))
```
```python
"""This example will use asincronous requests."""
from BlockPayments import AsyncBlockPayments
import asyncio
blockpayments = AsyncBlockPaymets("my_api_key")
async def main():
# Get a payment url
print(await blockpayments.get_payment_url(
user_id=123 # replace with your telegram user id
amount=0.001 # replace with the amount of the currency you want to receive
currency="BTC" # replace with the currency you want to receive (BTC, ETH, LTC or BSC)
))
asyncio.run(main())
```
Raw data
{
"_id": null,
"home_page": "https://github.com/HexyeDev/BlockPayments.py",
"name": "BlockPayments",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "blockpayments,blockpayments api,blockpayments python,blockpayments wrapper,blockpayments.py",
"author": "Hexye",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/58/ca/7d1d99ac63300b036ea4789e29675df9c71e0385b5a7c588d475485b40fe/BlockPayments-0.0.1.tar.gz",
"platform": null,
"description": "# BlockPayments.py\nBlockPayments python api wrapper\n\n\n# Examples:\n```python\n\"\"\"This example will use sincronous requests.\"\"\"\nfrom BlockPayments import BlockPayments\nblockpayments = BlockPaymets(\"my_api_key\")\n\n\n# Get a payment url\nprint(blockpayments.get_payment_url(\n user_id=123 # replace with your telegram user id\n amount=0.001 # replace with the amount of the currency you want to receive\n currency=\"BTC\" # replace with the currency you want to receive (BTC, ETH, LTC or BSC)\n))\n```\n\n\n```python\n\"\"\"This example will use asincronous requests.\"\"\"\nfrom BlockPayments import AsyncBlockPayments\nimport asyncio\nblockpayments = AsyncBlockPaymets(\"my_api_key\")\n\nasync def main():\n # Get a payment url\n print(await blockpayments.get_payment_url(\n user_id=123 # replace with your telegram user id\n amount=0.001 # replace with the amount of the currency you want to receive\n currency=\"BTC\" # replace with the currency you want to receive (BTC, ETH, LTC or BSC)\n ))\n\nasyncio.run(main())\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python wrapper for the BlockPayments API.",
"version": "0.0.1",
"project_urls": {
"Homepage": "https://github.com/HexyeDev/BlockPayments.py"
},
"split_keywords": [
"blockpayments",
"blockpayments api",
"blockpayments python",
"blockpayments wrapper",
"blockpayments.py"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b4e556eace9c154cc06ed9e702b54cfcc8bb24c9afe0ce546f5847ee7b2cb43f",
"md5": "66c76cc45f86898404bed40027c04393",
"sha256": "23f20afb46abc634380821f738d5ec676810de58938fb70da2a8bf0a20df590f"
},
"downloads": -1,
"filename": "BlockPayments-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "66c76cc45f86898404bed40027c04393",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3686,
"upload_time": "2023-11-28T21:11:26",
"upload_time_iso_8601": "2023-11-28T21:11:26.501930Z",
"url": "https://files.pythonhosted.org/packages/b4/e5/56eace9c154cc06ed9e702b54cfcc8bb24c9afe0ce546f5847ee7b2cb43f/BlockPayments-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "58ca7d1d99ac63300b036ea4789e29675df9c71e0385b5a7c588d475485b40fe",
"md5": "6d7b9bdf0bbdaed33ec15953372fe3e2",
"sha256": "df0ac97322b8c09d7e7ee27c398247424bdd572ff92ce53496724a8ffe2ed1c8"
},
"downloads": -1,
"filename": "BlockPayments-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "6d7b9bdf0bbdaed33ec15953372fe3e2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3145,
"upload_time": "2023-11-28T21:11:28",
"upload_time_iso_8601": "2023-11-28T21:11:28.172482Z",
"url": "https://files.pythonhosted.org/packages/58/ca/7d1d99ac63300b036ea4789e29675df9c71e0385b5a7c588d475485b40fe/BlockPayments-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-28 21:11:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "HexyeDev",
"github_project": "BlockPayments.py",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "blockpayments"
}