{ "info": { "author": "Sean Watson", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [], "description": "notehub\n=======\n\nInstallation\n------------\n\nTo install with pip run:\n\n pip install notehub\n\nOr you can download the source and run:\n\n python setup.py install\n\n*Running these commands may require administrator privledges.*\n\nGetting Started\n---------------\n\nA basic python wrapper for the Notehub.org API that simplifies much of the work\nneeded to make a call. The wrapper handles the work of adding necessary\nparameters, hashing passwords, generating signatures, encoding the data and\nchecking response codes.\n\n**You will need a PID and PSK from http://notehub.org/api**\n**in order to use the create\\_note and update\\_note methods.**\n\nExample use:\n\n from notehub import Notehub\n from notehub import NotehubError\n\n PID = 'example_pid' # Replace with your PID\n PSK = 'example_psk' # Replace with your PSK\n\n nh = Notehub(PID, PSK)\n\n # get_note\n try:\n note = nh.get_note('2014/1/26/test')\n print(note)\n except NotehubError as e:\n print(e)\n\n # create_note\n note_text = 'Test note 123.'\n try:\n note = nh.create_note(note_text)\n print(note)\n except NotehubError as e:\n print(e)\n\n # create_note with password\n note_text = 'Test note 123.'\n password = 'abc123'\n try:\n note = nh.create_note(note_text, password=password)\n print(note)\n except NotehubError as e:\n print(e)\n\n # create_note with specific theme and fonts\n note_text = 'Test note 123.'\n theme = 'solarized-light'\n text_font = 'Alegreya Sans SC'\n header_font = 'Chau Philomene One'\n try:\n note = nh.create_note(note_text, theme=theme, text_font=text_font,\n header_font=header_font)\n print(note)\n except NotehubError as e:\n print(e)\n\n # update_note\n note_id = '2014/1/26/test-note-123-1'\n new_note_text = 'Test note 123.'\n password = 'abc123'\n try:\n note = nh.update_note(note_id, new_note_text, password)\n print(note)\n except NotehubError as e:\n print(e)\n\nLicense\n-------\n\nThe MIT License (MIT)\n\nCopyright (c) 2014 Sean Watson\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", "description_content_type": null, "docs_url": "https://pythonhosted.org/notehub/", "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/seanwatson/notehub", "keywords": "notehub", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "notehub", "package_url": "https://pypi.org/project/notehub/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/notehub/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/seanwatson/notehub" }, "release_url": "https://pypi.org/project/notehub/0.4/", "requires_dist": null, "requires_python": null, "summary": "A simple wrapper for the Notehub.org API.", "version": "0.4" }, "last_serial": 1002460, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "5eb7a78969312a29e2bcc9cd135dff26", "sha256": "768008e61084f5c145ef453f8825d71e06562cd76625b595b3ae84a392224375" }, "downloads": -1, "filename": "notehub-0.1.tar.gz", "has_sig": false, "md5_digest": "5eb7a78969312a29e2bcc9cd135dff26", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4256, "upload_time": "2014-01-19T01:25:18", "url": "https://files.pythonhosted.org/packages/86/c6/790cccdb9cdc3343d3cd39443dee9818bcbe7888167f6d413ac03fb94a5b/notehub-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "a107880c9a1a9ab702409bea53b8c56d", "sha256": "b9f9500fe5c5ad00d577573512cab7d8c25a56e61c7a69712a8b66bb25d1759c" }, "downloads": -1, "filename": "notehub-0.2.tar.gz", "has_sig": false, "md5_digest": "a107880c9a1a9ab702409bea53b8c56d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4387, "upload_time": "2014-01-19T20:48:20", "url": "https://files.pythonhosted.org/packages/68/f0/221b29ba4474b19c1a0a179331c7440fcd4135cc4100962570a7746b2dbf/notehub-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "1b97ea9f0277979174170c18dc07e0c5", "sha256": "fc7b8302b84317e872da5d6ddc9e1d57e43f6609fb211c74ecb2f5e2cb70d869" }, "downloads": -1, "filename": "notehub-0.3.tar.gz", "has_sig": false, "md5_digest": "1b97ea9f0277979174170c18dc07e0c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4609, "upload_time": "2014-01-26T19:35:46", "url": "https://files.pythonhosted.org/packages/ff/a3/3e89921bab470ba064f81fac5a1f125456aa5062f35b0209d582eba5201e/notehub-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "0db0a36a52ef2e8cfe066ef8aa266004", "sha256": "3dcac4eddb7dbd48f0a2cdd5879adea09b3a98710428592728076329510d66dd" }, "downloads": -1, "filename": "notehub-0.4.tar.gz", "has_sig": false, "md5_digest": "0db0a36a52ef2e8cfe066ef8aa266004", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4609, "upload_time": "2014-02-17T18:11:59", "url": "https://files.pythonhosted.org/packages/e9/c7/d96df9b323ee24ca149b41ef39637b7c73df648c07a81634f86612fd8f2a/notehub-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0db0a36a52ef2e8cfe066ef8aa266004", "sha256": "3dcac4eddb7dbd48f0a2cdd5879adea09b3a98710428592728076329510d66dd" }, "downloads": -1, "filename": "notehub-0.4.tar.gz", "has_sig": false, "md5_digest": "0db0a36a52ef2e8cfe066ef8aa266004", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4609, "upload_time": "2014-02-17T18:11:59", "url": "https://files.pythonhosted.org/packages/e9/c7/d96df9b323ee24ca149b41ef39637b7c73df648c07a81634f86612fd8f2a/notehub-0.4.tar.gz" } ] }