Wrapper around Evernote's python client
Project description
Wrapper around Evernote’s python client that makes it just a little more pleasant to use.
Get an access token
Go here and click GET AN API KEY.
Fill out the information for your Oauth app
Create an account on the development server
add your key and secret to the environment:
$ export ENNO_CONSUMER_KEY=... $ export ENNO_CONSUMER_SECRET=...
Create an access token:
$ enno oauth --sandbox
Export your sandbox access token:
$ export ENNO_SANDBOX=1 $ export ENNO_SANDBOX_ACCESS_TOKEN=...
When you are ready to use your app on your actual live evernote, go here and click Activate an API Key.
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
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
File details
Details for the file enno-0.0.6.tar.gz
.
File metadata
- Download URL: enno-0.0.6.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f87d170f36515c80b4eeb697966aee919ad142c9a742f24008d3847f88a7a267 |
|
MD5 | 8a05a3c49aa9e98049752c67616690c1 |
|
BLAKE2b-256 | adca85ed20938ff2e56a8b602c3d1f0dfb688f626e52567aa29517720536c0c7 |