<h1 align="center">
<a href="https://i.ibb.co/MnW0Y8M/360-F-133480376-PWls-Z1-Bdr2-SVn-TRpb8j-Ct-Y59-Cy-EBdo-Ut-modified.png"><img src="https://i.ibb.co/MnW0Y8M/360-F-133480376-PWls-Z1-Bdr2-SVn-TRpb8j-Ct-Y59-Cy-EBdo-Ut-modified.png" alt="unionizer" border="0" width="145"></a>
</h1>
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/aws/mit-0/blob/master/MIT-0)
[![Python Versions](https://img.shields.io/badge/python-3.7%20|%203.8%20|%203.9%20|%203.10%20|%203.11%20|%203.12%20-blue)](https://www.python.org/downloads/)
```
unionizer: V1.8.5
Unionizer helps developers pair objects together.
```
## Installing
```shell
# Linux/macOS
python3 pip install -U unionizer
# Windows
py -3 -m pip install -U unionizer
```
# Logic
```python
unionizer.assign(1, 2) # 2 isinstance of 1 and 5
unionizer.assign(1, 5) # 5 is instance of 1 and 2
unionizer.assign(5, 7) # 7 is only instance of 5, not 1 or 2
# Set:
1, (2, 5)
# Subset:
5, 7
# Architecture:
1 (
2,
5 (
7
)
)
```
## Local Tied Memory / Pairs
```python
bond: unionizer.Bond = unionizer.Bond(size=10) # Limit bond memory to 10.
bond.assign(object_1, object_2) # Tie object_1 and object_2 together.
# bond.delete(object_1, object_2) # Untie object_1 and object_2 from
bond.filter(object_2) # Filter all pairs that are tied to object_2.
bond.groups() # Return all pairs.
bond.isinstance(object_1, object_2) # Check if object_1 and object_2 are paired.
```
## Global Tied Memory / Pairs
```python
unionizer.core # (VARIABLE of backend core class object) Stored memory with no size limit unless changed
# Changing core params
# unionizer.core(unique=True, size=10) # Limit core memory to 10 and make all keys be instance variables.
# unionizer.set(unique=True, size=10) # Limit core memory to 10 and make all keys be instance variables.
unionizer.assign(object_1, object_2) # Tie object_1 and object_2 together.
unionizer.get(object_1) # Get object_1's tied object.
unionizer.delete(object_1) # Untie object_1 from its tied object.
unionizer.filter(object_2) # Filter all pairs that are tied to object_2.
# Properties
# unionizer.vars # Return all instance variables.
# unionizer.groups # Return all pairs.
# unionizer.rules # Return all rules.
# unionizer.memory # Return all memory.
```
Raw data
{
"_id": null,
"home_page": "https://github.com",
"name": "unionizer",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "unionizer,union,unions",
"author": "unionizer",
"author_email": "toolkitr.email@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/af/f6/230d1633c42ec47c4828d2c17ebcc220d49870507574dc7e803acd23ccdb/unionizer-1.8.5.tar.gz",
"platform": null,
"description": "<h1 align=\"center\">\n <a href=\"https://i.ibb.co/MnW0Y8M/360-F-133480376-PWls-Z1-Bdr2-SVn-TRpb8j-Ct-Y59-Cy-EBdo-Ut-modified.png\"><img src=\"https://i.ibb.co/MnW0Y8M/360-F-133480376-PWls-Z1-Bdr2-SVn-TRpb8j-Ct-Y59-Cy-EBdo-Ut-modified.png\" alt=\"unionizer\" border=\"0\" width=\"145\"></a>\n</h1>\n\n\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/aws/mit-0/blob/master/MIT-0)\n[![Python Versions](https://img.shields.io/badge/python-3.7%20|%203.8%20|%203.9%20|%203.10%20|%203.11%20|%203.12%20-blue)](https://www.python.org/downloads/)\n\n```\nunionizer: V1.8.5\n\nUnionizer helps developers pair objects together.\n```\n\n## Installing\n```shell\n# Linux/macOS\npython3 pip install -U unionizer\n\n# Windows\npy -3 -m pip install -U unionizer\n```\n\n# Logic\n```python\nunionizer.assign(1, 2) # 2 isinstance of 1 and 5\nunionizer.assign(1, 5) # 5 is instance of 1 and 2\nunionizer.assign(5, 7) # 7 is only instance of 5, not 1 or 2\n\n# Set:\n 1, (2, 5)\n\n# Subset:\n 5, 7\n\n# Architecture:\n 1 (\n 2, \n 5 (\n 7\n )\n )\n```\n\n## Local Tied Memory / Pairs\n```python\nbond: unionizer.Bond = unionizer.Bond(size=10) # Limit bond memory to 10.\n\nbond.assign(object_1, object_2) # Tie object_1 and object_2 together.\n# bond.delete(object_1, object_2) # Untie object_1 and object_2 from\n \nbond.filter(object_2) # Filter all pairs that are tied to object_2.\n\nbond.groups() # Return all pairs.\n\nbond.isinstance(object_1, object_2) # Check if object_1 and object_2 are paired.\n```\n\n## Global Tied Memory / Pairs\n```python\nunionizer.core # (VARIABLE of backend core class object) Stored memory with no size limit unless changed\n\n# Changing core params\n# unionizer.core(unique=True, size=10) # Limit core memory to 10 and make all keys be instance variables.\n\n# unionizer.set(unique=True, size=10) # Limit core memory to 10 and make all keys be instance variables.\n\nunionizer.assign(object_1, object_2) # Tie object_1 and object_2 together.\n\nunionizer.get(object_1) # Get object_1's tied object.\n\nunionizer.delete(object_1) # Untie object_1 from its tied object.\n\nunionizer.filter(object_2) # Filter all pairs that are tied to object_2.\n\n# Properties\n# unionizer.vars # Return all instance variables.\n# unionizer.groups # Return all pairs.\n# unionizer.rules # Return all rules.\n# unionizer.memory # Return all memory.\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Unionizer helps developers pair objects together.",
"version": "1.8.5",
"project_urls": {
"Homepage": "https://github.com"
},
"split_keywords": [
"unionizer",
"union",
"unions"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c1510d8faa367c3e153e284a400eed46acfd5ee66ca933526bffde6dd6471678",
"md5": "c8e24326cdb44b4fcd72db19cc77689c",
"sha256": "4077931e586069eda7a3eb05cfbbe74f29d6b29dd5567f179fc26d963031ba72"
},
"downloads": -1,
"filename": "unionizer-1.8.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c8e24326cdb44b4fcd72db19cc77689c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 6174,
"upload_time": "2023-12-09T12:49:54",
"upload_time_iso_8601": "2023-12-09T12:49:54.607086Z",
"url": "https://files.pythonhosted.org/packages/c1/51/0d8faa367c3e153e284a400eed46acfd5ee66ca933526bffde6dd6471678/unionizer-1.8.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "aff6230d1633c42ec47c4828d2c17ebcc220d49870507574dc7e803acd23ccdb",
"md5": "ca34f31ad78b92333b865c2870c5161d",
"sha256": "9c923a87971303fa3d41d9c7dfec456ba89e5880d17007e7ea57c88f8a79702b"
},
"downloads": -1,
"filename": "unionizer-1.8.5.tar.gz",
"has_sig": false,
"md5_digest": "ca34f31ad78b92333b865c2870c5161d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5177,
"upload_time": "2023-12-09T12:49:56",
"upload_time_iso_8601": "2023-12-09T12:49:56.365164Z",
"url": "https://files.pythonhosted.org/packages/af/f6/230d1633c42ec47c4828d2c17ebcc220d49870507574dc7e803acd23ccdb/unionizer-1.8.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-09 12:49:56",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "unionizer"
}