Created: 2011-07-11 16:27
Updated: 2017-03-30 20:44

README.md

About

pySNP was created to help me learn python and support Snarl at the same time. It communicates with Snarl via SNP 2.0.

Actions:

  • snRegister
    • app-sig (Required)
    • title (Required)
    • icon (Optional)
    • password (Optional)
  • snNotify
    • app-sig (Required)
    • title (Required)
    • text (Optional)
    • icon (Optional)
    • password (Optional)
    • id (Optional)
    • uid (Optional)
    • timeout (Optional)
    • priority (Optional)
  • snAddClass
    • app-sig (Required)
    • id (Required)
    • name (Required)
    • title (Optional)
    • text (Optional)
    • icon (Optional)
    • password (Optional)
    • enabled (Optional)
  • snVersion
  • snUnregister
    • app-sig (Required)
    • password (Optional)

How to use:

Start by importing pySNP.

Example:

import pySNP
snarl = pySNP.pySNP()

Anything in the list above that is marked "Required", the value of it can go directly inside quotations inside the function call. They NEED to be in the order listed above.

Example:

snarl.snRegister('requiredSIG', 'requiredTITLE')

Anything in the list above that is marked "Optional", the value of it goes after the paramater and equal (=) sign in quoatations.

Example:

snarl.snRegister('requiredSIG', 'requiredTITLE', password='optionalPASS', icon='optionalICON')

TODO:

  • add more actions
  • additional tweaks to make it better
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more