Skip to main content

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 files for rebecca.todict_bpmappers 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rebecca.todict_bpmappers 0.1
File Size Uploaded
rebecca.todict_bpmappers-0.1.tar.gz 3.0 kB Details

Release files / rebecca.todict_bpmappers-0.1.tar.gz

Download URL rebecca.todict_bpmappers-0.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5f5a2ec34968b35287034acc80a55995da38fd937e88c8a8e2ce9e08b374b560
BLAKE2b-256 checksum
How to use checksums
94e1445d3b9fc94b4d2c0912528d7d340cbae85f022398c0ee703059e4a45586
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page