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

Class Provider

optimade/models/optimade_json.py:209–235  ·  view source on GitHub ↗

Information on the database provider of the implementation.

Source from the content-addressed store, hash-verified

207
208
209class Provider(BaseModel):
210 """Information on the database provider of the implementation."""
211
212 name: Annotated[
213 str, StrictField(description="a short name for the database provider")
214 ]
215
216 description: Annotated[
217 str, StrictField(description="a longer description of the database provider")
218 ]
219
220 prefix: Annotated[
221 str,
222 StrictField(
223 pattern=r"^[a-z]([a-z]|[0-9]|_)*$",
224 description="database-provider-specific prefix as found in section Database-Provider-Specific Namespace Prefixes.",
225 ),
226 ]
227
228 homepage: Annotated[
229 jsonapi.JsonLinkType | None,
230 StrictField(
231 description="a [JSON API links object](http://jsonapi.org/format/1.0#document-links) "
232 "pointing to homepage of the database provider, either "
233 "directly as a string, or as a link object.",
234 ),
235 ] = None
236
237
238class ImplementationMaintainer(BaseModel):

Callers 3

ServerConfigClass · 0.90
test_good_prefixesFunction · 0.90
test_bad_prefixesFunction · 0.90

Calls 1

StrictFieldFunction · 0.90

Tested by 2

test_good_prefixesFunction · 0.72
test_bad_prefixesFunction · 0.72