Query-like access to nested attributes
Project description
AttrMagic
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.3.tar.gz
(47.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
attrmagic-0.2.3-py3-none-any.whl
(12.0 kB
view details)
File details
Details for the file attrmagic-0.2.3.tar.gz.
File metadata
- Download URL: attrmagic-0.2.3.tar.gz
- Upload date:
- Size: 47.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7a96a16f072ffd9e1b88553e2c1238583436256013a167b1154d0b5f6d5bcf8
|
|
| MD5 |
87c90d45965f1f02187c45f734f6b75f
|
|
| BLAKE2b-256 |
d5b853ee1cc412e147b5ae11440d2463aeabe719f69af44c25fa09ad79bd5f4c
|
File details
Details for the file attrmagic-0.2.3-py3-none-any.whl.
File metadata
- Download URL: attrmagic-0.2.3-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64378f96665f01aecc175d067a692d9b3aa8931897c71fcdb463446a670d0ce3
|
|
| MD5 |
1de6244cd3b8186b626df57fb13214f2
|
|
| BLAKE2b-256 |
83e0a7a5d27d0f0f5caa9877ede4bbeccde6ae4ba1bfc0f74566e0d17d676bc0
|