Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

implementation for rebecca.todict using bpmappers

Project Description

rebecca.todict_bpmappers

rebecca.todict_bpmappers is implementation for rebecca.todict using bpmappers

INSTALL

Install using pip or easy_install.:

$ pip install rebecca.todict_bpmappers
$ easy_install rebecca.todict_bpmappers

USAGE

rebecca.todict_bpmappers has include hook.:

config.include('rebecca.todict_bpmappers')

This hook will include rebecca.todict too.

bpmapper decorator register todict adapter implemented by bpmappers.

from bpmappers import Mapper, RawField
from rebecca.todict_bpmappers import bpmapper

@bpmapper('dummy.Person', name="p1")
class PersonMapper(Mapper):
    username = RawField('name')
    num = RawField('value')

To use that mapper, call todict API of rebecca.todict:

d = todict(request, person, name="p1")

Contributors

  • Atsushi Odagiri, Original Author

Changelog

0.1 (2013-02-16)

  • first release
Release History

Release History

This version
History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
rebecca.todict_bpmappers-0.1.tar.gz (3.0 kB) Copy SHA256 Checksum SHA256 Source Feb 16, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting