Skip to main content

glom, but not as slow

Project description

gloomy

glom, but not as slow

An utility for retrieving values from deeply nested object attributes, mapping keys, sequence indexes, or any combination of them.

Not meant as a drop in replacement for glom, only basic functionality is implemented.
A good use-case would be to improve existing codebases in which the glom pattern is commonly used for convenience, as it can significantly affect performance.

Planned features

🏗️ assign utility
🏗️ Path object

Installation

uv pip install gloomy

Usage

from gloomy import gloom

assert gloom({"a": {"b": {"c": [123]}}}, "a.b.c.0") == 123

# Or with a default in case the path is invalid
assert gloom({}, "a.b.c", default=None) is None

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

gloomy-0.3.0a3.tar.gz (36.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gloomy-0.3.0a3-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file gloomy-0.3.0a3.tar.gz.

File metadata

  • Download URL: gloomy-0.3.0a3.tar.gz
  • Upload date:
  • Size: 36.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for gloomy-0.3.0a3.tar.gz
Algorithm Hash digest
SHA256 e7ba84a35f338f9477b88daa4a34dcc4e9f8743474a3318d29e4bbf05d450c0d
MD5 9fe26db7cf6a3dcff4e10a3005bdccf2
BLAKE2b-256 c7c15773f19557d196543f79ee4bea0b3df1eb62b4b5c60f25650978cf6ed6a6

See more details on using hashes here.

File details

Details for the file gloomy-0.3.0a3-py3-none-any.whl.

File metadata

  • Download URL: gloomy-0.3.0a3-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for gloomy-0.3.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 6958d7b1f56f2c3353ad84cae45a26567cacfcd118b8ecd8e2c4dd077d37fde9
MD5 b4dca106268448f205871700e43e98c0
BLAKE2b-256 af0cf310e3a133a7b7af1b4c186c851795bd43539fa941a497fd898c6a454e20

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page