Metadata-Version: 2.4
Name: obj_tag_group
Version: 0.1.0
Summary: A flexible, searchable registry that allows you to attach text tags to almost any arbitrary Python object.
License-Expression: MIT
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# 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

```bash
pip install obj_tag_group
```
