Unionizer helps developers pair objects together.
Project description
unionizer: V1.5.3
Unionizer helps developers pair objects together.
Installing
# Linux/macOS
python3 pip install -U unionizer
# Windows
py -3 -m pip install -U unionizer
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.5.3.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for unionizer-1.5.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7752fc9fe590df1cef62d609e76601f7a688ec564a86c8c8bd279c21dd5be644 |
|
MD5 | 14676bcb9c7c9df3da53bd63d47d791c |
|
BLAKE2b-256 | 5ff8087b6792c4aafc8feb8956fab9a5f3140bfddc01432c0e643858e9517a04 |