Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Connect to SNP (Snarl Network Protocol) 2.0 with python. Feel free to help out :)
Python
branch: master

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
Something went wrong with that request. Please try again.