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_session

db = Database()

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

class MyService(object):
    name = "my_service"

    pony_session = PonySession(db)

    def hello(self, name):
        with self.pony_session:

    def world(self, name):


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.

Files for nameko-pony, version 1.2.5
Filename, size File type Python version Upload date Hashes
Filename, size nameko_pony-1.2.5-py2-none-any.whl (2.5 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page