# aiocrossref
Asynchronous client for CrossRef API
## Example
```python
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'})
```
Raw data
{
"_id": null,
"home_page": "https://github.com/izihawa/aiocrossref",
"name": "aiocrossref",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Pasha Podolsky",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/8e/13/14d39de24238583f01f4e2a220b94216f4ad1cd6ef133fce9ed6eae31ec6/aiocrossref-0.3.0.tar.gz",
"platform": null,
"description": "# aiocrossref\n\nAsynchronous client for CrossRef API\n\n## Example\n\n```python\nimport asyncio\n\nfrom aiocrossref import CrossrefClient\n\nasync def works(doi):\n client = CrossrefClient()\n return await client.works(doi)\n\nresponse = asyncio.get_event_loop().run_until_complete(works('10.21100/compass.v11i2.812'))\nassert(response == { \n 'DOI': '10.21100/compass.v11i2.812',\n 'ISSN': ['2044-0081', '2044-0073'],\n 'URL': 'http://dx.doi.org/10.21100/compass.v11i2.812',\n 'abstract': '<jats:p>Abstract: Educational policy and provision is '\n 'ever-changing; but how does pedagogy need to adapt to respond '\n 'to transhumanism? This opinion piece discusses transhumanism, '\n 'questions what it will mean to be posthuman, and considers the '\n 'implications of this on the future of education.</jats:p>',\n 'author': [ { 'affiliation': [],\n 'family': 'Gibson',\n 'given': 'Poppy Frances',\n 'sequence': 'first'}],\n 'container-title': ['Compass: Journal of Learning and Teaching'],\n 'content-domain': {'crossmark-restriction': False, 'domain': []},\n 'created': { 'date-parts': [[2018, 12, 17]],\n 'date-time': '2018-12-17T09:42:26Z',\n 'timestamp': 1545039746000},\n 'deposited': { 'date-parts': [[2019, 6, 11]],\n 'date-time': '2019-06-11T10:29:57Z',\n 'timestamp': 1560248997000},\n 'indexed': { 'date-parts': [[2020, 4, 14]],\n 'date-time': '2020-04-14T14:52:16Z',\n 'timestamp': 1586875936184},\n 'is-referenced-by-count': 0,\n 'issn-type': [ {'type': 'print', 'value': '2044-0073'},\n {'type': 'electronic', 'value': '2044-0081'}],\n 'issue': '2',\n 'issued': {'date-parts': [[2018, 12, 10]]},\n 'journal-issue': { 'issue': '2',\n 'published-online': {'date-parts': [[2018, 12, 10]]}},\n 'link': [ { 'URL': 'https://journals.gre.ac.uk/index.php/compass/article/viewFile/812/pdf',\n 'content-type': 'application/pdf',\n 'content-version': 'vor',\n 'intended-application': 'text-mining'},\n { 'URL': 'https://journals.gre.ac.uk/index.php/compass/article/viewFile/812/pdf',\n 'content-type': 'unspecified',\n 'content-version': 'vor',\n 'intended-application': 'similarity-checking'}],\n 'member': '8854',\n 'original-title': [],\n 'prefix': '10.21100',\n 'published-online': {'date-parts': [[2018, 12, 10]]},\n 'publisher': 'Educational Development Unit, University of Greenwich',\n 'reference-count': 0,\n 'references-count': 0,\n 'relation': {},\n 'score': 1.0,\n 'short-container-title': ['Compass'],\n 'short-title': [],\n 'source': 'Crossref',\n 'subtitle': [],\n 'title': [ 'From Humanities to Metahumanities: Transhumanism and the Future '\n 'of Education'],\n 'type': 'journal-article',\n 'volume': '11'})\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "",
"version": "0.3.0",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0abdcf8e43f9445fe0756d535dc2fdecf907dd231dc8b08d8a8ec61edc52411f",
"md5": "7dae269b21981bace633e366f5813a74",
"sha256": "eb56da506a3b710034bd6b31b25c9559e77f2f9f0911cc3e55625013166deb61"
},
"downloads": -1,
"filename": "aiocrossref-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7dae269b21981bace633e366f5813a74",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5869,
"upload_time": "2023-03-10T22:20:19",
"upload_time_iso_8601": "2023-03-10T22:20:19.363014Z",
"url": "https://files.pythonhosted.org/packages/0a/bd/cf8e43f9445fe0756d535dc2fdecf907dd231dc8b08d8a8ec61edc52411f/aiocrossref-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8e1314d39de24238583f01f4e2a220b94216f4ad1cd6ef133fce9ed6eae31ec6",
"md5": "80539564de8e37fca86c7ee7f4e53114",
"sha256": "4f448fbc76d0618a40c5cdbf643382d20139f46ac5038f3c4c4c9adae24b617f"
},
"downloads": -1,
"filename": "aiocrossref-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "80539564de8e37fca86c7ee7f4e53114",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4957,
"upload_time": "2023-03-10T22:20:21",
"upload_time_iso_8601": "2023-03-10T22:20:21.469165Z",
"url": "https://files.pythonhosted.org/packages/8e/13/14d39de24238583f01f4e2a220b94216f4ad1cd6ef133fce9ed6eae31ec6/aiocrossref-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-03-10 22:20:21",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "izihawa",
"github_project": "aiocrossref",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "aiocrossref"
}