proxmoxer


Nameproxmoxer JSON
Version 2.0.1 PyPI version JSON
download
home_pagehttps://proxmoxer.github.io/docs/
SummaryPython Wrapper for the Proxmox 2.x API (HTTP and SSH)
upload_time2022-12-20 03:52:17
maintainer
docs_urlNone
authorOleg Butovich
requires_python
licenseMIT
keywords proxmox api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ================================================
Proxmoxer: A Python wrapper for Proxmox REST API
================================================

master branch:  |master_build_status| |master_coverage_status| |pypi_version| |pypi_downloads|

develop branch: |develop_build_status| |develop_coverage_status|


Proxmoxer is a python wrapper around the `Proxmox REST API v2 <https://pve.proxmox.com/pve-docs/api-viewer/index.html>`_.
It currently supports the Proxmox services of Proxmox Virtual Environment (PVE), Proxmox Mail Gateway (PMG), and Proxmox Backup Server (PBS).

It was inspired by slumber, but it is dedicated only to Proxmox. It allows not only REST API use over HTTPS, but
the same api over ssh and pvesh utility.

Like `Proxmoxia <https://github.com/baseblack/Proxmoxia>`_, it dynamically creates attributes which responds to the
attributes you've attempted to reach.

Full Documentation is available at https://proxmoxer.github.io/docs/
--------------------------------------------------------------------

Migrating to version 2
......................

Full instructions for the minimal steps needed to update to version 2 can be found in `Migration Docs <https://proxmoxer.github.io/docs/latest/v1_migration/>`_.

Installation
............

::

    pip install proxmoxer

To use the 'https' backend, install requests

::

    pip install requests

To use the 'ssh_paramiko' backend, install paramiko

::

    pip install paramiko

To use the 'openssh' backend, install openssh_wrapper

::

    pip install openssh_wrapper


Short usage information
.......................

The first thing to do is import the proxmoxer library and create ProxmoxAPI instance.

::

    from proxmoxer import ProxmoxAPI

    proxmox = ProxmoxAPI(
        "proxmox_host", user="admin@pam", password="secret_word", verify_ssl=False
    )

This will connect by default to PVE through the 'https' backend.

**Note: ensure you have the required libraries (listed above) for the connection method you are using**

Queries are exposed via the access methods **get**, **post**, **put** and **delete**. For convenience two
synonyms are available: **create** for **post**, and **set** for **put**.

Using the paths from the `PVE API v2 <https://pve.proxmox.com/pve-docs/api-viewer/index.html>`_, you can create
API calls using the access methods above.

::

    >>> for node in proxmox.nodes.get():
    ...     for vm in proxmox.nodes(node["node"]).openvz.get():
    ...         print "{0}. {1} => {2}".format(vm["vmid"], vm["name"], vm["status"])
    ...

    141. puppet-2.london.example.com => running
    101. munki.london.example.com => running
    102. redmine.london.example.com => running
    140. dns-1.london.example.com => running
    126. ns-3.london.example.com => running
    113. rabbitmq.london.example.com => running


See Changelog in `CHANGELOG.md <https://github.com/proxmoxer/proxmoxer/blob/develop/CHANGELOG.md>`_
...................................................................................................

.. |master_build_status| image:: https://github.com/proxmoxer/proxmoxer/actions/workflows/ci.yaml/badge.svg?branch=master
    :target: https://github.com/proxmoxer/proxmoxer/actions

.. |master_coverage_status| image:: https://img.shields.io/coveralls/github/proxmoxer/proxmoxer/master
    :target: https://coveralls.io/github/proxmoxer/proxmoxer?branch=master

.. |develop_build_status| image:: https://github.com/proxmoxer/proxmoxer/actions/workflows/ci.yaml/badge.svg?branch=develop
    :target: https://github.com/proxmoxer/proxmoxer/actions

.. |develop_coverage_status| image:: https://img.shields.io/coveralls/github/proxmoxer/proxmoxer/develop
    :target: https://coveralls.io/github/proxmoxer/proxmoxer?branch=develop

.. |pypi_version| image:: https://img.shields.io/pypi/v/proxmoxer.svg
    :target: https://pypi.python.org/pypi/proxmoxer

.. |pypi_downloads| image:: https://img.shields.io/pypi/dm/proxmoxer.svg
    :target: https://pypi.python.org/pypi/proxmoxer

            

