Skip to main content

PLACEHOLDER

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

enno-0.0.3.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file enno-0.0.3.tar.gz.

File metadata

  • Download URL: enno-0.0.3.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for enno-0.0.3.tar.gz
Algorithm Hash digest
SHA256 62cf8fac8646bb92b971796094fc2adafe7557bc98620ae266efa2688ce1ee9d
MD5 b86cb094fd232dfdc0e93354acca744a
BLAKE2b-256 701b22b3b625f2c5ede96f73e56e25ad42e858470d1b927fd87b4e7608b51d58

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page