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

All Samples(7)  |  Call(3)  |  Derive(0)  |  Import(4)

src/a/s/astral-HEAD/astral/models/ticket.py   astral(Download)
from astral.conf import settings
from astral.models.base import BaseEntityMixin
from astral.models.event import Event
from astral.models.node import Node
 
    def emit_new_ticket_event(self):
        Event(message=json.dumps({'type': "ticket", 'data': self.to_dict()}))
 
    @after_insert
    @after_update

src/a/s/astral-HEAD/astral/models/stream.py   astral(Download)
from astral.models.ticket import TUNNEL_QUEUE
from astral.models.base import BaseEntityMixin, slugify
from astral.models.event import Event
 
import logging
    def emit_new_stream_event(self):
        Event(message=json.dumps({'type': "stream", 'data': self.to_dict()}))
 
    @after_insert
    @after_update

src/a/s/astral-HEAD/astral/models/node.py   astral(Download)
from astral.exceptions import RequestError
from astral.models.base import BaseEntityMixin
from astral.models.event import Event
from astral.api.client import NodeAPI, RemoteIP
from astral.conf import settings
    def emit_new_node_event(self):
        Event(message=json.dumps({'type': "node", 'data': self.to_dict()}))
 
    def __repr__(self):
        return u'<Node %s: %s:%s>' % (self.uuid, self.ip_address, self.port)

src/a/s/astral-HEAD/astral/models/__init__.py   astral(Download)
from astral.models.stream import Stream
from astral.models.ticket import Ticket
from astral.models.event import Event
 
metadata.bind = create_engine("sqlite:///%s?check_same_thread=False" %