Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bpmappers

Package Overview
Dependencies
Maintainers
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bpmappers

bpmappers is a Python moudle that maps Python dictionary values and object properties to different dictionary.

  • 1.3
  • PyPI
  • Socket score

Maintainers
5

========= bpmappers

|build-status| |pypi| |docs|

bpmappers is a Python moudle that maps Python dictionary values and object properties to different dictionary.

Install

Install using pip.

::

$ pip install bpmappers

Usage

An example of mapping an instance of the Person class to a dictionary:

.. code-block:: pycon

class Person: ... def init(self, name, age): ... self.name = name ... self.age = age ... def repr(self): ... return "".format(self.name, self.age) ... p = Person("Spam", 25) p

from bpmappers import Mapper, RawField class PersonMapper(Mapper):

... mapped_name = RawField('name') ... mapped_age = RawField('age') ...

PersonMapper(p).as_dict() OrderedDict([('mapped_name', 'Spam'), ('mapped_age', 25)])

Requirements

  • Target Python version is 3.6, 3.7, 3.8, 3.9
  • Django 2.2, 3.0, 3.1 (When use Django support)

License

This software is licensed under the MIT License.

Documentation

The latest documentation is hosted at Read The Docs.

https://bpmappers.readthedocs.io/ja/stable/

Develop

Author

  • BeProud, Inc

Maintainer

.. |build-status| image:: https://github.com/beproud/bpmappers/actions/workflows/tests.yml/badge.svg :target: https://github.com/beproud/bpmappers/actions .. |docs| image:: https://readthedocs.org/projects/bpmappers/badge/?version=stable :target: https://bpmappers.readthedocs.io/ja/stable/ .. |pypi| image:: https://badge.fury.io/py/bpmappers.svg :target: http://badge.fury.io/py/bpmappers

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc