semvec/pypi-packages huggingface dataset:
sabac 0.0.1a0
Simple Attribute Based Access Control
Requires Python: >=3.6

Simple Attribute Based Access Control

# Description
Python implementation of Attribute Based Access Control (ABAC). 
Design is based on XACML model, but is not its strict implementation.

# Features


# Example
```python
from sabac import PDP, PAP, DenyBiasedPEP, deny_unless_permit

# Creating Policy Administration Point
pap = PAP(deny_unless_permit)

# Adding policy to PAP
pap.add_item({
    "description": "Admin permissions",
    "target": {
        'subject.id': 1,
    },
    "algorithm": "DENY_UNLESS_PERMIT",
    'rules': [
        {
            "effect": "PERMIT",
            "description": "Allow to manage users",
            "target": {
                'resource.type': 'user',
                'action': {'@in': ['create', 'view', 'update', 'erase_personal_data', 'delete']},
            },
        }
    ]
})

pdp = PDP(pap_instance=pap)

# Creating Policy Enforcement Point
pep = DenyBiasedPEP(pdp)

# Describing Policy Enforcement Point context
context = {
    'resource.type': 'user',
    'action': 'create',
    'subject.id': 1
}

# Evaluating policy
result = pep.evaluate(context)

print(result)  # Should return True
```

# TODO

- Implement all combining algorithms

#References
1. XACML 3.0 standard http://docs.oasis-open.org/xacml/3.0/xacml-3.0-core-spec-os-en.html
2. XACML Algorithms combining truth tables https://xacml.io
3. A popular ABAC/XACML introduction in Russian https://habr.com/ru/company/custis/blog/258861/#rule
telemetrix-pi-pico 0.1
Remotely Control And Monitor A Raspberry Pi Pico
Keywords: telemetrix,Raspberry_Pi_Pico,Protocol,Python

# Telemetrix-RPi-Pico

This is an early version of a Telemetrix client for the Raspberry Pi Pico.

This is a work in progress.

A full User's Guide is under development.

A Python API for may be found [here.](https://htmlpreview.github.com/?https://github.com/MrYsLab/telemetrix-rpi-pico/blob/master/html/telemetrix_rpi_pico/index.html) 

The Pico server code may be viewed [here.](https://github.com/MrYsLab/Telemetrix4RpiPico)

The following functionality is implemented in this release:

* Autodetect and connection to a single PICO connected to the PC.
* Automatic board reset of the PICO using the watchdog timer when application exits.
    * Board will blink twice upon reset.
* Retrieval of the PICO unique ID.
* Analog Input
* Digital Input, Digital Input Pullup, Digital Input Pulldown
* PWM output
* Loopback (for client/server link debugging)


## To install The Client Library:

**Linux/macOS:**

sudo pip3 install telemetrix-rpi-pico

**Windows:**

pip install telemetrix-rpi-pico

## To Install The Pico Server Application
1. [Download](https://github.com/MrYsLab/Telemetrix4RpiPico/raw/master/cmake-build-release/Telemetrix4RpiPico.uf2) 
   and save the .uf2 file.
2. Place the Pico in file upload mode:
   
   A. Press and hold the BOOTSEL button while applying power. 
   B. Release the BOOTSEL button.
   C. In you file explorer, you should a new folder appear called: RPI-RP2.
   D. Drag the .uf2 file into this folder to upload the code.
   
3. [Download,](https://github.com/MrYsLab/telemetrix-rpi-pico/archive/master.zip) 
   save, and uncompress the teletmetrix-rpi-pico Github repository.
   
4. Open the _examples_ directory and run any of the examples. You may
modify them to suit your needs.