Skip to main content

API client library for fatcat.wiki (a bibliographic catalog)

Project description

fatcat-openapi-client

Fatcat is a scalable, versioned, API-oriented catalog of bibliographic entities and file metadata.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 0.4.0
  • Package version: 0.4.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://fatcat.wiki

Requirements.

Python 2.7 and 3.5+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install fatcat-openapi-client

(you may need to run pip with root permission: sudo pip install fatcat-openapi-client)

Then import the package:

import fatcat_openapi_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:

import fatcat_openapi_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import fatcat_openapi_client
from fatcat_openapi_client.rest import ApiException
from pprint import pprint

configuration = fatcat_openapi_client.Configuration()
# Configure API key authorization: Bearer
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'

# Defining host is optional and default to https://api.fatcat.wiki/v0
configuration.host = "https://api.fatcat.wiki/v0"
# Create an instance of the API class
api_instance = fatcat_openapi_client.DefaultApi(fatcat_openapi_client.ApiClient(configuration))
editgroup_id = 'editgroup_id_example' # str | base32-encoded unique identifier

try:
    api_response = api_instance.accept_editgroup(editgroup_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->accept_editgroup: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.fatcat.wiki/v0

Class Method HTTP request Description
DefaultApi accept_editgroup POST /editgroup/{editgroup_id}/accept
DefaultApi auth_check GET /auth/check
DefaultApi auth_oidc POST /auth/oidc
DefaultApi create_auth_token POST /auth/token/{editor_id}
DefaultApi create_container POST /editgroup/{editgroup_id}/container
DefaultApi create_container_auto_batch POST /editgroup/auto/container/batch
DefaultApi create_creator POST /editgroup/{editgroup_id}/creator
DefaultApi create_creator_auto_batch POST /editgroup/auto/creator/batch
DefaultApi create_editgroup POST /editgroup
DefaultApi create_editgroup_annotation POST /editgroup/{editgroup_id}/annotation
DefaultApi create_file POST /editgroup/{editgroup_id}/file
DefaultApi create_file_auto_batch POST /editgroup/auto/file/batch
DefaultApi create_fileset POST /editgroup/{editgroup_id}/fileset
DefaultApi create_fileset_auto_batch POST /editgroup/auto/fileset/batch
DefaultApi create_release POST /editgroup/{editgroup_id}/release
DefaultApi create_release_auto_batch POST /editgroup/auto/release/batch
DefaultApi create_webcapture POST /editgroup/{editgroup_id}/webcapture
DefaultApi create_webcapture_auto_batch POST /editgroup/auto/webcapture/batch
DefaultApi create_work POST /editgroup/{editgroup_id}/work
DefaultApi create_work_auto_batch POST /editgroup/auto/work/batch
DefaultApi delete_container DELETE /editgroup/{editgroup_id}/container/{ident}
DefaultApi delete_container_edit DELETE /editgroup/{editgroup_id}/container/edit/{edit_id}
DefaultApi delete_creator DELETE /editgroup/{editgroup_id}/creator/{ident}
DefaultApi delete_creator_edit DELETE /editgroup/{editgroup_id}/creator/edit/{edit_id}
DefaultApi delete_file DELETE /editgroup/{editgroup_id}/file/{ident}
DefaultApi delete_file_edit DELETE /editgroup/{editgroup_id}/file/edit/{edit_id}
DefaultApi delete_fileset DELETE /editgroup/{editgroup_id}/fileset/{ident}
DefaultApi delete_fileset_edit DELETE /editgroup/{editgroup_id}/fileset/edit/{edit_id}
DefaultApi delete_release DELETE /editgroup/{editgroup_id}/release/{ident}
DefaultApi delete_release_edit DELETE /editgroup/{editgroup_id}/release/edit/{edit_id}
DefaultApi delete_webcapture DELETE /editgroup/{editgroup_id}/webcapture/{ident}
DefaultApi delete_webcapture_edit DELETE /editgroup/{editgroup_id}/webcapture/edit/{edit_id}
DefaultApi delete_work DELETE /editgroup/{editgroup_id}/work/{ident}
DefaultApi delete_work_edit DELETE /editgroup/{editgroup_id}/work/edit/{edit_id}
DefaultApi get_changelog GET /changelog
DefaultApi get_changelog_entry GET /changelog/{index}
DefaultApi get_container GET /container/{ident}
DefaultApi get_container_edit GET /container/edit/{edit_id}
DefaultApi get_container_history GET /container/{ident}/history
DefaultApi get_container_redirects GET /container/{ident}/redirects
DefaultApi get_container_revision GET /container/rev/{rev_id}
DefaultApi get_creator GET /creator/{ident}
DefaultApi get_creator_edit GET /creator/edit/{edit_id}
DefaultApi get_creator_history GET /creator/{ident}/history
DefaultApi get_creator_redirects GET /creator/{ident}/redirects
DefaultApi get_creator_releases GET /creator/{ident}/releases
DefaultApi get_creator_revision GET /creator/rev/{rev_id}
DefaultApi get_editgroup GET /editgroup/{editgroup_id}
DefaultApi get_editgroup_annotations GET /editgroup/{editgroup_id}/annotations
DefaultApi get_editgroups_reviewable GET /editgroup/reviewable
DefaultApi get_editor GET /editor/{editor_id}
DefaultApi get_editor_annotations GET /editor/{editor_id}/annotations
DefaultApi get_editor_editgroups GET /editor/{editor_id}/editgroups
DefaultApi get_file GET /file/{ident}
DefaultApi get_file_edit GET /file/edit/{edit_id}
DefaultApi get_file_history GET /file/{ident}/history
DefaultApi get_file_redirects GET /file/{ident}/redirects
DefaultApi get_file_revision GET /file/rev/{rev_id}
DefaultApi get_fileset GET /fileset/{ident}
DefaultApi get_fileset_edit GET /fileset/edit/{edit_id}
DefaultApi get_fileset_history GET /fileset/{ident}/history
DefaultApi get_fileset_redirects GET /fileset/{ident}/redirects
DefaultApi get_fileset_revision GET /fileset/rev/{rev_id}
DefaultApi get_release GET /release/{ident}
DefaultApi get_release_edit GET /release/edit/{edit_id}
DefaultApi get_release_files GET /release/{ident}/files
DefaultApi get_release_filesets GET /release/{ident}/filesets
DefaultApi get_release_history GET /release/{ident}/history
DefaultApi get_release_redirects GET /release/{ident}/redirects
DefaultApi get_release_revision GET /release/rev/{rev_id}
DefaultApi get_release_webcaptures GET /release/{ident}/webcaptures
DefaultApi get_webcapture GET /webcapture/{ident}
DefaultApi get_webcapture_edit GET /webcapture/edit/{edit_id}
DefaultApi get_webcapture_history GET /webcapture/{ident}/history
DefaultApi get_webcapture_redirects GET /webcapture/{ident}/redirects
DefaultApi get_webcapture_revision GET /webcapture/rev/{rev_id}
DefaultApi get_work GET /work/{ident}
DefaultApi get_work_edit GET /work/edit/{edit_id}
DefaultApi get_work_history GET /work/{ident}/history
DefaultApi get_work_redirects GET /work/{ident}/redirects
DefaultApi get_work_releases GET /work/{ident}/releases
DefaultApi get_work_revision GET /work/rev/{rev_id}
DefaultApi lookup_container GET /container/lookup
DefaultApi lookup_creator GET /creator/lookup
DefaultApi lookup_editor GET /editor/lookup
DefaultApi lookup_file GET /file/lookup
DefaultApi lookup_release GET /release/lookup
DefaultApi update_container PUT /editgroup/{editgroup_id}/container/{ident}
DefaultApi update_creator PUT /editgroup/{editgroup_id}/creator/{ident}
DefaultApi update_editgroup PUT /editgroup/{editgroup_id}
DefaultApi update_editor PUT /editor/{editor_id}
DefaultApi update_file PUT /editgroup/{editgroup_id}/file/{ident}
DefaultApi update_fileset PUT /editgroup/{editgroup_id}/fileset/{ident}
DefaultApi update_release PUT /editgroup/{editgroup_id}/release/{ident}
DefaultApi update_webcapture PUT /editgroup/{editgroup_id}/webcapture/{ident}
DefaultApi update_work PUT /editgroup/{editgroup_id}/work/{ident}

Documentation For Models

Documentation For Authorization

Bearer

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Author

Bryan Newbold bnewbold@archive.org

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fatcat_openapi_client-0.4.0.tar.gz (68.5 kB view details)

Uploaded Source

Built Distribution

fatcat_openapi_client-0.4.0-py2.py3-none-any.whl (110.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file fatcat_openapi_client-0.4.0.tar.gz.

File metadata

  • Download URL: fatcat_openapi_client-0.4.0.tar.gz
  • Upload date:
  • Size: 68.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for fatcat_openapi_client-0.4.0.tar.gz
Algorithm Hash digest
SHA256 7bb15f4da348bcdf9a6dba83441b08402e356ac02746e20b3c6599981e901b46
MD5 dc74bddd3d8544010d15875c205b79f9
BLAKE2b-256 1f85467a343f591e2aaf0acb3cb1c17f41c037535c2319674aed37692bc4be62

See more details on using hashes here.

File details

Details for the file fatcat_openapi_client-0.4.0-py2.py3-none-any.whl.

File metadata

  • Download URL: fatcat_openapi_client-0.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 110.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for fatcat_openapi_client-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ccb5927158ac00325c6d24bf65c7e7ec91c258e2fc1076c2671f5a79ed330f2c
MD5 5ae5b13e1373a92ab229bec245ed0848
BLAKE2b-256 c3385b6e08e8c0394e6a0a01733b31fbb0ccea4d0978b514e9fbbbc389eb3bfa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page