Skip to main content

A small module for mapping between object types.

Project description

A small module for mapping between object types.

Installation

objectmapper requires Python >= 3.6 because it relies on modern type annotations.

pip install objectmapper

Example

>>> import objectmapper
>>> mapper = objectmapper.ObjectMapper()
>>> def int_to_str(i: int) -> str:
...     return str(i)
>>> mapper.create_map(int, str, int_to_str)
>>> mapper.map(42, str)
'42'

Project details


Download files

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

Source Distribution

objectmapper-0.0.6.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

objectmapper-0.0.6-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file objectmapper-0.0.6.tar.gz.

File metadata

  • Download URL: objectmapper-0.0.6.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for objectmapper-0.0.6.tar.gz
Algorithm Hash digest
SHA256 b013a48c4c89fd6b01bfb2ca8cb240bb0fb6a8fb6c94e3c228ef28898ab56fa6
MD5 065d002321b2c1cb9be88a31ef1948e1
BLAKE2b-256 2d8890075d5cb786bd0ddb170619073386a206539cd5d27de8ecec0cb49df3be

See more details on using hashes here.

Provenance

File details

Details for the file objectmapper-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: objectmapper-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for objectmapper-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 74497ceb082d2dae8f62f050248948278c83251106b843d8b733eba072dde784
MD5 b3972686a9033f3ea6b3b763e3a3429c
BLAKE2b-256 9d5848dd7040ab1f7da907cb39ba9722fe899a4c499735232785abc383593c9a

See more details on using hashes here.

Provenance

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