Coder Social home page Coder Social logo

orcid-python's Introduction

A simple Python wrapper around the ORCID.org API.

Example

Here's a quick snippet to get info on John Wilbanks.

>>> import orcid
>>> #retrieve john's profile from his ORCID
>>> john = orcid.get('0000-0002-4510-0385')
>>> print john.family_name
wilbanks

What if you'd like to see an author's works or areas of interest?

>>> print john.keywords
[]
>>> print john.publications
[]

Hm, let's try another author.

>>> alfonso = orcid.get('0000-0001-8855-5569')
>>> print alfonso.keywords
[u'computer science', u' bioinformatics', u' computational biology']
>>> print alfonso.publications[0]
<Publication "A note about norbert wiener and his contribution to harmonic analysis and tauberian theorems">

Maybe you'd like to read about Mr. Wiener's contributions?

>>> print alfonso.publications[0].url
http://www.scopus.com/inward/record.url?eid=2-s2.0-67650513866&partnerID=MN8TOARS

Searching

If you'd rather search for authors, try ORCID's search functionality

>>> #do a simple author search for john
>>> authors = orcid.search('john wilbanks')
>>> print next(authors).family_name
wilbanks

You can also accomplish more complex queries using Q objects and fields

>>> from orcid import Q
>>> authors = orcid.search(Q('given-name','john') & Q('family-name', 'wilbanks'))
>>> print next(authors).family_name
wilbanks

Enjoy!

orcid-python's People

Contributors

mhluongo avatar lawlesst avatar

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.