Skip to main content

Drugbank Schemas Pydantic Models

Project description

drugbank_schemas (v0.1.0)

Built with: xsdata-pydantic

Introduction

The purpose of this package is to provide Pydantic models for Drugbank schema files (XSD). It generates Pydantic classes that help parse Drugbank XML Data files. xsdata-pydantic tool.

How to install it?

pip install drugbank-schemas

How do I use it?

You can import the generated Pydantic models for drunbank schema files and use them to parse your drugbank XML files.

from xsdata_pydantic.bindings import XmlParser
from xsdata.formats.dataclass.context import XmlContext

from drugbank_schemas.models.drugbank_latest import Drugbank

parser = XmlParser(context=XmlContext())
drugbank = parser.parse("drugbank_5.1.10.xml", Drugbank)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

drugbank_schemas-0.1.1.tar.gz (143.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

drugbank_schemas-0.1.1-py3-none-any.whl (46.4 kB view details)

Uploaded Python 3

File details

Details for the file drugbank_schemas-0.1.1.tar.gz.

File metadata

  • Download URL: drugbank_schemas-0.1.1.tar.gz
  • Upload date:
  • Size: 143.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.19

File hashes

Hashes for drugbank_schemas-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ab7a0641599068d94187b8076209f699546f29fe97fea93537317428fe13f4f0
MD5 f8b0c856451da7b29d36979461b700c1
BLAKE2b-256 f0e6c50f2acbc23e15d44470581c1b314b11d4ae50d723a1041c62f206456446

See more details on using hashes here.

File details

Details for the file drugbank_schemas-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for drugbank_schemas-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d251d27d21a026b1da93c0afa1036b9453c04253ab903de689cd0351794c9bb1
MD5 241d4485d9ec8f86f213342d519dd307
BLAKE2b-256 48383bc3a227c891183f2c43363a7f095c88060721b9bec24f0ad840cf56dd86

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page