Did I find the right examples for you? yes no

All Samples(3)  |  Call(0)  |  Derive(0)  |  Import(3)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/s/l/sleipnir.bank-0.0.90/src/sleipnir/bank/loanbroker.py   sleipnir.bank(Download)
                routes.LOAN_REQUEST_QUEUE,
                Consumer,
                connection=routes.CONNECTION),
            ChannelEnd.create(
                routes.LOAN_REPLY_EXCHANGE,
                Producer,
                connection=routes.CONNECTION),
 
        # start connection
        connection = ConnectionFactory.get_instance().create(routes.CONNECTION)
        connection.loop.start()
 

src/s/l/sleipnir.bank-0.0.90/src/sleipnir/bank/bank.py   sleipnir.bank(Download)
# local submodule requirements
from routes import SCORING_REQUEST_QUEUE, BANK_GW_CONTROL_EXCHANGE
from routes import DEFAULT_EXCHANGE, CONNECTION
from messages import BankQuoteReply, BankQuoteRequest
 
 
            # Setup control messages
            control = BankControl(BANK_GW_CONTROL_EXCHANGE, CONNECTION, bank)
            control.watch(state=ChannelTargetState.RESUMED, first=True)
            #FIXME: We can only add an state watch
            #control.watch(state=ChannelTargetState.SUSPENDED, first=True)
 
            # create a Request reply pattern
            replier = Replier(bank.queue, None, CONNECTION, bank)
 
            # create route builder
            connection = ConnectionFactory.get_instance().create(CONNECTION)
            builder = connection.routes(Builder, force=True)
            builder("direct://%s/%s" % (DEFAULT_EXCHANGE, bank.queue))

src/s/l/sleipnir.bank-0.0.90/src/sleipnir/bank/client.py   sleipnir.bank(Download)
 
# local submodule requirements
from routes import CLIENT_REQUEST_EXCHANGE, CLIENT_REPLY_QUEUE, CONNECTION
from messages import LoanQuoteRequest
 
 
            # start connection
            connection = ConnectionFactory.get_instance().create(CONNECTION)
            connection.loop.start()
 

src/s/l/sleipnir.bank-0.0.90/src/sleipnir/bank/scoring.py   sleipnir.bank(Download)
 
# local submodule requirements
from routes import SCORING_REQUEST_QUEUE, CONNECTION
from messages import ScoringRequest, ScoringResponse
 
 
        # start connection
        connection = ConnectionFactory.get_instance().create(CONNECTION)
        connection.loop.start()
 

src/s/l/sleipnir.bank-0.0.90/src/sleipnir/bank/setup.py   sleipnir.bank(Download)
 
    # create a connection
    connect = ConnectionFactory.get_instance().create(routes.CONNECTION)
    # create a builder and routes
    builder = connect.routes(BankBuilder, force=True)