semvec/pypi-packages huggingface dataset:
easyzone 1.2.2
Easy Zone - DNS Zone abstraction module
License: MIT

easyzone
========

Overview
--------

Easyzone is a package to manage the common record types of a
zone file, including SOA records.  This module sits on top of
the dnspython package and provides a higher level abstraction
for common zone file manipulation use cases.

http://www.psychofx.com/easyzone/
http://pypi.python.org/pypi/easyzone
https://bitbucket.org/chrismiles/easyzone/


Main features:

* A high-level abstraction on top of dnspython.
* Load a zone file into objects.
* Modify/add/delete zone/record objects.
* Save back to zone file.
* Auto-update serial (if necessary).


Requirements
------------

  * dnspython - http://www.dnspython.org/


Build/Test/Install
------------------

Build::

  $ python setup.py build

Test::

  $ python setup.py test

Install::

  $ python setup.py install


OR with setuptools::

  $ easy_install easyzone


Examples
--------

easyzone::

  >>> from easyzone import easyzone
  >>> z = easyzone.zone_from_file('example.com', '/var/namedb/example.com')
  >>> z.domain
  'example.com.'
  >>> z.root.soa.serial
  2007012902L
  >>> z.root.records('NS').items
  ['ns1.example.com.', 'ns2.example.com.']
  >>> z.root.records('MX').items
  [(10, 'mail.example.com.'), (20, 'mail2.example.com.')]
  >>> z.names['foo.example.com.'].records('A').items
  ['10.0.0.1']

  >>> ns = z.root.records('NS')
  >>> ns.add('ns3.example.com.')
  >>> ns.items
  ['ns1.example.com.', 'ns2.example.com.', 'ns3.example.com.']
  >>> ns.delete('ns2.example.com')
  >>> ns.items
  ['ns1.example.com.', 'ns3.example.com.']

  >>> z.save(autoserial=True)

ZoneCheck::

  >>> from easyzone.zone_check import ZoneCheck
  >>> c = ZoneCheck()
  >>> c.isValid('example.com', '/var/named/zones/example.com')
  True
  >>> c.isValid('foo.com', '/var/named/zones/example.com')
  False
  >>> c.error
  'Bad syntax'
  >>> 
  >>> c = ZoneCheck(checkzone='/usr/sbin/named-checkzone')
  >>> c.isValid('example.com', '/var/named/zones/example.com')
  True
  >>>

ZoneReload::

  >>> from easyzone.zone_reload import ZoneReload
  >>> r = ZoneReload()
  >>> r.reload('example.com')
  zone reload up-to-date
  >>> r.reload('foo.com')
  rndc: 'reload' failed: not found
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "easyzone/zone_reload.py", line 51, in reload
      raise ZoneReloadError("rndc failed with return code %d" % r)
  easyzone.zone_reload.ZoneReloadError: rndc failed with return code 1
  >>> 
  >>> r = ZoneReload(rndc='/usr/sbin/rndc')
  >>> r.reload('example.com')
  zone reload up-to-date
  >>>
pop-utils 0.1
Collection of utilities to optimize the deployment and management of a POP-C++ or POP-Java based setup with a special focus on cloud deployments and Amazon Web Services.
License: MIT
Keywords: pop cloud utils aws eucalyptus

pop-utils
=========

The pop-utils package provides a collection of utilities to optimize the
deployment and management of a POP-C++ or POP-Java based setup with a special
focus on cloud deployments and Amazon Web Services.


Utilities
---------

The different utilities that come with the ``pop-utils`` package are:

 * ``pop--cloud-master`` -- An AWS/Eucalyptus based utility to create base
   machine images for custom POP-C++/POP-Java deployments.

 * ``pop-cloud-setup`` -- An AWS/Eucalyptus based utility to setup a complete
   POP environment on a cloud service of choice.

 * ``pop-cloud-destroy`` -- A companion utility of the ``pop-cloud-setup``
   utility to deploy an application to a particular setup (created either
   manually or using the ``pop-cloud-setup`` utility).

 * *POP deployment tools* a collection of ``fab`` commands to remotely operate
   on an already setup POP deployment.


License
-------

The whole package is released under the MIT license. Note though that the
POP-C++/POP-Java sources are only available under the GPL license.


Links
-----

 * https://github.com/GaretJax/pop-utils -- Website of the pop-utils project

 * http://pypi.python.org/pypi/pop-utils/ -- PyPI page of the package

 * http://gridgroup.hefr.ch/popc -- Website of the POP-C++ project

 * http://aws.amazon.com/ -- Amazon Web Services homepage

 * http://www.eucalyptus.com/ -- Eucalyptus home page