Skip to content

Instantly share code, notes, and snippets.

@lupalberto
lupalberto / vaods9usage.py
Created April 9, 2011 00:54
An example on how to use vaods9.py
# This example shows the basic usage of the vaods9 module
# first of all, let's import the vaods9 module.
import vaods9
# let's get an instance of a new ds9 client (if an hub is not running, a new one is started).
client = vaods9.Client()
@lupalberto
lupalberto / vaods9.py
Created April 6, 2011 23:00
A Python API for ds9 using SAMP and SAMPy
import sampy
import urlparse
import os
def ds9echo(response):
print response
class Client(sampy.SAMPIntegratedClient):
def __init__(self,