Skip to main content

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

Third parties :

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

python-materialsdb-0.0.2.tar.gz (28.4 kB view details)

Uploaded Source

Built Distribution

python_materialsdb-0.0.2-py3-none-any.whl (29.0 kB view details)

Uploaded Python 3

File details

Details for the file python-materialsdb-0.0.2.tar.gz.

File metadata

  • Download URL: python-materialsdb-0.0.2.tar.gz
  • Upload date:
  • Size: 28.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for python-materialsdb-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1a2bdbe066cb69b86d1b240eb6b4fe671379fcb3832da6a08ac7af6f039ea1e9
MD5 db66801dd017078fb7f49a2403034d6d
BLAKE2b-256 7eaf618870a2a9db906302c1a49d2030cb9f9b691b8bb7e93bc5480b830d4aaa

See more details on using hashes here.

File details

Details for the file python_materialsdb-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for python_materialsdb-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5c635abdb2528047b327ed59364329a30faf813c71e4db263d443387280e3ddc
MD5 d970208bbb3b9b0976755615f3641753
BLAKE2b-256 262b1c64f59505f2dd588c5cb2454272aa09f457b65f50a0349774ecda45c1da

See more details on using hashes here.

Supported by

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