jforman / pybindxml Goto Github PK
View Code? Open in Web Editor NEWLibrary to handle parsing BIND statistics XML into Python objects.
License: MIT License
Library to handle parsing BIND statistics XML into Python objects.
License: MIT License
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
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.
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.
>> 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)
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.
Hello!
lxml 3.7 support required
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.