Unionizer helps developers pair objects together.
Project description
unionizer: V1.8.5
Unionizer helps developers pair objects together.
Installing
# Linux/macOS
python3 pip install -U unionizer
# Windows
py -3 -m pip install -U unionizer
Logic
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
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
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.
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
unionizer-1.8.5.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for unionizer-1.8.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4077931e586069eda7a3eb05cfbbe74f29d6b29dd5567f179fc26d963031ba72 |
|
MD5 | c8e24326cdb44b4fcd72db19cc77689c |
|
BLAKE2b-256 | c1510d8faa367c3e153e284a400eed46acfd5ee66ca933526bffde6dd6471678 |