Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(1)  |  Derive(2)  |  Import(3)

src/a/i/airpnp-HEAD/airpnp/bridge.py   airpnp(Download)
from device_discovery import DeviceDiscoveryService
from airplayserver import IAirPlayServer
from AirPlayService import AirPlayService
from upnp import parse_duration, to_duration
from config import config
        cpoint = AVControlPoint(device, self.photoweb, self.interface[0])
        devid = create_device_id(device.UDN)
        avc = AirPlayService(cpoint, device.friendlyName, host=self.interface[0], port=self._find_port(), index=self.interface[1], device_id=devid)
        avc.setName(device.UDN)
        avc.setServiceParent(self)

src/t/o/totem-plugin-airplay-HEAD/airplay.py   totem-plugin-airplay(Download)
import platform
import time
from AirPlayService import AirPlayService
 
class AirPlay (GObject.Object, Peas.Activatable):
class AirPlayTotemPlayer(AirPlayService):
	def __init__(self, totem, name=None, host="0.0.0.0", port=22555):
		self.location = None
		self.totem = totem
		AirPlayService.__init__(self, name, host, port)

src/v/i/videoAirPi-HEAD/airplay.py   videoAirPi(Download)
import socket, fcntl, struct
import time
from AirPlayService import AirPlayService
from pyomxplayer import OMXPlayer
 
class VideoAirPlayPlayer(AirPlayService):
	def __init__(self, videoAirPlay, name=None, host="0.0.0.0", port=22555):
		self.location = None
		self.videoAirPlay = videoAirPlay
		AirPlayService.__init__(self, name, host, port)