
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Fast XML to Python (and vise versa) converter and filter. Written in C++ using Expat SAX parser
nkit4py - is a nkit C++ library port to Python (see https://github.com/eye3/nkit.git).
With nkit4py module you can convert XML string to Python data and vise versa.
Simply convert XML to Python data with the same structure. Usual Python Dict objects as well as collections.OrderedDict objects can be created.
Convert XML to Python data with the structure, which is different from the structure of XML source (using mapping).
Create multiple Python structures from one XML source.
Explicitly identify those elements and attributes in XML source that you want to use for building Python data structures. Thus, it's possible to filter out unnecessary XML-data.
Explicitly define Python type of scalar (primitive) data, fetched from XML source. Integers, numbers, strings, datetimes and booleans are supported.
Control progress of chunked download and parsing of big XML string
With extra options you can tune some aspects of conversion:
Conversion is carried out using SAX parser Expat, so it's fast and uses less memory when parsing huge XML files.
Module supports not only native Expat XML encodings, but also many others (see /deps/nkit/src/encoding/langs.inc)
pip install nkit4py
Library compiles on MSVS Express version >= 2012.
For MSVS 2012:
SET VS90COMNTOOLS=%VS110COMNTOOLS%
pip install nkit4py
For MSVS 2013:
SET VS90COMNTOOLS=%VS120COMNTOOLS%
pip install nkit4py
See https://github.com/eye3/nkit4py
==2.6 ==2.7
=3.3
Boris T. Darchiev (boris.darchiev@gmail.com)
On github: https://github.com/eye3
Any feedback or pull request are welcome!
FAQs
Fast XML to Python (and vise versa) converter and filter. Written in C++ using Expat SAX parser
We found that nkit4py demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.