Skip to main content

Project Name

Comprehensive XML generator for Python

Table of Contents

Installation

pip install xml-generator

Usage

Import

from xml_generator.types import XmlNode

Comprehensive parsing

Parse Comprehensive format into an XmlNode object.

node = XmlNode.parse(
    {
        "name": "node",
        "attributes": {"attr1": "value1", "attr2": "value2"},
        "body": [
            {"name": "child1", "attributes": {"attr1": "value1"}},
            {"name": "child2", "attributes": {"attr2": "value2"}},
        ],
    }
)

Searching a specific node

Return the first XmlNode with the given query. Query can be a name with attributes.

parent = node.find("node")
child1 = node.find("child1@attr1")
child2 = node.find("child2")

Generate a xml file

Using the to_xml() function that return the XmlNode as an XML string.

with open('sample.xml', 'w', encoding='utf-8') as f:
    f.write(node.to_xml())

Contributing

Coming soon.

License

License :: OSI Approved :: MIT License

Metadata

Release files for xml-generator-seobaeksol 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xml-generator-seobaeksol 0.0.1
File Size Uploaded Provenance Actions
xml-generator-seobaeksol-0.0.1.tar.gz 3.7 kB Without provenance Details for xml-generator-seobaeksol-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xml-generator-seobaeksol 0.0.1
File Interpreter ABI Platform Actions
xml_generator_seobaeksol-0.0.1-py3-none-any.whl Python 3 none any Details for xml_generator_seobaeksol-0.0.1-py3-none-any.whl

Total release size: 7.9 kB

Release files / xml-generator-seobaeksol-0.0.1.tar.gz

Download URL xml-generator-seobaeksol-0.0.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c5d908ad9f8dc8896dd4ad6e426938d0ad1fa487afcb0977cbf6cda86812a218
BLAKE2b-256 checksum
How to use checksums
7308f27b7ed270ccf912ba21cf573f767b68b7c1707f2f4e2f70270a526ecf66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Release files / xml_generator_seobaeksol-0.0.1-py3-none-any.whl

Download URL xml_generator_seobaeksol-0.0.1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bef95e3802c5250e578e2504d4a65e48e7f52902c0888b046f7b09731acad3e5
BLAKE2b-256 checksum
How to use checksums
a7d48b414f31320dd5dd33bcc6ea11fcf411c55cf8e67be756c413601143eaf7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Security for xml-generator-seobaeksol 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page