Skip to content

Commit

Permalink
Minor bug fix in orcid.email
Browse files Browse the repository at this point in the history
  • Loading branch information
sri0606 committed Sep 8, 2023
1 parent ba94ef4 commit 6e13c4b
Show file tree
Hide file tree
Showing 3 changed files with 148 additions and 1 deletion.
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Changelog

All notable changes to this project will be documented in this file.

## [1.0.1] - 09/08/2023

### Added
- No changes

### Changed
- No changes

### Deprecated
- No changes

### Removed
- No changes

### Fixed
- Fixed the bug that caused orcid.email function to not work due to key error

### Security
- No changes

## [1.0.0] - 09/08/2023

- First release

# ... Repeat the above structure for each version ...

[1.0.1]:https://github.com/sri0606/PyOrcid/releases/tag/v1.0.1
[1.0.0]:https://github.com/sri0606/PyOrcid/releases/tag/v1.0.0
115 changes: 115 additions & 0 deletions example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,121 @@
"source": [
"orcid.generate_markdown_file(\"md_generator_example.md\")"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"from src import pyorcid\n",
"orcid = pyorcid.Orcid(\"0009-0004-5301-6863\",\"45e7577b-bfc2-4163-a84d-494c05dc50c0\",\"public\")"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"([],\n",
" {'orcid-identifier': {'uri': 'https://orcid.org/0009-0004-5301-6863',\n",
" 'path': '0009-0004-5301-6863',\n",
" 'host': 'orcid.org'},\n",
" 'preferences': {'locale': 'en'},\n",
" 'history': {'creation-method': 'DIRECT',\n",
" 'completion-date': None,\n",
" 'submission-date': {'value': 1692747263585},\n",
" 'last-modified-date': {'value': 1694208958252},\n",
" 'claimed': True,\n",
" 'source': None,\n",
" 'deactivation-date': None,\n",
" 'verified-email': True,\n",
" 'verified-primary-email': True},\n",
" 'person': {'last-modified-date': None,\n",
" 'name': {'created-date': {'value': 1692747263843},\n",
" 'last-modified-date': {'value': 1692747263843},\n",
" 'given-names': {'value': 'sriram'},\n",
" 'family-name': None,\n",
" 'credit-name': None,\n",
" 'source': None,\n",
" 'visibility': 'public',\n",
" 'path': '0009-0004-5301-6863'},\n",
" 'other-names': {'last-modified-date': None,\n",
" 'other-name': [],\n",
" 'path': '/0009-0004-5301-6863/other-names'},\n",
" 'biography': None,\n",
" 'researcher-urls': {'last-modified-date': None,\n",
" 'researcher-url': [],\n",
" 'path': '/0009-0004-5301-6863/researcher-urls'},\n",
" 'emails': {'last-modified-date': None,\n",
" 'email': [],\n",
" 'path': '/0009-0004-5301-6863/email'},\n",
" 'addresses': {'last-modified-date': None,\n",
" 'address': [],\n",
" 'path': '/0009-0004-5301-6863/address'},\n",
" 'keywords': {'last-modified-date': None,\n",
" 'keyword': [],\n",
" 'path': '/0009-0004-5301-6863/keywords'},\n",
" 'external-identifiers': {'last-modified-date': None,\n",
" 'external-identifier': [],\n",
" 'path': '/0009-0004-5301-6863/external-identifiers'},\n",
" 'path': '/0009-0004-5301-6863/person'},\n",
" 'activities-summary': {'last-modified-date': None,\n",
" 'distinctions': {'last-modified-date': None,\n",
" 'affiliation-group': [],\n",
" 'path': '/0009-0004-5301-6863/distinctions'},\n",
" 'educations': {'last-modified-date': None,\n",
" 'affiliation-group': [],\n",
" 'path': '/0009-0004-5301-6863/educations'},\n",
" 'employments': {'last-modified-date': None,\n",
" 'affiliation-group': [],\n",
" 'path': '/0009-0004-5301-6863/employments'},\n",
" 'fundings': {'last-modified-date': None,\n",
" 'group': [],\n",
" 'path': '/0009-0004-5301-6863/fundings'},\n",
" 'invited-positions': {'last-modified-date': None,\n",
" 'affiliation-group': [],\n",
" 'path': '/0009-0004-5301-6863/invited-positions'},\n",
" 'memberships': {'last-modified-date': None,\n",
" 'affiliation-group': [],\n",
" 'path': '/0009-0004-5301-6863/memberships'},\n",
" 'peer-reviews': {'last-modified-date': None,\n",
" 'group': [],\n",
" 'path': '/0009-0004-5301-6863/peer-reviews'},\n",
" 'qualifications': {'last-modified-date': None,\n",
" 'affiliation-group': [],\n",
" 'path': '/0009-0004-5301-6863/qualifications'},\n",
" 'research-resources': {'last-modified-date': None,\n",
" 'group': [],\n",
" 'path': '/0009-0004-5301-6863/research-resources'},\n",
" 'services': {'last-modified-date': None,\n",
" 'affiliation-group': [],\n",
" 'path': '/0009-0004-5301-6863/services'},\n",
" 'works': {'last-modified-date': None,\n",
" 'group': [],\n",
" 'path': '/0009-0004-5301-6863/works'},\n",
" 'path': '/0009-0004-5301-6863/activities'},\n",
" 'path': '/0009-0004-5301-6863'})"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"orcid.email()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "PyOrcid"
version = "1.0.0"
version = "1.0.1"
license = "MIT"
description = "API client for ORCID API"
readme = "README.md"
Expand Down

0 comments on commit 6e13c4b

Please sign in to comment.