MCPcopy Create free account
hub / github.com/Materials-Consortia/optimade-python-tools / Person

Class Person

optimade/models/references.py:11–39  ·  view source on GitHub ↗

A person, i.e., an author, editor or other.

Source from the content-addressed store, hash-verified

9
10
11class Person(BaseModel):
12 """A person, i.e., an author, editor or other."""
13
14 name: Annotated[
15 str,
16 OptimadeField(
17 description="""Full name of the person, REQUIRED.""",
18 support=SupportLevel.MUST,
19 queryable=SupportLevel.OPTIONAL,
20 ),
21 ]
22
23 firstname: Annotated[
24 str | None,
25 OptimadeField(
26 description="""First name of the person.""",
27 support=SupportLevel.OPTIONAL,
28 queryable=SupportLevel.OPTIONAL,
29 ),
30 ] = None
31
32 lastname: Annotated[
33 str | None,
34 OptimadeField(
35 description="""Last name of the person.""",
36 support=SupportLevel.OPTIONAL,
37 queryable=SupportLevel.OPTIONAL,
38 ),
39 ] = None
40
41
42class ReferenceResourceAttributes(EntryResourceAttributes):

Callers

nothing calls this directly

Calls 1

OptimadeFieldFunction · 0.90

Tested by

no test coverage detected