Skip to main content

map_as_object

Sometimes, you want to define an oject without an class. Thus this package allows you to define an object via a map of its attributes:

m = as_object({'a': 1})
assert m.a == 1

You can even assign lambdas in that way.

Metadata

Release files for map-as-object 0.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 map-as-object 0.0.1
File Size Uploaded
map-as-object-0.0.1.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for map-as-object 0.0.1
File Interpreter ABI Platform
map_as_object-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.5 kB

Release files / map-as-object-0.0.1.tar.gz

Download URL map-as-object-0.0.1.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
02400a18cc5ba55105cdb386aa571bb5d09295daadd77cf6d958aa78624c07d8
BLAKE2b-256 checksum
How to use checksums
e1d998950da53de7ec504fb2d7a9b68e60a5e13d20f83d8edcbe289d44e4a814
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

Release files / map_as_object-0.0.1-py3-none-any.whl

Download URL map_as_object-0.0.1-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a810b4b1395407b75b0dddae52f0308ba0c8c76c71ea1f35dd16bda342657ef
BLAKE2b-256 checksum
How to use checksums
5bbecd76732b699bab2f354d4171b98a8b2d9f996afa5f5fe3a6e2faabc167a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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