Skip to main content

Unionizer helps developers pair objects together.

Project description

unionizer

License Python Versions

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)

Uploaded Source

Built Distribution

unionizer-1.8.5-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page