Skip to main content

Map Object

A python implementation of the map-obj function

Installation

pip install map_object

Usage

from map_object import mapObject

def mapper (key, value, source):
  return [value, ley]

newObject = mapObject({'foo'='bar'}, mapper);
# => {bar: 'foo'}

API

mapObject(source, mapper)

source

Type: Object

Source object to copy properties from.

mapper

Type: Function

Mapping function.

  • It has signature mapper(sourceKey, sourceValue, source)

  • It must return a two item array: [targetKey, targetValue].

License

MIT

Metadata

Release files for map-object 1.1.1

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

Built distributions (wheels)

Table of built distributions (wheels) for map-object 1.1.1
File Interpreter ABI Platform Actions
map_object-1.1.1-py3-none-any.whl Python 3 none any Details for map_object-1.1.1-py3-none-any.whl
map_object-1.1.1-py2-none-any.whl Python 2 none any Details for map_object-1.1.1-py2-none-any.whl

Total release size: 6.2 kB

Release files / map_object-1.1.1-py3-none-any.whl

Download URL map_object-1.1.1-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
19de036aa5b9886697d6b4e46848c96726d9a43646097629823353dcc2eb4a80
BLAKE2b-256 checksum
How to use checksums
a5f68340776bf379c91f42225c950f67e7ae0cd54bfc8ff52c342df00c8725ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / map_object-1.1.1-py2-none-any.whl

Download URL map_object-1.1.1-py2-none-any.whl
Size 3.1 kB
Tags Python 2
SHA-256 checksum
How to use checksums
5600282808ac0f879e0fd8037d265f6bf7b39639e58c51628d9cb70244b95ded
BLAKE2b-256 checksum
How to use checksums
4faea6d832389da209be801b0855001cabc8383fe1c876c109d761624298e502
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for map-object 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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