Skip to content

Python Non-Session-Manager client. Import for easy and convenient NSM support in your Python application

Notifications You must be signed in to change notification settings

wargreen/pynsmclient

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro

Based on https://github.com/hilbrichtsoftware/pynsmclient Yes, it should be deprecated, but the OSC server implementation in pynsm2 isn't complete. This version will be integrate nonOSMnat (https://github.com/wargreen/nonOSCnat).

Python nsmclient Version 0.2 - Jan 2017 Authors: Nils Gey [email protected] http://www.nilsgey.de, Wargreen [email protected] Non Session Manager Author: Jonathan Moore Liles [email protected] http://non.tuxfamily.org/nsm/

Purpose

Python nsmclient is a convenience wrapper around liblo and NSM-OSC syntax to implement Non Session support easily in your own Python programs. You don't need any OSC knowledge to use this package.

Instructions

Copy nsmclient.py into your source directory or use python3 setup.py install to install nsmclient.py system-wide. Both variants are equally good. Just copying it to your own source tree does not require your users to install nsmclient themselves. Since this is a really small lib I recommend this approach.

In your own program: import nsmclient

Then call nsmclient.init() with the correct parameters. Please see example.py, a well documented, minimal and working example. Only 30 lines of code.

The important part is that your application follows the NSM rules (see example.py documentation and nsm website http://non.tuxfamily.org/nsm/API.html)

Dependencies

[License] This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

Python Non-Session-Manager client. Import for easy and convenient NSM support in your Python application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%