Skip to main content

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

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

rebecca.todict_bpmappers-0.1.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file rebecca.todict_bpmappers-0.1.tar.gz.

File metadata

File hashes

Hashes for rebecca.todict_bpmappers-0.1.tar.gz
Algorithm Hash digest
SHA256 5f5a2ec34968b35287034acc80a55995da38fd937e88c8a8e2ce9e08b374b560
MD5 6d07b85c0a594a4005360d7346e9768f
BLAKE2b-256 94e1445d3b9fc94b4d2c0912528d7d340cbae85f022398c0ee703059e4a45586

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page