Skip to main content

Python wrapper around the subreg.cz SOAP API

Project description

Python wrapper around the subreg.cz SOAP API

Install

pip install python-subreg

Using

First import module and instance class

>>> from subreg import Api
>>> subreg = Api('username', 'password')
  • Get informations about a single domain from your account

    >>> domain_info = subreg.info_domain('example.com')
    >>> print domain_info
    
  • Get DNS Zone for domain

    >>> records = subreg.get_dns_zone('example.com')
    
  • Add DNS record to domain DNS zone

    >>> record = dict(name='', type='TXT', content='content')
    >>> record_id = subreg.add_dns_record('example.com', record)
    >>> print record_id
    
  • Set Google MX records

    >>> subreg.set_google_mx_records('example.com')
    

Subreg API documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-subreg-0.0.6.tar.gz (6.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page