A flexible, searchable registry that allows you to attach text tags to almost any arbitrary Python object.
Project description
obj_tag_group
A flexible, searchable registry that allows you to attach text tags to almost any arbitrary Python object.
Objects are indexed by their serialized content, allowing for quick filtering of items using regular expression searches on their associated tags.
- For this reason, this package will fail to work on objects that cannot be serialized (such as lambda functions).
- The tags work by creating a full copy of the object in memory, and will not reflect any future changes made to the object/s.
Note: This code is very rough, unoptimized, and prone to errors. Use at your own risk.
Features
- Add / remove tags to most Python objects, even unhashable ones such as dictionaries and lists, as well as custom classes
- Filter and retrieve objects using regular expression queries
- Save the entire tagged registry to disk and load it back later.
Installation
pip install obj_tag_group
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
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
File details
Details for the file obj_tag_group-0.1.0.tar.gz.
File metadata
- Download URL: obj_tag_group-0.1.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
289ce0403c2dab20f7e599ed33a56be5bdf03cb50f8b5516a867d9b40d1fe7e9
|
|
| MD5 |
9619621060b1a289dbefef9695aeb933
|
|
| BLAKE2b-256 |
60656f53e302dce19103866a74a0235df5f568bada2e709bdd49177cad82c2d0
|
File details
Details for the file obj_tag_group-0.1.0-py3-none-any.whl.
File metadata
- Download URL: obj_tag_group-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3ac927029248f94f636c4b3f9f606032d78cf44fc56a632e58d4237e9092c99
|
|
| MD5 |
98b12113e8e24fa5b62dba13ca2331c5
|
|
| BLAKE2b-256 |
136fd8e71b6612c2ae67be4bdc282241cee4922f44c7762cc302bd0bfb8e06f0
|