emmet.core.mpid

Define identifier schemas used in MP.

Module Attributes

STRICT_ID_PREFIXES

Identifier prefixes accepted when validating identifiers in strict mode.

Functions

check_strict_identifier

Check that an identifier is well-formed, without coercing it.

validate_identifier

Format an input string or identifier as a valid Materials Project format identifier.

Classes

AlphaID

Identifier based on representing an integer as an alphabetical string.

FORBIDDEN_ALPHA_ID_VALUES

set() -> new empty set object set(iterable) -> new set object

MPCULE_REGEX_PATTERN

str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

MPID

A Materials Project type ID with a prefix and an integer This class enables seemlessly mixing MPIDs and regular integer IDs Prefixed IDs are considered less than non-prefixed IDs to enable proper mixing with the Materials Project

MPID_REGEX_PATTERN

str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

MPculeID

A Materials Project Molecule ID with a prefix, hash, and two integer values

VALID_ALPHA_SEPARATORS

set() -> new empty set object set(iterable) -> new set object

ascii_lowercase

str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

digits

str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str