Giter Site home page Giter Site logo

orcid-python's People

Contributors

lawlesst avatar mhluongo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

orcid-python's Issues

AttributeError - passing function rather than dict?

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'

License for utils.py

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

Tier-2 API methods

It'd be great to have a full, OAuth-based Tier-2 client. Public methods first, though!

Update for Python3

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.

Creating orcids

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.

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 12: ordinal not in range(128)

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.