scholrly / orcid-python Goto Github PK
View Code? Open in Web Editor NEWA simple wrapper around the ORCID.org API.
License: MIT License
A simple wrapper around the ORCID.org API.
License: MIT License
I'm really confused by this. I had everything working just fine, just as it was supposed to according to the readme and then I somehow managed to break something. So on a clean VM running Python 2.7 I get the following and this is now what happens regardless of the system I'm running. As I say, it was working just fine which is what is confusing me:
vagrant@iPythonNotebook:/vagrant$ python
Python 2.7.3 (default, Apr 20 2012, 22:39:59)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import orcid
[...]
>>> john = orcid.get('0000-0002-4510-0385')
>>> print john.family_name
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/orcid/utils.py", line 34, in getter
return dict_value_from_path(cur_dict, path)
File "/usr/local/lib/python2.7/dist-packages/orcid/utils.py", line 4, in dict_value_from_path
cur_dict = cur_dict.get(key, {})
AttributeError: 'function' object has no attribute 'get'
Hi, I've used your utils.py file as a library in another API wrapper (for the PLOS ALM API) and just wanted to check with you about the licensing. I'm planning to release my code under an Apache license if possible.
Cheers
Cameron
It'd be great to have a full, OAuth-based Tier-2 client. Public methods first, though!
It would be good to update this project for Python3, but it looks like it's not really under maintenance anymore so it might be better to put a disclaimer on the README for that.
Obviously the idea of this is not (just yet) to support things like using the Member API to create ORCID-s. I, however, am working on just such a thing in Python, with explicit focus on record creation. It seems better to integrate this kind of thing into an existing library.
I wanted to check whether support for record creation was planned or already in the works before forking though.
Hi,
I have tested your tool I got following errors.
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import orcid
brinkmann = orcid.get('0000-0003-3083-2775')
print brinkmann
Traceback (most recent call last):
File "", line 1, in
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 12: ordinal not in range(128)
print brinkmann.name
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'Author' object has no attribute 'name'
print brinkmann.family_name
Brinkmann
print brinkmann.publications
Traceback (most recent call last):
File "", line 1, in
File "orcid/rest.py", line 107, in publications
self._load_works()
File "orcid/rest.py", line 101, in _load_works
+ '/orcid-works', headers = BASE_HEADERS)
TypeError: cannot concatenate 'str' and 'NoneType' objects
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.