API reference
Generated from the source with mkdocstrings. Every path below is the public import path; private plumbing stays out of the pages. The sync twins mirror every async resource under the suffixed name (RepositoriesSyncResource, RepositorySyncResource); their pages are identical, so they are not listed again here.
Client
bibliofabric.re3data.Re3dataClient
Client for the re3data API, schema 4.0 (/api/v40).
Every route is public, so there are no credentials. The client asks for XML on every request and paces requests at two per second on one connection.
repositories: RepositoriesResource
cached
property
The /repositories route: filtered search over summaries.
repository: RepositoryResource
cached
property
The /repository/{id} route: one full repository description.
Settings
bibliofabric.re3data.Re3dataSettings
re3data-specific client settings.
Inherits timeout, max_retries, max_retry_wait,
max_requests_per_second, max_concurrency, user_agent and
mailto from :class:bibliofabric.config.BaseApiSettings. Every
route is public, so there are no credential fields. The defaults pace
the client at two requests per second on one connection.
max_requests_per_second: float | None = Field(default=DEFAULT_MAX_REQUESTS_PER_SECOND, gt=0)
class-attribute
instance-attribute
max_concurrency: int = Field(default=DEFAULT_MAX_CONCURRENCY, gt=0)
class-attribute
instance-attribute
Resources
bibliofabric.re3data.RepositoriesResource
Client for the schema 4.0 list route (/repositories).
The route serves every matching repository in one response and accepts
no paging parameters, so search() and iterate() always cover the
full result set. It answers HTTP 500 without a filter, so search()
raises :class:ConfigurationError when neither query, a filter
model, nor raw params narrow the request. Single-record lookups live
on client.repository.
bibliofabric.re3data.RepositoryResource
Client for the schema 4.0 detail route (/repository/{id}).
get(id) returns the full repository description; 404 raises
:class:NotFoundError. The route is single-record only, so every list
operation is unsupported.
Filters
bibliofabric.re3data.Re3dataFilters
The three array filters of the list route.
Each field takes one value or a sequence of values; a sequence repeats the parameter once per value.
Models
bibliofabric.re3data.RepositorySummary
One entry of the list route: id, DOI, name, and the detail link.
bibliofabric.re3data.Repository
One repository description from the detail route (schema 4.0).
doi: str | None
property
The DOI of the repository record.
name: str | None
property
The repository name in its first recorded language.
re3data_id: str | None
property
The re3data identifier, for example r3d100010468.
bibliofabric.re3data.RepositoryIdentifiers
The re3data id and DOI of one repository.
bibliofabric.re3data.RepositoryIdentifier
One external identifier of the repository, for example FAIRsharing.
bibliofabric.re3data.RepositoryContact
One contact channel of the repository.
bibliofabric.re3data.LocalizedName
One name or description with its optional language tag.
bibliofabric.re3data.Link
One link element of a list entry; the API serves rel="self".
bibliofabric.re3data.Subject
One subject of the repository in the DFG subject classification.
bibliofabric.re3data.ContentType
One content type of the repository in the COAR resource type scheme.
bibliofabric.re3data.Institution
One institution responsible for the repository.
bibliofabric.re3data.InstitutionIdentifier
One external identifier of an institution, for example a ROR id.
bibliofabric.re3data.Policy
One policy of the repository.
bibliofabric.re3data.FunderIdentifier
One external identifier of a funder, for example a Crossref id.
bibliofabric.re3data.FundingInformation
One funding source of the repository.
bibliofabric.re3data.DatabaseAccess
The database access condition with its restrictions.
bibliofabric.re3data.DataAccess
One data access condition with its restrictions.
bibliofabric.re3data.License
One license of the database, its data, or its data uploads.
bibliofabric.re3data.DataUpload
One data upload condition with its restrictions.
bibliofabric.re3data.Api
One machine interface of the repository.
bibliofabric.re3data.Syndication
One syndication feed of the repository.
bibliofabric.re3data.MetadataStandard
One metadata standard the repository serves.
Helpers
bibliofabric.re3data.parse_repository_list(root: ElementTree.Element) -> dict[str, Any]
Parse the <list> root of the list route into summary dicts.
bibliofabric.re3data.parse_repository(root: ElementTree.Element) -> dict[str, Any]
Parse the <r3d:re3data> root of the detail route into one dict.