{ "info": { "author": "Anton Tuchak", "author_email": "anton.tuchak@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Internet :: WWW/HTTP" ], "description": "python-flops\n============\n\nPython-flops is python lib to access\n`flops.ru `__ API\n\n###Requirements \\* Python (2.7, 3.4+) \\* requests\n\nUsage\n~~~~~\n\nInstallation.\n^^^^^^^^^^^^^\n\n.. code:: bash\n\n pip install flops\n\nCredentials.\n^^^^^^^^^^^^\n\n.. code:: python\n\n from flops import FlopsClient\n\n flops_client = FlopsClient(client_id='client_id', api_key='api_key')\n tariffs = flops_client.get_tariffs()\n\nFlopsClient methods.\n^^^^^^^^^^^^^^^^^^^^\n\n.. code:: text\n\n add_pubkey(self, name, public_key, tenant_id)\n\n\n add_vm_ip(self, vm_id, tenant_id)\n\n\n change_vm_backup_policy(self, vm_id, quantity, frequency, tenant_id)\n\n\n change_vm_cpu(self, vm_id, cpu, tenant_id)\n\n\n change_vm_disk(self, vm_id, disk, allow_restart, tenant_id, allow_memory_change)\n\n\n change_vm_memory(self, vm_id, memory, allow_restart, tenant_id)\n\n\n change_vm_password(self, vm_id, password, send_password, tenant_id)\n\n\n change_vm_pubkeys(self, vm_id, key_ids, tenant_id)\n\n\n clone_vm(self, vm_id, name, tenant_id, snapshot_id)\n\n\n create_vm_snapshot(self, vm_id, name, description, tenant_id)\n\n\n delete_pubkey(self, key_id, tenant_id)\n\n\n delete_vm(self, vm_id, tenant_id)\n\n\n delete_vm_ip(self, vm_id, ip, tenant_id)\n\n\n delete_vm_snapshot(self, vm_id, snapshot_id, delete_children, tenant_id)\n\n\n edit_pubkey(self, key_id, tenant_id, name, public_key)\n\n\n get_distributions(self,)\n\n\n get_distributions_by_name(self, name, match_type)\n\n\n get_operation_status(self, operation_id)\n\n\n get_pubkey(self, key_id)\n\n\n get_pubkeys(self,)\n\n\n get_pubkeys_by_name(self, name, match_type)\n\n\n get_software(self,)\n\n\n get_tariffs(self, for_windows, order_by, on_demand)\n\n\n get_tenants(self,)\n\n\n get_vm(self, vm_id)\n\n\n get_vm_backups(self, vm_id)\n\n\n get_vm_snapshots(self, vm_id)\n\n\n get_vms(self,)\n\n\n get_vms_by_name(self, name, match_type)\n\n\n install_vm(self, name, distribution_id, tariff_id, tenant_id, memory, disk, cpu, ip_count, password, send_password, open_support_access, public_key_ids, software_ids)\n\n\n move_vm_ip(self, vm_id, to_vm_id, ip, tenant_id)\n\n\n poweroff_vm(self, vm_id, tenant_id)\n\n\n reboot_vm(self, vm_id, tenant_id)\n\n\n reinstall_vm(self, vm_id, name, distribution_id, tariff_id, tenant_id, memory, disk, cpu, password, send_password, open_support_access, public_key_ids, software_ids)\n\n\n rename_vm(self, vm_id, new_name, tenant_id)\n\n\n reset_vm(self, vm_id, tenant_id)\n\n\n rollback_vm_backup(self, vm_id, backup, create_backup, tenant_id)\n\n\n rollback_vm_snapshot(self, vm_id, snapshot_id, tenant_id)\n\n\n shutdown_vm(self, vm_id, tenant_id)\n\n\n start_vm(self, vm_id, tenant_id)\n\n\n wait_for_operation(self, operation_id, timeout, polling_time)\n\nTesting\n~~~~~~~\n\nInstall development requirements.\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n.. code:: bash\n\n pip install pytest pytest-env tcpping2\n\nRun the tests.\n^^^^^^^^^^^^^^\n\nWarning: Your account could be charged for VMs creation\n'''''''''''''''''''''''''''''''''''''''''''''''''''''''\n\n.. code:: bash\n\n export CLIENT_ID=\n export API_KEY=\n pytest flops/tests/*\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/atuchak/python-flops", "keywords": "flops.ru API client flops", "license": "", "maintainer": "", "maintainer_email": "", "name": "flops", "package_url": "https://pypi.org/project/flops/", "platform": "", "project_url": "https://pypi.org/project/flops/", "project_urls": { "Homepage": "https://github.com/atuchak/python-flops" }, "release_url": "https://pypi.org/project/flops/0.1.4/", "requires_dist": null, "requires_python": "", "summary": "Python library to easy access flops.ru API.", "version": "0.1.4" }, "last_serial": 3949734, "releases": { "0.1.4": [ { "comment_text": "", "digests": { "md5": "f67b73075da12bc4140377e9e07c85d9", "sha256": "3f9f0054b94a64813037f4cd350dc69b01e6684d3cfe91b5951e29e0471b02c5" }, "downloads": -1, "filename": "flops-0.1.4.tar.gz", "has_sig": false, "md5_digest": "f67b73075da12bc4140377e9e07c85d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6282, "upload_time": "2018-06-11T10:27:16", "url": "https://files.pythonhosted.org/packages/5f/4e/da5a12ad48f1b4ad03d687788c2f171484abfd0c00478b1878ccde99c7c1/flops-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f67b73075da12bc4140377e9e07c85d9", "sha256": "3f9f0054b94a64813037f4cd350dc69b01e6684d3cfe91b5951e29e0471b02c5" }, "downloads": -1, "filename": "flops-0.1.4.tar.gz", "has_sig": false, "md5_digest": "f67b73075da12bc4140377e9e07c85d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6282, "upload_time": "2018-06-11T10:27:16", "url": "https://files.pythonhosted.org/packages/5f/4e/da5a12ad48f1b4ad03d687788c2f171484abfd0c00478b1878ccde99c7c1/flops-0.1.4.tar.gz" } ] }