{"id":18755330,"url":"https://github.com/piwheels/hostedpi","last_synced_at":"2025-04-13T01:35:38.216Z","repository":{"id":53007144,"uuid":"291557559","full_name":"piwheels/hostedpi","owner":"piwheels","description":"Python library and command line interface to the Mythic Beasts Hosted Pi API","archived":false,"fork":false,"pushed_at":"2023-04-30T11:16:59.000Z","size":217,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-08-10T10:34:03.325Z","etag":null,"topics":["hosting","mythic-beasts","python","raspberrypi"],"latest_commit_sha":null,"homepage":"https://hostedpi.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/piwheels.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-30T21:50:21.000Z","updated_at":"2023-04-30T11:17:05.000Z","dependencies_parsed_at":"2022-09-08T03:21:51.856Z","dependency_job_id":null,"html_url":"https://github.com/piwheels/hostedpi","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piwheels%2Fhostedpi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piwheels%2Fhostedpi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piwheels%2Fhostedpi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piwheels%2Fhostedpi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piwheels","download_url":"https://codeload.github.com/piwheels/hostedpi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223558801,"owners_count":17165190,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hosting","mythic-beasts","python","raspberrypi"],"created_at":"2024-11-07T17:32:29.306Z","updated_at":"2024-11-07T17:32:29.395Z","avatar_url":"https://github.com/piwheels.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"========\nhostedpi\n========\n\n.. image:: https://badge.fury.io/py/hostedpi.svg\n    :target: https://badge.fury.io/py/hostedpi\n    :alt: Latest Version\n\nPython interface to the `Mythic Beasts Hosted Pi`_ API, developed by the\n`piwheels`_ team (`Ben Nuttall`_ and `Dave Jones`_).\n\n.. _Mythic Beasts Hosted Pi: https://www.mythic-beasts.com/order/rpi\n.. _piwheels: https://www.piwheels.org/\n.. _Ben Nuttall: https://twitter.com/ben_nuttall\n.. _Dave Jones: https://twitter.com/waveform80\n\nThis module provides a Pythonic interface to the API, as well as a command line\ninterface.\n\nThe authors of this library are not affiliated with Mythic Beasts, but we use\ntheir Pi cloud to power the piwheels project.\n\nDocumentation of the API itself can be found at\nhttps://www.mythic-beasts.com/support/api/raspberry-pi\n\nUsage\n=====\n\nView the information about a Pi from the command line:\n\n.. code-block:: console\n\n    $ hostedpi show mypi\n    Name: mypi\n    Provision status: live\n    Model: Raspberry Pi 3B\n    Disk size: 10GB\n    Power: on\n    IPv6 address: 2a00:1098:8:5b::1\n    IPv6 network: 2a00:1098:8:5b00::/56\n    Initialised keys: yes\n    SSH keys: 4\n    IPv4 SSH port: 5091\n    Location: MER\n    URLs:\n      http://www.mypi.hostedpi.com\n      https://www.mypi.hostedpi.com\n    SSH commands:\n      ssh -p 5091 root@ssh.mypi.hostedpi.com  #IPv4\n      ssh root@[2a00:1098:8:5b::1]  #IPv6\n\nProvision a new Pi and view its SSH command (using Python):\n\n.. code-block:: pycon\n\n    \u003e\u003e\u003e from hostedpi import PiCloud\n    \u003e\u003e\u003e api_id = '8t29hvcux5g9vud8'\n    \u003e\u003e\u003e secret = 'QNwsvxZY8SxT3OiLt:Vmz-D1mWQuoZ'\n    \u003e\u003e\u003e cloud = PiCloud(api_id, secret, ssh_key_path='/home/ben/.ssh/id_rsa.pub')\n    \u003e\u003e\u003e pi = cloud.create_pi('mypi')\n    \u003e\u003e\u003e print(pi.ssh_command)\n    ssh -p 5123 root@ssh.mypi.hostedpi.com\n\nSee the `getting started`_ page for information on how to authenticate, and\nsee the `command line interface`_ page for information on using the command line\ninterface.\n\n.. _getting started: https://hostedpi.readthedocs.io/en/latest/getting_started.html\n.. _command line interface: https://hostedpi.readthedocs.io/en/latest/cli.html\n\nDocumentation\n=============\n\nDocumentation for this module can be found at https://hostedpi.readthedocs.io/\n\nDocumentation of the API itself can be found at\nhttps://www.mythic-beasts.com/support/api/raspberry-pi\n\nContributing\n============\n\n* Source code can be found on GitHub at https://github.com/piwheels/hostedpi\n* Code and documentation contributions welcome\n* The issue tracker can be found at https://github.com/piwheels/hostedpi/issues\n* For issues with the API itself, please contact Mythic Beasts support\n  https://www.mythic-beasts.com/support\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiwheels%2Fhostedpi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiwheels%2Fhostedpi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiwheels%2Fhostedpi/lists"}