Skip to content

Repository files navigation

zbRestApiClient

a REST api for zbMATH Open, currently with endpoints for authors, classifications, documents, serials and software

This Python package is automatically generated by the Swagger Codegen project:

  • API version: v0.4.3rc0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on GitHub, you can install directly from GitHub

pip install git+https://github.com/zbMATHOpen/zbRestApiClient.git

Then import the package:

importswagger_client

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

importswagger_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ importprint_functionimporttimeimportswagger_clientfromswagger_client.restimportApiExceptionfrompprintimportpprint# create an instance of the API classapi_instance=swagger_client.AuthorApi(swagger_client.ApiClient(configuration))
page=0# int | pagination for result page (optional) (default to 0)results_per_page=100# int | (optional) (default to 100)author_code='author_code_example'# str | author_code (optional)author_name='author_name_example'# str | author_name (optional)award='award_example'# str | award (optional)collectives_of='collectives_of_example'# str | collectives_of (optional)main_field='main_field_example'# str | main_field (optional)in_collective='in_collective_example'# str | in_collective (optional)external_id_type='external_id_type_example'# str | external_id_type (optional)first_name='first_name_example'# str | first_name (optional)last_name='last_name_example'# str | last_name (optional)reviewer='reviewer_example'# str | reviewer (optional)spelling='spelling_example'# str | spelling (optional)state='state_example'# str | state (optional)try:
# search authors by descriptive field namesapi_response=api_instance.get_author_by_field_author_structured_search_get(page=page, results_per_page=results_per_page, author_code=author_code, author_name=author_name, award=award, collectives_of=collectives_of, main_field=main_field, in_collective=in_collective, external_id_type=external_id_type, first_name=first_name, last_name=last_name, reviewer=reviewer, spelling=spelling, state=state)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling AuthorApi->get_author_by_field_author_structured_search_get: %s\n"%e)
# create an instance of the API classapi_instance=swagger_client.AuthorApi(swagger_client.ApiClient(configuration))
search_string='search_string_example'# str | page=0# int | (optional) (default to 0)results_per_page=100# int | (optional) (default to 100)try:
# search authors by zbMATH style user queryapi_response=api_instance.get_author_by_syntax_string_author_search_get(search_string, page=page, results_per_page=results_per_page)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling AuthorApi->get_author_by_syntax_string_author_search_get: %s\n"%e)
# create an instance of the API classapi_instance=swagger_client.AuthorApi(swagger_client.ApiClient(configuration))
code='code_example'# str | try:
# get author data by author codeapi_response=api_instance.get_author_by_zbmath_code_author_code_get(code)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling AuthorApi->get_author_by_zbmath_code_author_code_get: %s\n"%e)
# create an instance of the API classapi_instance=swagger_client.AuthorApi(swagger_client.ApiClient(configuration))
try:
# introduction for user help regarding this endpointapi_response=api_instance.intro_author_get()
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling AuthorApi->intro_author_get: %s\n"%e)

Documentation for API Endpoints

All URIs are relative to https://api.zbmath.org

ClassMethodHTTP requestDescription
AuthorApiget_author_by_field_author_structured_search_getGET /author/_structured_searchsearch authors by descriptive field names
AuthorApiget_author_by_syntax_string_author_search_getGET /author/_searchsearch authors by zbMATH style user query
AuthorApiget_author_by_zbmath_code_author_code_getGET /author/{code}get author data by author code
AuthorApiintro_author_getGET /author/introduction for user help regarding this endpoint
ClassificationApiget_classification_by_msc2020_code_classification_code_getGET /classification/{code}get msc2020 code data by code
ClassificationApiget_msc2020_by_field_classification_structured_search_getGET /classification/_structured_searchsearch msc codes meta data by descriptive field names
ClassificationApiget_msc2020_by_syntax_string_classification_search_getGET /classification/_searchsearch msc codes meta data by zbMATH style user query
ClassificationApiintro_classification_getGET /classification/introduction for user help regarding this endpoint
DocumentApiget_document_by_field_document_structured_search_getGET /document/_structured_searchsearch documents by descriptive field names
DocumentApiget_document_by_syntax_string_document_search_getGET /document/_searchsearch documents by zbMATH style user query
DocumentApiget_document_by_zbmath_id_document_id_getGET /document/{id}get document data by zbMath ID
DocumentApiintro_document_getGET /document/introduction for user help regarding this endpoint
SerialApiget_serial_by_field_serial_structured_search_getGET /serial/_structured_searchsearch serial meta data by descriptive field names
SerialApiget_serial_by_id_serial_id_getGET /serial/{id}get serial data by serial id
SerialApiget_serial_by_syntax_string_serial_search_getGET /serial/_searchsearch serial meta data by zbMATH style user query
SerialApiintro_serial_getGET /serial/introduction for user help regarding this endpoint serial
SoftwareApiget_software_by_field_software_structured_search_getGET /software/_structured_searchsearch software meta data by descriptive field names
SoftwareApiget_software_by_id_software_id_getGET /software/{id}get software data by software id
SoftwareApiget_software_by_syntax_string_software_search_getGET /software/_searchsearch software meta data by zbMATH style user query
SoftwareApiintro_software_getGET /software/introduction for user help regarding this endpoint software

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

About

a REST api for zbMATH Open, currently with endpoints for authors, classifications, documents, serials and software

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages