<commit_before>python-pointdns
===============

pointhq.com API client.

This is pointdns module based on a fork of <NAME> pointhq module which is based on Mike Yumatov's pointhq module
with the following additional modifications:

- Added support for Python3.x
- Retrieve zones by groups
- Record type validation


Installation
------------

Install ``pointdns`` with pip::

    $ pip install pointdns

It will also install ``requests`` library.

Usage example
-------------

1. Create new ``pointdns.Point`` object::

    import pointdns
    point = Point(username='<EMAIL>', 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')
    zones_group_clients = point.zones.retrieve(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='172.16.58.3', record_type='A')

    zone_record = point.zones(1).records(1).retrieve
    point.zones(1).records(1).update(data='192.168.3.11')
    point.zones(1).records(1).delete()

Contributing
------------

Feel free to fork, send pull requests or report bugs and issues on github.<commit_msg>formatting README.md<commit_after>python-pointdns
===========

pointhq.com API client.

This module provides easy access to point zone & record management. For information about the services offered on Point see [the website](http://pointhq.com)
This module is based on a fork of [<NAME>'s](https://github.com/vortura/pointhq) pointhq module which is based on [<NAME>'s](https://github.com/yumike/pointhq) pointhq module
with the following additional modifications:

- Added support for Python3.x
- Retrieve zones by groups
- Record type validation

## Authentication

To access your Point account, you'll need to define your username & apitoken. The username is your email address and the apitoken is the API token which, can be found in My Account tab.

## Installation

Install ``pointdns`` with pip:

    $ pip install pointdns

It will also install `requests` library.

## Usage example

1. Create new `pointdns.Point` object:
```python
import pointdns
point = Point(username='<EMAIL>', apitoken='secret-key')
```

2. Play with zones::
```python
zones = point.zones.retrieve()
new_zone = point.zones.create(name='example.com')
```
```python
zone = point.zones(1).retrieve()
point.zones(1).update(group='Clients')
zones_group_clients = point.zones.retrieve(group='Clients')
point.zones(1).delete()
```

3. Play with zone records::
```python
zone_records = point.zones(1).records.retrieve()
new_record = point.zones(1).records.create(name='example.com.', data='172.16.58.3', record_type='A')
```
```python
zone_record = point.zones(1).records(1).retrieve
point.zones(1).records(1).update(data='192.168.3.11')
point.zones(1).records(1).delete()
```
## Contributing

Feel free to fork, send pull requests or report bugs and issues on github.
{'fraction_non_alphanumeric': 0.14962674456345343, 'fraction_numerical': 0.020772476468679, 'mean_word_length': 4.4548672566371685, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1708171', 'n_tokens_mistral': 1019, 'n_tokens_neox': 975, 'n_words': 278}