All Projects → tefra → xsdata

tefra / xsdata

Licence: MIT license
Naive XML & JSON Bindings for python

Programming Languages

python
139335 projects - #7 most used programming language
Jinja
831 projects

Projects that are alternatives of or similar to xsdata

xsd-parser-rs
A xsd/wsdl => rust code generator written in rust
Stars: ✭ 45 (-68.75%)
Mutual labels:  soap, wsdl, xsd
soap-spring-boot-cxf
Sample Project for producing & testing a SOAP-WSDL-driven Service with Spring Boot, Apache CXF & JAX-WS
Stars: ✭ 56 (-61.11%)
Mutual labels:  soap, wsdl
wsdl-tsclient
📄 Generate typescript client from wsdl
Stars: ✭ 30 (-79.17%)
Mutual labels:  soap, wsdl
Graphql Code Generator
A tool for generating code based on a GraphQL schema and GraphQL operations (query/mutation/subscription), with flexible support for custom plugins.
Stars: ✭ 7,993 (+5450.69%)
Mutual labels:  schema, code-generator
Python Zeep
A modern/fast python SOAP client based on lxml / requests
Stars: ✭ 1,638 (+1037.5%)
Mutual labels:  soap, wsdl
PackageBase
Contains base classes from which the generated classes from PackageGenerator inherit
Stars: ✭ 19 (-86.81%)
Mutual labels:  soap, wsdl
xgen
XSD (XML Schema Definition) parser and Go/C/Java/Rust/TypeScript code generator
Stars: ✭ 153 (+6.25%)
Mutual labels:  code-generator, xsd
Sql Boot
Advanced REST-wrapper for your SQL-queries (actually not only SQL)
Stars: ✭ 51 (-64.58%)
Mutual labels:  schema, code-generator
wsdl-to-ts
Generate TypeScript typings for WSDL services
Stars: ✭ 60 (-58.33%)
Mutual labels:  soap, wsdl
openimmo
OpenImmo library
Stars: ✭ 36 (-75%)
Mutual labels:  code-generator, xsd
cxf-spring-boot-starter
Enterprise & production ready SOAP webservices powered by Spring Boot & Apache CXF
Stars: ✭ 129 (-10.42%)
Mutual labels:  soap, wsdl
soap-typescript
SOAP decorators for creating wsdl's and annotating services to provide metadata for node-soap
Stars: ✭ 20 (-86.11%)
Mutual labels:  schema, soap
graphql-directive-sql
Unify your SQL schema and your GraphQL Schema. Use GraphQL SDL as the lingua franca to define your data requirements.
Stars: ✭ 28 (-80.56%)
Mutual labels:  schema, code-generator
remote-virtualbox
🍰 Little package to do simple things with VirtualBox remotely using it's SOAP API
Stars: ✭ 18 (-87.5%)
Mutual labels:  soap
hodur-lacinia-schema
Hodur is a domain modeling approach and collection of libraries to Clojure. By using Hodur you can define your domain model as data, parse and validate it, and then either consume your model via an API or use one of the many plugins to help you achieve mechanical results faster and in a purely functional manner.
Stars: ✭ 20 (-86.11%)
Mutual labels:  schema
better-serializer
General serializer for PHP. An alternative to JmsSerializer.
Stars: ✭ 27 (-81.25%)
Mutual labels:  serializer
node-libzim
Binding to libzim, read/write ZIM files in Javascript
Stars: ✭ 23 (-84.03%)
Mutual labels:  binding
avro ex
An Avro Library that emphasizes testability and ease of use.
Stars: ✭ 47 (-67.36%)
Mutual labels:  schema
rust-tree-sitter
Rust bindings to Tree-sitter
Stars: ✭ 29 (-79.86%)
Mutual labels:  binding
storage
Mongoose-like schema validation, collections and documents on browser (client-side)
Stars: ✭ 17 (-88.19%)
Mutual labels:  schema

Naive XML Bindings for python

https://readthedocs.org/projects/xsdata/badge https://www.codefactor.io/repository/github/tefra/xsdata/badge

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.

It ships with a code generator for XML schemas, WSDL definitions, XML & JSON documents. It produces simple dataclasses with type hints and simple binding metadata.

The included XML and JSON parser/serializer are highly optimized and adaptable, with multiple handlers and configuration properties.

xsData is constantly tested against the W3C XML Schema 1.1 test suite.

Getting started

$ # Install all dependencies
$ pip install xsdata[cli,lxml,soap]
$ # Generate models
$ xsdata tests/fixtures/primer/order.xsd --package tests.fixtures.primer
>>> # Parse XML
>>> from pathlib import Path
>>> from tests.fixtures.primer import PurchaseOrder
>>> from xsdata.formats.dataclass.parsers import XmlParser
>>>
>>> xml_string = Path("tests/fixtures/primer/sample.xml").read_text()
>>> parser = XmlParser()
>>> order = parser.from_string(xml_string, PurchaseOrder)
>>> order.bill_to
Usaddress(name='Robert Smith', street='8 Oak Avenue', city='Old Town', state='PA', zip=Decimal('95819'), country='US')

Check the documentation for more

Features

  • Generate code from:
    • XML Schemas 1.0 & 1.1
    • WSDL 1.1 definitions with SOAP 1.1 bindings
    • Directly from XML and JSON Documents
    • Extensive configuration to customize output
    • Pluggable code writer for custom output formats
  • Default Output:
    • Pure python dataclasses with metadata
    • Type hints with support for forward references and unions
    • Enumerations and inner classes
    • Support namespace qualified elements and attributes
  • Data Binding:
    • XML and JSON parser, serializer
    • Handlers and Writers based on lxml and native xml python
    • Support wildcard elements and attributes
    • Support xinclude statements and unknown properties
    • Customize behaviour through config

Changelog: 22.5 (2022-05-08)

  • Added support for xml date/time nanoseconds #679
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].