Skip to main content

Query-like access to nested attributes

Project description

AttrMagic

Hatch project uv Ruff

Inspired by Django's query structure.

foo = bar.filter(obj__name__in=["john", "smith"])

returns all objects in bar that have an object obj in them with an attribute name in the list.

Testing

Generate HTML Report

pytest --cov=attrmagic --cov-report html tests/

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

attrmagic-0.2.0.tar.gz (56.7 kB view details)

Uploaded Source

Built Distribution

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

attrmagic-0.2.0-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file attrmagic-0.2.0.tar.gz.

File metadata

  • Download URL: attrmagic-0.2.0.tar.gz
  • Upload date:
  • Size: 56.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"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 attrmagic-0.2.0.tar.gz
Algorithm Hash digest
SHA256 737be1351ccd2b2c841b9aa8b106dab87d156cba5b10e3c433621c61070f3bf8
MD5 e3abbfaffa11867ff2f89079a487e874
BLAKE2b-256 1fab76a21f8369bf906c54a75420706f8a66405d26493b59f59a212fe198f96a

See more details on using hashes here.

File details

Details for the file attrmagic-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: attrmagic-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"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 attrmagic-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1aac5641ba8400f811395ce9cc7401a95544e6dd768a85bbf0ba0e05ee832c2b
MD5 61d4f7829dcbd476e8b37d69b52b7f85
BLAKE2b-256 2d0052f9fdb70f673e6219aafd247771c6c855307906afe3ffc7d3cdd8dff623

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