{"id":18792633,"url":"https://github.com/peakwinter/python-rage4dns","last_synced_at":"2025-12-28T12:30:13.338Z","repository":{"id":32456443,"uuid":"36035855","full_name":"peakwinter/python-rage4dns","owner":"peakwinter","description":"Python bindings for RAGE4 DNS API","archived":false,"fork":false,"pushed_at":"2016-04-27T04:22:23.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-29T15:28:13.738Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peakwinter.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-05-21T20:29:37.000Z","updated_at":"2016-04-27T04:12:08.000Z","dependencies_parsed_at":"2022-08-24T12:30:26.693Z","dependency_job_id":null,"html_url":"https://github.com/peakwinter/python-rage4dns","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/peakwinter%2Fpython-rage4dns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peakwinter%2Fpython-rage4dns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peakwinter%2Fpython-rage4dns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peakwinter%2Fpython-rage4dns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peakwinter","download_url":"https://codeload.github.com/peakwinter/python-rage4dns/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239718373,"owners_count":19685725,"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-11-07T21:20:57.553Z","updated_at":"2025-12-28T12:30:13.274Z","avatar_url":"https://github.com/peakwinter.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-rage4dns\nPython bindings for RAGE4 DNS API\n\n## How to Use\nFirst, set your account email and API key as follows:\n\n```\n\u003e\u003e\u003e import rage4\n\u003e\u003e\u003e rage4.USERNAME = \"myname@mydomain.xyz\"\n\u003e\u003e\u003e rage4.ACCT_KEY = \"theAPIstringwouldgohere\"\n```\n\n#### Get domain(s)\n - Get all domains: `rage4.get_domains()`\n - Get domain by ID (ex. ID 1): `rage4.get_domain(1)`\n - Get domain by name: `rage4.get_domain(name=\"mydomain.xyz\")`\n\n#### Add domain\nOptional params for `add()` are NS1 and NS2. If not specified then the RAGE4 names will be used.\n```\n\u003e\u003e\u003e domain = rage4.Domain(\"mydomain.xyz\", \"myname@mydomain.xyz\")\n\u003e\u003e\u003e domain.add()\n```\n\n#### Delete domain\n```\n\u003e\u003e\u003e domain = rage4.get_domain(name=\"mydomain.xyz\")\n\u003e\u003e\u003e domain.delete()\n```\n\n#### Get DNS records for a domain\n```\n\u003e\u003e\u003e domain = rage4.get_domain(name=\"mydomain.xyz\")\n\u003e\u003e\u003e records = domain.get_records()\n```\n\n#### Add a DNS record to a domain\nParams for the object: Name, content, record type, TTL and priority.\nOptional params: `failover_enabled` and `failover_content`\nOptional params for `add()`: `geo` and `active`. `geo` can either be a geocode (obtained from `rage4.get_geo_regions()`) or a tuple of latitude and longitude. Active defaults to `True`.\n```\n\u003e\u003e\u003e domain = rage4.get_domain(name=\"mydomain.xyz\")\n\u003e\u003e\u003e record = rage4.Record(\"www.mydomain.xyz\", \"127.0.0.1\", rage4.RECORD_TYPES[\"A\"],\n...     3600, 1)\n\u003e\u003e\u003e domain.add_record(record)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeakwinter%2Fpython-rage4dns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeakwinter%2Fpython-rage4dns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeakwinter%2Fpython-rage4dns/lists"}