Skip to main content

pointhq.com API client

Project description

pointhq.com API client.

Installation

Install pointhq with pip:

$ pip install pointhq

It will also install httplib2 library.

If you use Python 2.5, simplejson is required:

$ pip install simplejson

Usage example

  1. Create new pointhq.Point object:

    import pointhq
    point = Point(username='john@example.com', apitoken='secret-key')
  2. Play with zones:

    zones = point.zones.retrieve()
    new_zone = point.zones.create(name='example.com')
    
    zone = point.zones(1).retrieve()
    point.zones(1).update(group='Clients')
    point.zones(1).delete()
  3. Play with zone records:

    zone_records = point.zones(1).records.retrieve()
    new_record = point.zones(1).records.create(name='example.com.', data='123.45.67.89', record_type='A')
    
    zone_record = point.zones(1).records(1).retrieve
    point.zones(1).records(1).update(data='234.56.78.90')
    point.zones(1).records(1).delete()

Contributing

Feel free to fork, send pull requests or report bugs and issues on github.

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

pointhq-0.1.1.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file pointhq-0.1.1.tar.gz.

File metadata

  • Download URL: pointhq-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pointhq-0.1.1.tar.gz
Algorithm Hash digest
SHA256 78ffbb37b08baa421c79748a7852a8cb3e2c3b32980bd464011b70167c6ff724
MD5 95c780f38dd7a37ecf452d1f98884841
BLAKE2b-256 d6aa88a2ba54dc05d83bbe9e19eea403ec03ef424003d367d2608a7ede7c96ad

See more details on using hashes here.

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