Skip to main content

Wrapper around Evernote’s python client that makes it just a little more pleasant to use.

Get an access token

  1. Go here and click GET AN API KEY.

  2. Fill out the information for your Oauth app

  3. Create an account on the development server

  4. add your key and secret to the environment:

    $ export ENNO_CONSUMER_KEY=...
    $ export ENNO_CONSUMER_SECRET=...
  5. Create an access token:

    $ enno oauth --sandbox
  6. Export your sandbox access token:

    $ export ENNO_SANDBOX=1
    $ export ENNO_SANDBOX_ACCESS_TOKEN=...
  7. When you are ready to use your app on your actual live evernote, go here and click Activate an API Key.

  8. When your api key is activated you can then get a real access token:

    $ enno oauth
    $ export ENNO_SANDBOX=0
    $ export ENNO_ACCESS_TOKEN=...

Querying notes

from enno import Note

# get the first 10 notes containing foo in the title
q = Note.query.in_title("foo").limit(10)
for n in q.get():
    print(n.title)

Creating notes

save text:

from enno import Note

n = Note()

n.title = "this is the title"
n.plain = "this is the content"
n.save()
print(n.guid)

Save html:

n = Note()

n.title = "this is the title"
n.html = "<p>this is the content</p>"
n.save()
print(n.guid)

Evernote saves its notes in a format called ENML, this is available in the .content property:

n = Note()

n.title = "this is the title"
n.html = "<p>this is the content</p>"
print(n.content) # the html will have been converted to enml

Creating Notebooks

from enno import Notebook

nb = Notebook()

nb.name = "foo bar"
nb.save()
print(nb.guid)

Installation

Use pip:

$ pip install enno

To get the latest and greatest:

$ pip install git+https://github.com/jaymon/enno#egg=enno

Release files for enno 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for enno 0.0.6
File Size Uploaded
enno-0.0.6.tar.gz 17.7 kB Details

Release files / enno-0.0.6.tar.gz

Download URL enno-0.0.6.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f87d170f36515c80b4eeb697966aee919ad142c9a742f24008d3847f88a7a267
BLAKE2b-256 checksum
How to use checksums
adca85ed20938ff2e56a8b602c3d1f0dfb688f626e52567aa29517720536c0c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.6 This release

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page