Giter Club home page Giter Club logo

pybindxml's People

Contributors

dunedan avatar jforman avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

pybindxml's Issues

BeautifulSoup4 missing from dependency list

pip install pybindxml

>>> from pybindxml import reader
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "l/env/local/lib/python2.7/site-packages/pybindxml/reader.py", line 3, in <module>
    from bs4 import BeautifulSoup

Support for statistics XML version 2.2

Hello,

Is it possible to add support for XML version 2.2?

Example stats file (2 views configured in named.conf):
https://gist.github.com/alpha01/c980a8ee02b2db60b66604103b40b5b1

CentOS 6.8
Python 2.6.6
bind-9.8.2-0.47.rc1.el6_8.2.x86_64
bind-utils-9.8.2-0.47.rc1.el6_8.2.x86_64
bind-libs-9.8.2-0.47.rc1.el6_8.2.x86_64

I'm currently getting the following error when calling BindXmlReader.get_stats()

File "/usr/lib/python2.6/site-packages/pybindxml/reader.py", line 68, in get_stats raise XmlError('Support must be added before being able to support newly-encountered XML version %s.' % self.xml_version) pybindxml.reader.XmlError: 'Support must be added before being able to support newly-encountered XML version 2.2.

Please release new version of pybindmxl

Since the last release of pybindxml Python 3 support was added. As this is a major feature, please release a new version of pybindxml and put it on PyPI so everybody can benefit from it.

get_stats on a host/port that isn't listening results in confusing TypeError

>> from pybindxml import reader
>>> foo = reader.BindXmlReader(host='localhost', port=8053)
>>> foo.get_stats()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "env/local/lib/python2.7/site-packages/pybindxml/reader.py", line 45, in get_stats
    self.gather_xml()
  File "env/local/lib/python2.7/site-packages/pybindxml/reader.py", line 41, in gather_xml
    u_error)
TypeError: __init__() takes exactly 2 arguments (4 given)

Bind using views

Hi,

if you will use views in bind configuration, the zone name will be

example.com/IN/view_name

so the code on line 134 in reader.py fails. I fixed it by setting maxsplit to 1.

lxml 3.7

Hello!
lxml 3.7 support required

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.