Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install evernote

How to install evernote

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install evernote
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.19
1.25.0Never BuiltWhy not?
1.19 Available View build log
1.14 Available View build log
Windows (64-bit)
1.19
1.25.0Never BuiltWhy not?
1.19 Available View build log
1.14 Available View build log
Mac OS X (10.5+)
1.25.0 Available View build log
1.23.2 Available View build log
1.19 Available View build log
1.14 Available View build log
Linux (32-bit)
1.25.0 Available View build log
1.23.2 Available View build log
1.23.0 Available View build log
1.19 Available View build log
1.14 Available View build log
Linux (64-bit)
1.25.0 Available View build log
1.23.2 Available View build log
1.19 Available View build log
1.14 Available View build log
 
License
BSD
Dependencies
Lastest release
version 1.25.0 on Jun 13th, 2013

Evernote API version 1.25

Overview

This SDK contains wrapper code used to call the Evernote Cloud API from Python.

The SDK also contains a sample script. The code demonstrates the basic use of the SDK for single-user scripts. Real web applications must use OAuth to authenticate to the Evernote service.

Prerequisites

In order to use the code in this SDK, you need to obtain an API key from http://dev.evernote.com/documentation/cloud. You'll also find full API documentation on that page.

In order to run the sample code, you need a user account on the sandbox service where you will do your development. Sign up for an account at https://sandbox.evernote.com/Registration.action

In order to run the client client sample code, you need a developer token. Get one at https://sandbox.evernote.com/api/DeveloperToken.action

Getting Started - Client

The code in sample/client/EDAMTest.py demonstrates the basics of using the Evernote API, using developer tokens to simplify the authentication process while you're learning.

  1. Open sample/client/EDAMTest.py

  2. Scroll down and fill in your Evernote developer token.

  3. On the command line, run the following command to execute the script:

    `bash $ export PYTHONPATH=../../lib; python EDAMTest.py `

Getting Started - Django with OAuth

Web applications must use OAuth to authenticate to the Evernote service. The code in sample/django contains a simple web apps that demonstrate the OAuth authentication process. The application use the Django framework. You don't need to use Django for your application, but you'll need it to run the sample code.

  1. Install django, oauth2 and evernote library. You can also use requirements.txt for pip.

  2. Open the file oauth/views.py

  3. Fill in your Evernote API consumer key and secret.

  4. On the command line, run the following command to start the sample app:

    `bash $ python manage.py runserver `

  5. Open the sample app in your browser: http://localhost:8000

Getting Started - Pyramid with OAuth

If you want to use Evernote API with Pyramid, the code in sample/pyramid will be good start.

  1. Install the sample project using pip on your command line like this.

    `bash $ pip install -e . `

  2. Open the file development.ini

  3. Fill in your Evernote API consumer key and secret.

  4. On the command line, run the following command to start the sample app:

    `bash $ pserve development.ini `

  5. Open the sample app in your browser: http://localhost:6543

Usage

### OAuth ### ```python client = EvernoteClient(

System Message: WARNING/2 (<string>, line 70); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (<string>, line 70); backlink

Inline interpreted text or phrase reference start-string without end-string.

System Message: ERROR/3 (<string>, line 73)

Unexpected indentation.
consumer_key='YOUR CONSUMER KEY', consumer_secret='YOUR CONSUMER SECRET', sandbox=True # Default: True

System Message: WARNING/2 (<string>, line 76)

Block quote ends without a blank line; unexpected unindent.

) request_token = client.get_request_token('YOUR CALLBACK URL') client.get_authorize_url(request_token)

System Message: ERROR/3 (<string>, line 79)

Unexpected indentation.
=> https://sandbox.evernote.com/OAuth.action?oauth_token=OAUTH_TOKEN

System Message: WARNING/2 (<string>, line 80)

Block quote ends without a blank line; unexpected unindent.

``` To obtain the access token ```python access_token = client.get_access_token(

System Message: WARNING/2 (<string>, line 80); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (<string>, line 80); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (<string>, line 80); backlink

Inline interpreted text or phrase reference start-string without end-string.

System Message: ERROR/3 (<string>, line 84)

Unexpected indentation.
request_token['oauth_token'], request_token['oauth_token_secret'], request.GET.get('oauth_verifier', '')

System Message: WARNING/2 (<string>, line 87)

Block quote ends without a blank line; unexpected unindent.
)

Now you can make other API calls `python client = EvernoteClient(token=access_token) note_store = client.get_note_store() notebooks = note_store.listNotebooks() `

### UserStore ### Once you acquire token, you can use UserStore. For example, if you want to call UserStore.getUser: `python client = EvernoteClient(token=access_token) user_store = client.get_user_store() user_store.getUser() ` You can omit authenticationToken in the arguments of UserStore functions.

### NoteStore ### If you want to call NoteStore.listNotebooks: `python note_store = client.get_note_store() note_store.listNotebooks() `

### NoteStore for linked notebooks ### If you want to get tags for linked notebooks: `python linked_notebook = note_store.listLinkedNotebooks()[0] shared_note_store = client.getSharedNoteStore(linked_notebook) shared_notebook = shared_note_store.getSharedNotebookByAuth() shared_note_store.listTagsByNotebook(shared_notebook.notebookGuid) `

### NoteStore for Business ### If you want to get the list of notebooks in your business account: `python business_note_store = client.get_business_note_store() business_note_store.listNotebooks() `

### References ### - Evernote Developers: http://dev.evernote.com/ - API Document: http://dev.evernote.com/documentation/reference/

Subscribe to package updates

Last updated Jun 13th, 2013

Download Stats

Last month:16

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.