Skip to content

millenniumhand/simplenote.py

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simplenote.py

Introduction

simplenote.py is a python library for the simplenote.com web service.

Installation

Install via pip:

pip install simplenote

Or if you must:

easy_install simplenote

Usage

simplenote.py can be imported into any python module:

from simplenote import Simplenote
simplenote = Simplenote(user, password)

The object then provides the following API methods:

simplenote.get_note_list() # Supports optional "YYYY-MM-DD" date string as argument to return only notes modified since this date
simplenote.get_note(note_id) # note id is value of key `key` in note dict as returned by get_note_list
content = "Note added using python client"
simplenote.add_note(content)

simplenote.update_note(note)
simplenote.trash_note(note_id)
simplenote.delete_note(note_id)

A note object is a dictionary with at least a content property, containing the note text. The update_note method needs a note object which also has a key property.

Meta

Contribute

If you want to contribute:

  • Fork the project.
  • Make your feature addition or bug fix based on develop.
  • Add tests for it. This is important so I don’t break it in a future version unintentionally.
  • Commit, do not mess with version
  • Send me a pull request. Bonus points for topic branches.

About

Python API wrapper for the Simplenote web service

Resources

License

Stars

Watchers

Forks

Packages

No packages published