Raw data

            {
    "_id": null,
    "home_page": "https://proxmoxer.github.io/docs/",
    "name": "proxmoxer",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "proxmox,api",
    "author": "Oleg Butovich",
    "author_email": "obutovich@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/00/dd/629ec9dfdab26a75e3120403231bf3dc3ecda3ebe36db72c829ae30cbfca/proxmoxer-2.0.1.tar.gz",
    "platform": null,
    "description": "================================================\nProxmoxer: A Python wrapper for Proxmox REST API\n================================================\n\nmaster branch:  |master_build_status| |master_coverage_status| |pypi_version| |pypi_downloads|\n\ndevelop branch: |develop_build_status| |develop_coverage_status|\n\n\nProxmoxer is a python wrapper around the `Proxmox REST API v2 <https://pve.proxmox.com/pve-docs/api-viewer/index.html>`_.\nIt currently supports the Proxmox services of Proxmox Virtual Environment (PVE), Proxmox Mail Gateway (PMG), and Proxmox Backup Server (PBS).\n\nIt was inspired by slumber, but it is dedicated only to Proxmox. It allows not only REST API use over HTTPS, but\nthe same api over ssh and pvesh utility.\n\nLike `Proxmoxia <https://github.com/baseblack/Proxmoxia>`_, it dynamically creates attributes which responds to the\nattributes you've attempted to reach.\n\nFull Documentation is available at https://proxmoxer.github.io/docs/\n--------------------------------------------------------------------\n\nMigrating to version 2\n......................\n\nFull instructions for the minimal steps needed to update to version 2 can be found in `Migration Docs <https://proxmoxer.github.io/docs/latest/v1_migration/>`_.\n\nInstallation\n............\n\n::\n\n    pip install proxmoxer\n\nTo use the 'https' backend, install requests\n\n::\n\n    pip install requests\n\nTo use the 'ssh_paramiko' backend, install paramiko\n\n::\n\n    pip install paramiko\n\nTo use the 'openssh' backend, install openssh_wrapper\n\n::\n\n    pip install openssh_wrapper\n\n\nShort usage information\n.......................\n\nThe first thing to do is import the proxmoxer library and create ProxmoxAPI instance.\n\n::\n\n    from proxmoxer import ProxmoxAPI\n\n    proxmox = ProxmoxAPI(\n        \"proxmox_host\", user=\"admin@pam\", password=\"secret_word\", verify_ssl=False\n    )\n\nThis will connect by default to PVE through the 'https' backend.\n\n**Note: ensure you have the required libraries (listed above) for the connection method you are using**\n\nQueries are exposed via the access methods **get**, **post**, **put** and **delete**. For convenience two\nsynonyms are available: **create** for **post**, and **set** for **put**.\n\nUsing the paths from the `PVE API v2 <https://pve.proxmox.com/pve-docs/api-viewer/index.html>`_, you can create\nAPI calls using the access methods above.\n\n::\n\n    >>> for node in proxmox.nodes.get():\n    ...     for vm in proxmox.nodes(node[\"node\"]).openvz.get():\n    ...         print \"{0}. {1} => {2}\".format(vm[\"vmid\"], vm[\"name\"], vm[\"status\"])\n    ...\n\n    141. puppet-2.london.example.com => running\n    101. munki.london.example.com => running\n    102. redmine.london.example.com => running\n    140. dns-1.london.example.com => running\n    126. ns-3.london.example.com => running\n    113. rabbitmq.london.example.com => running\n\n\nSee Changelog in `CHANGELOG.md <https://github.com/proxmoxer/proxmoxer/blob/develop/CHANGELOG.md>`_\n...................................................................................................\n\n.. |master_build_status| image:: https://github.com/proxmoxer/proxmoxer/actions/workflows/ci.yaml/badge.svg?branch=master\n    :target: https://github.com/proxmoxer/proxmoxer/actions\n\n.. |master_coverage_status| image:: https://img.shields.io/coveralls/github/proxmoxer/proxmoxer/master\n    :target: https://coveralls.io/github/proxmoxer/proxmoxer?branch=master\n\n.. |develop_build_status| image:: https://github.com/proxmoxer/proxmoxer/actions/workflows/ci.yaml/badge.svg?branch=develop\n    :target: https://github.com/proxmoxer/proxmoxer/actions\n\n.. |develop_coverage_status| image:: https://img.shields.io/coveralls/github/proxmoxer/proxmoxer/develop\n    :target: https://coveralls.io/github/proxmoxer/proxmoxer?branch=develop\n\n.. |pypi_version| image:: https://img.shields.io/pypi/v/proxmoxer.svg\n    :target: https://pypi.python.org/pypi/proxmoxer\n\n.. |pypi_downloads| image:: https://img.shields.io/pypi/dm/proxmoxer.svg\n    :target: https://pypi.python.org/pypi/proxmoxer\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python Wrapper for the Proxmox 2.x API (HTTP and SSH)",
    "version": "2.0.1",
    "split_keywords": [
        "proxmox",
        "api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "23edfe36aba5a5127463ceee1e9d9633",
                "sha256": "badb3095507e486b76dfda75177545dd85da608a3aef8590d362901253f10576"
            },
            "downloads": -1,
            "filename": "proxmoxer-2.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "23edfe36aba5a5127463ceee1e9d9633",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 16001,
            "upload_time": "2022-12-20T03:52:15",
            "upload_time_iso_8601": "2022-12-20T03:52:15.966989Z",
            "url": "https://files.pythonhosted.org/packages/74/4c/b1e2413470a23de75f01259256279f859a56da435b7d5cf452707806f3f0/proxmoxer-2.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "f092a44e15540dfacb0f00025abfe002",
                "sha256": "088923f1a81ee27631e88314c609bfe22b33d8a41271b5f02e86f996f837fe31"
            },
            "downloads": -1,
            "filename": "proxmoxer-2.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "f092a44e15540dfacb0f00025abfe002",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 17551,
            "upload_time": "2022-12-20T03:52:17",
            "upload_time_iso_8601": "2022-12-20T03:52:17.576405Z",
            "url": "https://files.pythonhosted.org/packages/00/dd/629ec9dfdab26a75e3120403231bf3dc3ecda3ebe36db72c829ae30cbfca/proxmoxer-2.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-20 03:52:17",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "proxmoxer"
}
        
Elapsed time: 0.02513s