Skip to main content

Pony dependency for nameko services

Project description


Pony dependency for nameko services


pip install nameko-pony


from nameko.rpc import rpc
from pony.orm import Database, Required
from nameko_pony import PonySession

db = Database()

class Person(db.Entity):
    name = Required(str)

class FooService(object):
    name = 'foo_service'

    db_session = PonySession(db)

    def hello(self):

    def world(self):
        with self.db_session:
            return [ for p in]


AMQP_URI: 'pyamqp://guest:guest@localhost'
DATABASE_URI: 'sqlite:///:memory:'
# DATABASE_URI: 'mysql://usr:pwd@localhost/db_name'

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
nameko_pony-1.3.1-py2-none-any.whl (2.5 kB) Copy SHA256 hash SHA256 Wheel py2 (4.3 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page