{"id":16570987,"url":"https://github.com/opalmer/vpsutil","last_synced_at":"2025-10-11T12:04:34.998Z","repository":{"id":28751802,"uuid":"32273851","full_name":"opalmer/vpsutil","owner":"opalmer","description":"Personal wrapper around various vps service provider APIs.","archived":false,"fork":false,"pushed_at":"2015-03-29T20:24:30.000Z","size":212,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T12:04:22.094Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opalmer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-15T17:27:34.000Z","updated_at":"2015-03-29T20:24:31.000Z","dependencies_parsed_at":"2022-08-02T13:06:42.855Z","dependency_job_id":null,"html_url":"https://github.com/opalmer/vpsutil","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/opalmer/vpsutil","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opalmer%2Fvpsutil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opalmer%2Fvpsutil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opalmer%2Fvpsutil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opalmer%2Fvpsutil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opalmer","download_url":"https://codeload.github.com/opalmer/vpsutil/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opalmer%2Fvpsutil/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007135,"owners_count":26084247,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-11T21:20:47.120Z","updated_at":"2025-10-11T12:04:34.978Z","avatar_url":"https://github.com/opalmer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vpsutil\nA personal wrapper around some VPS APIs.  This mainly exists for \nexperimentation and basic scripts.  There are few dependencies and only\none configuration file.\n\n## Python Version\nThe code in this repository was written against Python 3.4.  It may\nalso work with Python 2.6+\n\n# Setup\n## Python\n```console\n\u003e virtualenv -p python3.4 virtualenv  # -p is not required\n\u003e . virtualenv/bin/activate\n\u003e pip install -e .\n```\n\n## Configuration\nThe configuration for this library lives in `~/.vpsutil/config`.  It is highly\nrecommended that you secure the permissions of this directory so only you will \nbe able to read it.\n\n```dosini\n[digital_ocean]\ntoken = your_api_token_string\n```\n\n## Examples\n### DNS\nCreate, update or delete DNS records.  This assumes the domain you are\nattempting to manipulate already exits under your account.\n\n```python\n\u003e\u003e\u003e from vpsutil.dns import LinodeDNSManager\n\u003e\u003e\u003e dns = LinodeDNSManager()\n\u003e\u003e\u003e dns.create_record(\"example.com\", \"A\", \"www\", \"127.0.0.1\")\n\u003e\u003e\u003e dns.update_record(\"example.com\", \"A\", \"www\", \"\")\n\u003e\u003e\u003e dns.delete_record(\"example.com\", \"A\", \"www\")\n```\n\n### Command line Took Hook\nThe command tool contains a hook which allows for another module to reconfigure\nor append commands to the parser before it runs.  To take advantage of this \ncreate a module named ``vpsutil_private`` with an importable callable \nnamed ``parser_hook``.  ``parser_hook`` should accept two input arguments\nfor the parser and subparser objects.  The ``parser_hook`` function could look\nlike:\n\n```python\ndef deploy_vpn(args):\n    pass\n    \n\ndef parser_hook(parser, subparsers):\n    parser.add_argument(\"foobar\")\n    \n    deploy_vpn = subparser.add_parser(\"deploy_vpn\")\n    deploy_vpn.set_defaults(func=deploy_vpn_impl)\n    \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopalmer%2Fvpsutil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopalmer%2Fvpsutil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopalmer%2Fvpsutil/lists"}