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 (PublicationsSyncResource, RecordsSyncResource, and so on); their pages are identical, so they are not listed again here.
Client
bibliofabric.dblp.DblpClient
Client for the DBLP search API (https://dblp.org).
Every route is public, so there are no credentials. The client asks for JSON on every request and paces requests at the one request per second that DBLP asks API consumers to keep, on one connection.
publications: PublicationsResource
cached
property
The publication search and record route.
authors: AuthorsResource
cached
property
The person (author and editor) search route.
venues: VenuesResource
cached
property
The venue (journal and conference) search route.
records: RecordsResource
cached
property
The per-record XML pages by DBLP key.
Settings
bibliofabric.dblp.DblpSettings
DBLP-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 DBLP
route is public, so there are no credential fields. The defaults pace
the client at the one request per second that DBLP requests, 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.dblp.PublicationsResource
Client for the /search/publ/api route.
The route indexes every publication in DBLP. Each hit carries the
record's DBLP key, which :meth:bibliofabric.dblp._async.resources.RecordsResource.get
uses to fetch the full record page.
bibliofabric.dblp.AuthorsResource
Client for the /search/author/api route.
The route matches person (author and editor) home pages. Each hit
carries the person's url, whose last two path segments are the
DBLP person id (Author.pid).
bibliofabric.dblp.VenuesResource
Client for the /search/venue/api route.
The route matches journal and conference home pages. Each hit carries
the url of the venue's DBLP listing page.
bibliofabric.dblp.RecordsResource
Client for the per-record XML pages (/rec/{key}.xml).
A record page carries the full publication record: every field the
search hits carry plus record-only fields such as mdate,
crossref, stream, and author ORCIDs.
get(id: str | int, *, select: Sequence[str] | None = None, params: Mapping[str, Any] | None = None) -> PublicationRecord
async
Return one publication by DBLP key from its per-record XML page.
Accepts the bare key (journals/biodb/JoshiMKJIS25) and the
dblp.org/rec/ URL in its spellings (see
:func:bibliofabric.dblp.dialect.record_key). Raises
NotFoundError for an unknown key. DBLP has no field selection,
so select= raises ConfigurationError.
Models
bibliofabric.dblp.Publication
One publication search hit (the info object of result.hits.hit).
venue is a list of venue strings on most records and a scalar on
some; authors nests the list under an author key and serves a
single object when there is one author. type is one of "Article",
"Conference Paper", "Journal", "Conference or Workshop", or
"Informal and Other Publications"; access is "open",
"closed", or "unknown".
bibliofabric.dblp.Author
One person search hit (the info object of result.hits.hit).
pid: str
property
Return the DBLP person id from url, for example w/GerhardWeikum.
bibliofabric.dblp.Venue
One venue search hit (the info object of result.hits.hit).
bibliofabric.dblp.PublicationRecord
One publication parsed from its per-record XML page (/rec/{key}.xml).
pubtype is the XML element name, for example article,
inproceedings, phdthesis, or www. The fields a record type
does not carry stay None.
bibliofabric.dblp.AuthorRef
One author of a publication.
Search hits carry pid (the DBLP person id); record pages add
orcid.
bibliofabric.dblp.PersonNote
One note of a person hit, for example an affiliation or an award.
bibliofabric.dblp.Completion
One prefix completion of the right-most query term.
sc, dc and oc are the hit counts of the completion itself,
of its documents, and of its occurrences.
Helpers
bibliofabric.dblp.record_key(value: str) -> str
Return the DBLP record key of a bare key or a dblp.org/rec/ URL.
Accepts journals/biodb/JoshiMKJIS25,
https://dblp.org/rec/journals/biodb/JoshiMKJIS25, and the same URL
with a .xml or .html suffix. A blank key raises
:class:bibliofabric.exceptions.ConfigurationError.
bibliofabric.dblp.parse_record(xml: str, *, request: httpx.Request | None = None, response: httpx.Response | None = None) -> dict[str, Any]
Parse one record page into a dict for
:class:bibliofabric.dblp.models.PublicationRecord.
Raises :class:bibliofabric.exceptions.ValidationError when the body is
not one DBLP record element.