0
I Use This!
Activity Not Available

Project Summary

pySnarlNetLibLibrary written in pure python that uses socket to send commands to Snarl.

Requirements:

Python 2.5+ (should work under 2.4)

Current commands:

register unregister addclass notification

UsageTo use it in your code:

import snarlnet

snarl = snarlnet.SnarlNet(ip="127.0.0.1", port=9887)
snarl.notify("Some title", "Some text")Methods:

__init__(self, *args, **argv)
Create object of class SnarlNet
IP and port can be passed as 'ip' and 'port' parameters
Ie. snarl = SnarlNet(ip="192.168.1.4", port=9887)
When no parameters are passed than ip='127.0.0.1' and port=9887 are used

addclass(self, className, classTitle='', **argv)
Add class with provided name (className).
If no classTitle is provided than sets classTitle to className
If no appName is provided than use self.lastAppName.
If self.lastAppName is empty than do nothing

notify(self, title, text, **argv)
Send message with given title and text.
If no appName or appClass is provided than uses
self.lastAppName and/or self.lastClassName

register(self, appName)
Register application by appName

unregister(self, appName='')
Unregister application by appName. If appName is empty then tries to
unregister application by self.lastAppName (last registred application).
If self.lastAppName is empty than do nothingsnarlnet.py can be run from command line.

Usage:

Usage: snarlnet.py -a ACTION [options] args

Options:
-h, --help show this help message and exit
-i HOST, --ipaddr=HOST
IP address of the machine with snarl installed
(default: 127.0.0.1)
-p PORT, --port=PORT Port on with Snarl is listening (default: 9887)
-n APPNAME, --appname=APPNAME
Application name
-c CLASSNAME, --classname=CLASSNAME
Class name
-a ACTION, --action=ACTION
Action to take (register, unregister, addclass,
notify)
-t TIMEOUT, --timeout=TIMEOUT
How long snarl should display messageexample:

snarlpy.py -a notify Title "Some message" -t 20

Tags

net pysnarlnetlib python snarl socket

In a Nutshell, pysnarlnetlib...

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

MIT License
Permitted

Commercial Use

Modify

Distribute

Sub-License

Private Use

Forbidden

Hold Liable

Required

Include Copyright

Include License

These details are provided for information only. No information here is legal advice and should not be used as such.

All Licenses

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    nearly 1 in 3 companies have no process for identifying, tracking, or remediating known open source vulnerabilities
  • ...
    data presented on the Open Hub is available through our API
  • ...
    use of OSS increased in 65% of companies in 2016
  • ...
    check out hot projects on the Open Hub

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

Community Rating

Be the first to rate this project
Click to add your rating
   Spinner
Review this Project!
Sample ohloh analysis