A library to work with materialsdb.org open standard for building materials.
Project description
python-materialsdb is an unofficial python library for materialsdb.org an open format and database for building materials.
Features :
Package
- serialiser.py :
- from xml : deserialise from materialsdb*.xsd compliant xml file
- to xml : serealise classes to a materialsdb*.xsd compliant xml file
- classes.py : generated classes corresponding to XML elements
- cache.py : cache latest materials data from producers
- config.py : set and get user config as language and country
- ifc/project_library.py : convert deserialised source into IFC (IfcProjectLibrary)
devutils
- classes_generator.py : generate classes (dataclasses except for simple type) for materialsdb*.xsd elements
config
Materials data are often localized. You can set your language and country this way:
from materialsdb import config
config.set_lang("fr")
config.set_country("CH")
Note: in materialsdb standard languages are ISO 639-1 codes and countries are ISO_3166-1_alpha-2 codes.
Usage examples :
Check out some examples:
How to install
Using pip
pip install python-materialsdb
Dependencies
- lxml (BSD) : xml parser
- ifcopenshell (LGPL) : ifc read/write
Third parties :
- materialsdb.org (GPL) : materials schema
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
python-materialsdb-0.0.1.tar.gz
(26.2 kB
view details)
Built Distribution
File details
Details for the file python-materialsdb-0.0.1.tar.gz
.
File metadata
- Download URL: python-materialsdb-0.0.1.tar.gz
- Upload date:
- Size: 26.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 289241ce82c97cda7c2d225554efca1a4580d82477ac9fadf1f329993367ca02 |
|
MD5 | 7f5399fda7c7a6070f613b3d6e913757 |
|
BLAKE2b-256 | d99315ba1f9fc951fdbf1b2f0d6e3ef1f40b1ba057922a3a7659d1f3bc879fb0 |
File details
Details for the file python_materialsdb-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: python_materialsdb-0.0.1-py3-none-any.whl
- Upload date:
- Size: 28.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1734ddfef2cefdc186bcea503c8f619ac5741849e76aafa177ddb65d5a74c6b0 |
|
MD5 | 013e623429dd733a7440da5c069f1433 |
|
BLAKE2b-256 | 1967e1ea6198d056d0d7c46df04b1dfa28387a0978f4eaf9c8c89a36a5d8ef15 |