Drugbank Schemas Pydantic Models
Project description
drugbank_schemas (v0.1.0)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab7a0641599068d94187b8076209f699546f29fe97fea93537317428fe13f4f0
|
|
| MD5 |
f8b0c856451da7b29d36979461b700c1
|
|
| BLAKE2b-256 |
f0e6c50f2acbc23e15d44470581c1b314b11d4ae50d723a1041c62f206456446
|
File details
Details for the file drugbank_schemas-0.1.1-py3-none-any.whl.
File metadata
- Download URL: drugbank_schemas-0.1.1-py3-none-any.whl
- Upload date:
- Size: 46.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d251d27d21a026b1da93c0afa1036b9453c04253ab903de689cd0351794c9bb1
|
|
| MD5 |
241d4485d9ec8f86f213342d519dd307
|
|
| BLAKE2b-256 |
48383bc3a227c891183f2c43363a7f095c88060721b9bec24f0ad840cf56dd86
|