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.2.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.2-py3-none-any.whl
(12.3 kB
view details)
File details
Details for the file attrmagic-0.2.2.tar.gz.
File metadata
- Download URL: attrmagic-0.2.2.tar.gz
- Upload date:
- Size: 55.7 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 |
d961093e4bd6a32fb5c03b8d66361d2244854ee78c751ba0cbff7c0ca4471eb4
|
|
| MD5 |
3e2959c22d2cf0f32da9026e45ebfa63
|
|
| BLAKE2b-256 |
4459e23c7a5fb31fd52ed1a8751e2a3dfd6e25840dee4978900ae8254a08e900
|
File details
Details for the file attrmagic-0.2.2-py3-none-any.whl.
File metadata
- Download URL: attrmagic-0.2.2-py3-none-any.whl
- Upload date:
- Size: 12.3 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 |
3dad80e8ec58cc5896152d89354be87a77f2211490da84d5915ee4abfeffcc9d
|
|
| MD5 |
8487a87c79098ab80c5860b5d5c1fd8f
|
|
| BLAKE2b-256 |
d02de5ea30cd86e8275df5583c3ba2bd5a478728b22853f2ebaed7442e63d494
|