Openminds

Latest version: v0.2.2

Safety actively analyzes 622940 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.2.2

Bug fixes:
- instance properties that should be IRI objects were just plain strings
- passing an integer to a property of type "number" produced a validation error
- when validating collections the "ignore" argument wasn't being passed down
- type hints were producing an error with Python 3.8

0.2.1

- Improved property descriptions, for example the `identifier` property of the `ProductSource` class now has the description "Term or code used to identify the product source" whereas previously it was the generic "Term or code used to identify something or someone".
- Non-HTTP IRIs are now allowed.

0.2.0

Added the openMINDS instance library (predefined metadata instances)
as class attributes. For example:
python
In [1]: from openminds.latest.controlled_terms import AgeCategory

In [2]: AgeCategory.adult
Out[2]: <openminds.latest.controlled_terms.age_category.AgeCategory at 0x104eb3970>

In [3]: AgeCategory.adult.id
Out[3]: 'https://openminds.ebrains.eu/instances/ageCategory/adult'

In [4]: AgeCategory.adult.definition
Out[4]: "'Adult' categorizes the life cycle stage of an animal or human that reached sexual maturity."


In some cases it is more convenient to retrieve instances by name or synonym, e.g.:

In [1]: from openminds.latest.controlled_terms import MolecularEntity

In [2]: MolecularEntity.by_name("HEPES") == MolecularEntity.by_name("4-(2-hydroxyethyl)-1-piperazine ethanesulfonic acid")
Out[2]: True


For more detail see 29.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.