Snippets - PySnippets Client Module

Import any snippet from PySnippets with just one line in your python code (well, two, if you count importing this module)


import snippets
snippet_name = snippets.get('snippet_name')

Now your module is running and ready to use.
Options to get are:
  • version - Which version of the snippet to import. Leave blank to get the latest.
  • verbose (True/False) - should get print out messages before downloading/updating snippets
  • check_updates (True/False) - should get periodically check for updates for this snippet. Should probably be used in conjunction with version.


Download it here (v 0.1)

To install it, just put it somewhere with a pythonpath (like, your site-packages).
Yes, I know, I'll make an installer soon.


Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License