{ "info": { "author": "Borka Martin Orlov", "author_email": "borka.orlov@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Pilw.io API wrapper. \nPython wrapper for [Pilw.io API](https://developers.pilw.io/documentation/)\n\n---\n\n# Installation\n```pip install pilwio-api```\n\n--- \n\n## Usage\n\n```python\nimport pilwio\n\n\"\"\" Initialize version wrapper with apikey \"\"\"\napi = pilwio.V1('apikey')\n\n\"\"\" Set new apikey if necessary \"\"\"\napi.set_apikey('new_api_key')\n\n\"\"\" User info \"\"\"\napi.whoami()\n\n```\n\n---\n\n### Virtual machines\n\n```python\napi.vm.index() \n\napi.vm.show(uuid)\n\napi.vm.create(vm)\napi.vm.delete(uuid)\napi.vm.update(uuid, **kwargs) \napi.vm.start(uuid)\napi.vm.stop(uuid)\n\napi.vm.ips(uuid)\napi.vm.reserve_ip(uuid)\napi.vm.release_ip(uuid)\n\napi.vm.clone(uuid, name)\napi.vm.toggle_backup(uuid)\napi.vm.rebuild(uuid, replica_uuid)\n```\n\n---\n\n### Replicas\n```python\napi.replica.index(uuid)\napi.replica.create(uuid)\napi.replica.delete(uuid)\n```\n\n---\n\n### Tokens\n```python\napi.token.index()\napi.token.delete(token_id)\napi.token.update(token_id, **kwargs)\napi.token.create(token)\n```\n\n---\n\n### Resource Billing\n```python\napi.billing.index(id)\napi.billing.info(uuid)\napi.billing.update(uuid, id)\n```\n\n---\n\n### Credit cards\n```python\napi.card.index(account_id)\napi.card.delete(card_id)\napi.card.show(card_id)\napi.card.set_primary(card_id)\n```\n\n---\n\n### Invoices\n```python\napi.invoice.index(id)\napi.invoice.show(invoice_id)\napi.invoice.pay_all(account_id)\napi.invoice.pay_amount(account_id, amount)\napi.invoice.pay_invoice(invoice_id)\n``` \n\n---\n\n### Billing Accounts\n```python\napi.billing_account.index()\napi.billing_account.show(account_id)\napi.billing_account.update(account_id, account_data)\napi.billing_account.set_default(account_id)\napi.billing_account.get_unpaid(account_id)\n```\n\n---\n\n### Storage\n```\napi.storage.url()\napi.storage.show(name)\napi.storage.index(billing_account_id) #param optional\napi.storage.user()\napi.storage.keys()\napi.storage.delete_key(key)\napi.storage.create_key()\n```\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Borks/Pilwio", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pilwio-api", "package_url": "https://pypi.org/project/pilwio-api/", "platform": "", "project_url": "https://pypi.org/project/pilwio-api/", "project_urls": { "Homepage": "https://github.com/Borks/Pilwio" }, "release_url": "https://pypi.org/project/pilwio-api/1.0.1/", "requires_dist": [ "requests" ], "requires_python": "", "summary": "Python API wrapper for pilw.io", "version": "1.0.1" }, "last_serial": 4712761, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "28953c71c11fad3d54b9bd556ffb3019", "sha256": "2ffba48f1769a50fc1ae5714dec1b7b371d800ac18b8dab95dbe045058fa506a" }, "downloads": -1, "filename": "pilwio_api-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "28953c71c11fad3d54b9bd556ffb3019", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10232, "upload_time": "2019-01-18T14:56:37", "url": "https://files.pythonhosted.org/packages/e2/49/1edd2ff75b56bf4a49ddce1f414efe7a9bc7818d67ab86e5379e49f63557/pilwio_api-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "498003926547a6005bd48798e031f54d", "sha256": "c8163320d3b38c58ea925123c5a91e66fa1b9bb8de341664cad52093c1d747b8" }, "downloads": -1, "filename": "pilwio-api-1.0.0.tar.gz", "has_sig": false, "md5_digest": "498003926547a6005bd48798e031f54d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6257, "upload_time": "2019-01-18T14:56:40", "url": "https://files.pythonhosted.org/packages/d5/71/159d1f37f78a4649423a3d4b1e1cffac155525aa73d1eea9809525608899/pilwio-api-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "1f4a0774814b87dee23f0f13c2798380", "sha256": "db8b81fb72a8796e6d0320c192fd2c256f3bc7c9a2135cf175871a9bd1bb6e39" }, "downloads": -1, "filename": "pilwio_api-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "1f4a0774814b87dee23f0f13c2798380", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10249, "upload_time": "2019-01-18T15:48:55", "url": "https://files.pythonhosted.org/packages/c3/62/61ff663dd07c199278dee1bd4ab02c97e9d5d931c4d481a692190b41d901/pilwio_api-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b88d8f8882aef0b93b27e38a6fa5164c", "sha256": "e9685df60bc9b3ba3beda862aacd436b2c4f95b322fe547cd8af963bc4f3e052" }, "downloads": -1, "filename": "pilwio-api-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b88d8f8882aef0b93b27e38a6fa5164c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6317, "upload_time": "2019-01-18T15:48:56", "url": "https://files.pythonhosted.org/packages/7d/c0/9ad11232285b51690f52125e79b45db86d6de58a57cff21a9040e9037f89/pilwio-api-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1f4a0774814b87dee23f0f13c2798380", "sha256": "db8b81fb72a8796e6d0320c192fd2c256f3bc7c9a2135cf175871a9bd1bb6e39" }, "downloads": -1, "filename": "pilwio_api-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "1f4a0774814b87dee23f0f13c2798380", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10249, "upload_time": "2019-01-18T15:48:55", "url": "https://files.pythonhosted.org/packages/c3/62/61ff663dd07c199278dee1bd4ab02c97e9d5d931c4d481a692190b41d901/pilwio_api-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b88d8f8882aef0b93b27e38a6fa5164c", "sha256": "e9685df60bc9b3ba3beda862aacd436b2c4f95b322fe547cd8af963bc4f3e052" }, "downloads": -1, "filename": "pilwio-api-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b88d8f8882aef0b93b27e38a6fa5164c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6317, "upload_time": "2019-01-18T15:48:56", "url": "https://files.pythonhosted.org/packages/7d/c0/9ad11232285b51690f52125e79b45db86d6de58a57cff21a9040e9037f89/pilwio-api-1.0.1.tar.gz" } ] }