Skip to main content

No project description provided

Project description

aiocrossref

Asynchronous client for CrossRef API

Example

import asyncio

from aiocrossref import CrossrefClient

async def works(doi):
    client = CrossrefClient()
    return await client.works(doi)

response = asyncio.get_event_loop().run_until_complete(works('10.21100/compass.v11i2.812'))
assert(response == { 
  'DOI': '10.21100/compass.v11i2.812',
  'ISSN': ['2044-0081', '2044-0073'],
  'URL': 'http://dx.doi.org/10.21100/compass.v11i2.812',
  'abstract': '<jats:p>Abstract: Educational policy and provision is '
              'ever-changing; but how does pedagogy need to adapt to respond '
              'to transhumanism? This opinion piece discusses transhumanism, '
              'questions what it will mean to be posthuman, and considers the '
              'implications of this on the future of education.</jats:p>',
  'author': [ { 'affiliation': [],
                'family': 'Gibson',
                'given': 'Poppy Frances',
                'sequence': 'first'}],
  'container-title': ['Compass: Journal of Learning and Teaching'],
  'content-domain': {'crossmark-restriction': False, 'domain': []},
  'created': { 'date-parts': [[2018, 12, 17]],
               'date-time': '2018-12-17T09:42:26Z',
               'timestamp': 1545039746000},
  'deposited': { 'date-parts': [[2019, 6, 11]],
                 'date-time': '2019-06-11T10:29:57Z',
                 'timestamp': 1560248997000},
  'indexed': { 'date-parts': [[2020, 4, 14]],
               'date-time': '2020-04-14T14:52:16Z',
               'timestamp': 1586875936184},
  'is-referenced-by-count': 0,
  'issn-type': [ {'type': 'print', 'value': '2044-0073'},
                 {'type': 'electronic', 'value': '2044-0081'}],
  'issue': '2',
  'issued': {'date-parts': [[2018, 12, 10]]},
  'journal-issue': { 'issue': '2',
                     'published-online': {'date-parts': [[2018, 12, 10]]}},
  'link': [ { 'URL': 'https://journals.gre.ac.uk/index.php/compass/article/viewFile/812/pdf',
              'content-type': 'application/pdf',
              'content-version': 'vor',
              'intended-application': 'text-mining'},
            { 'URL': 'https://journals.gre.ac.uk/index.php/compass/article/viewFile/812/pdf',
              'content-type': 'unspecified',
              'content-version': 'vor',
              'intended-application': 'similarity-checking'}],
  'member': '8854',
  'original-title': [],
  'prefix': '10.21100',
  'published-online': {'date-parts': [[2018, 12, 10]]},
  'publisher': 'Educational Development Unit, University of Greenwich',
  'reference-count': 0,
  'references-count': 0,
  'relation': {},
  'score': 1.0,
  'short-container-title': ['Compass'],
  'short-title': [],
  'source': 'Crossref',
  'subtitle': [],
  'title': [ 'From Humanities to Metahumanities: Transhumanism and the Future '
             'of Education'],
  'type': 'journal-article',
  'volume': '11'})

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

aiocrossref-0.3.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

aiocrossref-0.3.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file aiocrossref-0.3.0.tar.gz.

File metadata

  • Download URL: aiocrossref-0.3.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.10

File hashes

Hashes for aiocrossref-0.3.0.tar.gz
Algorithm Hash digest
SHA256 4f448fbc76d0618a40c5cdbf643382d20139f46ac5038f3c4c4c9adae24b617f
MD5 80539564de8e37fca86c7ee7f4e53114
BLAKE2b-256 8e1314d39de24238583f01f4e2a220b94216f4ad1cd6ef133fce9ed6eae31ec6

See more details on using hashes here.

File details

Details for the file aiocrossref-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: aiocrossref-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.10

File hashes

Hashes for aiocrossref-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb56da506a3b710034bd6b31b25c9559e77f2f9f0911cc3e55625013166deb61
MD5 7dae269b21981bace633e366f5813a74
BLAKE2b-256 0abdcf8e43f9445fe0756d535dc2fdecf907dd231dc8b08d8a8ec61edc52411f

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