<commit_before>A simple wrapper around the ORCID.org API.

Example
=======

Here's a quick snippet to get info on `<NAME>`_. ::

    import orcid

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

    #do a simple author search for john
    authors = orcid.search('<NAME>')
    print authors[0].family_name

Enjoy!

.. _<NAME>: http://en.wikipedia.org/wiki/John_Wilbanks<commit_msg>Added info on complex searches to the README.<commit_after>A simple wrapper around the ORCID.org API.

Example
=======

Here's a quick snippet to get info on `<NAME>`_. ::

    import orcid

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

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

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

More Complicated Searches
=========================

You can also accomplish more complex queries using `Q` objects::

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

Enjoy!

.. _<NAME>: http://en.wikipedia.org/wiki/John_Wilbanks
{'fraction_non_alphanumeric': 0.146948003014318, 'fraction_numerical': 0.024868123587038434, 'mean_word_length': 3.7259786476868326, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7163243', 'n_tokens_mistral': 465, 'n_tokens_neox': 413, 'n_words': 127}