Skip to main content

image

xsdata powered by attrs!

image image image image image image image


xsData is a complete data binding library for python allowing developers to access and use XML and JSON documents as simple objects rather than using DOM.

Now powered by attrs!

$ xsdata http://rss.cnn.com/rss/edition.rss --output attrs
Parsing document edition.rss
Analyzer input: 9 main and 0 inner classes
Analyzer output: 9 main and 0 inner classes
Generating package: init
Generating package: generated.rss
@attr.s
class Rss:
    class Meta:
        name = "rss"

    version: Optional[float] = attr.ib(
        default=None,
        metadata={
            "type": "Attribute",
        }
    )
    channel: Optional[Channel] = attr.ib(
        default=None,
        metadata={
            "type": "Element",
        }
    )
>>> from xsdata_attrs.bindings import XmlParser
>>> from urllib.request import urlopen
>>> from generated.rss import Rss
>>>
>>> parser = XmlParser()
>>> with urlopen("http://rss.cnn.com/rss/edition.rss") as rq:
...     result = parser.parse(rq, Rss)
...
>>> result.channel.item[2].title
'Vatican indicts 10 people, including a Cardinal, over an international financial scandal'
>>> result.channel.item[2].pub_date
'Sat, 03 Jul 2021 16:37:14 GMT'
>>> result.channel.item[2].link
'https://www.cnn.com/2021/07/03/europe/vatican-financial-scandal-intl/index.html'

Changelog: 24.5 (2024-05-08)

  • Bump xsdata minimum version v24.5

Metadata

Release files for xsdata-attrs 24.5

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

Source distribution (sdist)

Source distribution for xsdata-attrs 24.5
File Size Uploaded Provenance Actions
xsdata_attrs-24.5.tar.gz 17.7 kB Without provenance Details for xsdata_attrs-24.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xsdata-attrs 24.5
File Interpreter ABI Platform Actions
xsdata_attrs-24.5-py3-none-any.whl Python 3 none any Details for xsdata_attrs-24.5-py3-none-any.whl

Total release size: 25.6 kB

Release files / xsdata_attrs-24.5.tar.gz

Download URL xsdata_attrs-24.5.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8823fe4c42aa1387be00936051cb4a58f28328cd50ccf5592b505d9629fa9720
BLAKE2b-256 checksum
How to use checksums
5acb449af0758e06db8f00ea040cfee25d3b28ba8e63ca1411b6604d777d5ee3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / xsdata_attrs-24.5-py3-none-any.whl

Download URL xsdata_attrs-24.5-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45583c4b4e793b624d3f254de0cdb24bd446da2e8ab987f7a8f1259486c1941d
BLAKE2b-256 checksum
How to use checksums
0a024ab2d4c4a1fcb3388b476c67275018e627396cb9865535771f574f043da8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Security for xsdata-attrs 24.5

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