Request structures¶
Request structures, on which aleph.reactToAMQPMessage() reacts.
All strucutures defined here are simple dataholders, based on namedtuple.
-
class
aleph.datastructures.requests.CountRequest[zdroj]¶ Put one of the Queries to .query property and result will be just the number of records, instead of records itself.
This helps to save some of Aleph resources (yeah, it is restricted to give too much queries by license).
Viz také
aleph.reactToAMQPMessage()returnsaleph.datastructures.results.CountResultas response.
-
class
aleph.datastructures.requests.SearchRequest[zdroj]¶ Perform search in Aleph with given query.
Viz také
aleph.reactToAMQPMessage()returnsaleph.datastructures.results.SearchResultas response.
-
class
aleph.datastructures.requests.ISBNValidationRequest[zdroj]¶ Validate given ISBN.
-
ISBN¶ str – ISBN, which will be validated.
Viz také
aleph.reactToAMQPMessage()returnsaleph.datastructures.results.ISBNValidationResultas response.-
-
class
aleph.datastructures.requests.ExportRequest[zdroj]¶ Request to export data to Aleph.
-
epublication¶ aleph.datastructures.epublication.EPublicationstructure, which will be exported to Aleph
Varování
ISBN, nazev, Místo vydání, Měsíc a rok vydání, Pořadí vydání, Zpracovatel záznamu, vazba/forma, Formát (poze pro epublikace) and Nakladatel has to be present, or AssertionError will be thrown.
ISBN has to be valid, or request will be rejected with ExportException.
Viz také
aleph.reactToAMQPMessage()returnsaleph.datastructures.results.ExportResultas response.-