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.1.tar.gz
(55.7 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.1-py3-none-any.whl
(12.3 kB
view details)
File details
Details for the file attrmagic-0.2.1.tar.gz.
File metadata
- Download URL: attrmagic-0.2.1.tar.gz
- Upload date:
- Size: 55.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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 |
2b321ef7d41e711372c45cbe72e7a0c9873301dd165fc47260d5d675f89bd2c9
|
|
| MD5 |
f66427cdb34734496a6f835aadcc8e96
|
|
| BLAKE2b-256 |
275d509272eff4413995d3137575d9105f41268913b330be26ba265c88323aae
|
File details
Details for the file attrmagic-0.2.1-py3-none-any.whl.
File metadata
- Download URL: attrmagic-0.2.1-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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 |
a0f8351cba2eaf25b53ad22676a9facd95f36799465fed4cbb6039e178ab8b55
|
|
| MD5 |
b673d4963b8df171053fc3e21321622c
|
|
| BLAKE2b-256 |
ac9f2b9500bd90f45535044e74f398adeacbc32c4333a5803ec811ccf06397b1
|