{"id":15612296,"url":"https://github.com/kylefox/python-slicehost-api-wrapper","last_synced_at":"2025-04-04T11:43:16.334Z","repository":{"id":555085,"uuid":"185701","full_name":"kylefox/Python-Slicehost-API-wrapper","owner":"kylefox","description":"A super-simple python wrapper for the Slicehost API","archived":false,"fork":false,"pushed_at":"2009-04-25T23:21:29.000Z","size":76,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T21:31:59.514Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kylefox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-04-25T23:20:34.000Z","updated_at":"2019-08-13T14:21:25.000Z","dependencies_parsed_at":"2022-07-07T14:17:53.242Z","dependency_job_id":null,"html_url":"https://github.com/kylefox/Python-Slicehost-API-wrapper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylefox%2FPython-Slicehost-API-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylefox%2FPython-Slicehost-API-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylefox%2FPython-Slicehost-API-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylefox%2FPython-Slicehost-API-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kylefox","download_url":"https://codeload.github.com/kylefox/Python-Slicehost-API-wrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247174377,"owners_count":20896074,"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":[],"created_at":"2024-10-03T06:41:34.823Z","updated_at":"2025-04-04T11:43:16.308Z","avatar_url":"https://github.com/kylefox.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"A small utility for working with the [Slicehost API](http://articles.slicehost.com/2008/5/13/slicemanager-api-documentation).\n\nThe `slicehost` module features common actions like creating default A and NS records, as well as MX records for Google Apps.  `slicehost_client.py` provides a command-line interface for convenience.\n\nRequires the spectacular [pyactiveresource](http://code.google.com/p/pyactiveresource/), which does the majority of the work here :)\n\n**Questions / Patches / Bugs?** [Send me a message](http://github.com/inbox/new/kylefox) via github.\n\nModule Usage\n------------\n\nCreate an instance of the wrapper by passing your API Key:\n\n    from slicehost import *\n    host = Slicehost(\"MY_API_KEY\")\n    \nOnce you've done that you can invoke standard [ActiveResource methods](http://api.rubyonrails.org/files/vendor/rails/activeresource/README.html) on the `Slice`, `Zone` and `Record` resources:\n    \n    my_slices = host.Slice.find()\n    zone = host.Zone.find_first(origin=\"example.com\")\n    \nThe main goal of `python-slicehost` is to add Slicehost-specific helpers to the functionality that pyactiveresource already includes, like adding **default A-Records**\n\n    # Creates A-Records pointing this zone \u0026 subdomains to a slice.\n    a_record = zone.create_A_record(my_slices[0])\n  \ncreating *NS-records pointing to slicehost*\n\n    zone.setup_slicehost_ns()\n    \nand setting up **MX-Records for [Google Apps](http://www.google.com/a/)**\n\n    zone.setup_google_apps()\n    \nCheck the source -- it's pretty simple.  `slicehost_client.py` also includes example usage.\n\nCommand-line Client\n------------------\n\nThe command-line client provides a quick and interactive interface for creating A-Records, NS-Records and Google MX-Records.  Pass in your API key (as plain-text or a filename) and follow the prompts :)\n\nPassing your API key directly:\n\n    [prompt]: python slicehost_client.py myawesomeapikey\n    \nPassing the filename that contains your API key:\n\n    [prompt]: python slicehost_client.py apikey.txt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkylefox%2Fpython-slicehost-api-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkylefox%2Fpython-slicehost-api-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkylefox%2Fpython-slicehost-api-wrapper/lists"}