semvec/pypi-packages huggingface dataset:
ozobot-evo 0.2.0
Ozobot EVO library
Requires Python: >=3.13

# ozobot-evo

Interface for controlling Ozobot Evo. See the [monorepo](https://github.com/ozobot/python-libraries) for more details. 

**Work in progress, only a web runtime driver for Ozobot Editor available**

## Usage
```python
import asyncio
import random
from ozobot.evo import EvoHandle, Evo
from ozobot.linefollower import NamedColor, LEDMask, Direction


async def monitor(it):
  async for data in it:
    print(f"Sample taken: {data.value}")


async def main():
  async with EvoHandle(id="ABCDE*") as evo:
    await evo.move(100, 50)
    await evo.rotate(180, 90)

    velo_task = asyncio.create_task(evo.set_velocity(50, 0))
    await asyncio.sleep(2)
    velo_task.cancel()

    await evo.set_led(LEDMask.FRONT_CENTER | LEDMask.FRONT_LEFT | LEDMask.FRONT_RIGHT, NamedColor.BLUE)
    await evo.set_led(LEDMask.FRONT_LEFT_CENTER | LEDMask.FRONT_RIGHT_CENTER, NamedColor.RED)

    await evo.play_sound("happy")
    await evo.play_tone("A", 4, 1, 1)

    await evo.follow_line(Direction.STRAIGHT)
    intersection = await evo.data.intersection.read()
    print(f"At intersection: {intersection.value}")

    async with evo.data.intersection.watch() as intersections, evo.data.color_code.watch() as codes:
      t1 = asyncio.create_task(_monitor(intersections))
      t2 = asyncio.create_task(_monitor(codes))

      await evo.follow_line(random.choice(list(intersection.value)))

      t1.cancel()
      t2.cancel()


asyncio.run(main())
```
fabric_fss_utils 1.6.2
FABRIC System Service Utilities - JWT and SSH key handling
Requires Python: >=3.9

[![PyPI](https://img.shields.io/pypi/v/fabric-fss-utils?style=plastic)](https://pypi.org/project/fabric-fss-utils/)

# Overview

Python library for supporting FABRIC System Services. Includes multiple modules:

- [jwt_validate](fss_utils/jwt_validate.py) - validates JWT against a JWKS endpoint

See [test](test/) folder for examples of use

# Installation

For developing and testing the FIM code itself use editable install (from top-level directory)
from python/ folder
```bash
(infomodel) $ pip install -e .
```

As a dependency use PyPi
```bash
$ pip install fabric-fss-utils
$  python
>>> from fss_utils.jwt_validate import JWTValidator, ValidateCode
>>> token = "..."
>>> validator = JWTValidator(cert_end_point, audience, datetime.timedelta(minutes=5))
>>> validator.validate_jwt(token)
```

# Testing

Use `pytest`:
```bash
$ pytest test/
```
def-cache 1.1.2
def-cache is a python package used to cache results from python methods
Requires Python: >=3.8

## def-cache

<p align="center">
  <a href="https://pypi.org/project/def-cache"><img alt="PyPI Version" src="https://img.shields.io/pypi/v/def-cache" /></a>
  <a href="https://pypi.org/project/def-cache"><img alt="Python Versions" src="https://img.shields.io/pypi/pyversions/def-cache" /></a>
  <a href="https://pepy.tech/projects/def-cache"><img src="https://static.pepy.tech/badge/def-cache" alt="PyPI Downloads"></a>
<br/>
</p>

`def-cache` is a python package that can be used as a method decorator to case their results.

Even though it can be used for any python method, it's aim is to be used in computational heavy methods,
that do not need to be executed constantly and can be cached (eg: model training, heavy calculation tasks, etc)

Currently, the backend supported is `fs` (file-system) and the results of the cached method are stored in files

### Installation

As `def-cache` is a python package it can be installed directly using pip:

```bash
python -m pip install def-cache
```

Alternatively one can use the source code directly.

### Usage

Upon installation one can directly use the decorator on the methods that need to be cached.

A base usage example can be found below:

```python
from def_cache import decorator

"""
The decorator below will cache the results of method: add for 60s in a file stored in the tmp relative path
"""
@decorator.cache(ttl=60, backend='fs', storage='tmp')
def add(x, y):
    return x + y

# this will not be called from cache
print(add(1, 2))

# this will be retrieved from cache
print(add(1, 2))


"""
The decorator below will cache the results of method: add for 60s in a file stored in the tmp relative path 
ignoring the 3rd parameter when attempting to cache
"""
@decorator.cache(ttl=60, backend='fs', storage='tmp', ignore_by_index=[2])
def add_ignore_by_index(x, y, z):
    return x + y

# this will not be called from cache
print(add_ignore_by_index(1, 2, -1))

# this will be retrieved from cache since parameter#3 is ignored
print(add_ignore_by_index(1, 2, -5))

"""
The decorator below will cache the results of method: add for 60s in a file stored in the tmp relative path 
ignoring the parameter name `z` when attempting to cache
"""
@decorator.cache(ttl=60, backend='fs', storage='tmp', ignore_by_name=['z'])
def add_ignore_by_name(x, y, z):
    return x + y

# this will not be called from cache
print(add_ignore_by_name(x=1, y=2, z=10))

# this will be retrieved from cache since z is ignored
print(add_ignore_by_name(x=1, y=2, z=15))
```

Example are also present in the [examples](/examples) directory.

### Future Extensions

In the future we plan on adding storage engine support for the decorator, but of course would welcome any suggestions.
sphinxnotes-any 3.0b5
Sphinx domain for documenting anything
Requires Python: >=3.12
Keywords: sphinx, extension, documentation, sphinxnotes

.. This file is generated from sphinx-notes/cookiecutter.
   You need to consider modifying the TEMPLATE or modifying THIS FILE.

===============
sphinxnotes-any
===============

.. |docs| image:: https://img.shields.io/github/deployments/sphinx-notes/any/github-pages
   :target: https://sphinx.silverrainz.me/any
   :alt: Documentation Status
.. |license| image:: https://img.shields.io/github/license/sphinx-notes/any
   :target: https://github.com/sphinx-notes/any/blob/master/LICENSE
   :alt: Open Source License
.. |pypi| image:: https://img.shields.io/pypi/v/sphinxnotes-any.svg
   :target: https://pypi.python.org/pypi/sphinxnotes-any
   :alt: PyPI Package
.. |download| image:: https://img.shields.io/pypi/dm/sphinxnotes-any
   :target: https://pypistats.org/packages/sphinxnotes-any
   :alt: PyPI Package Downloads

|docs| |license| |pypi| |download|

Sphinx domain for documenting anything.

.. INTRODUCTION START 
   (MUST written in standard reStructuredText, without Sphinx stuff)

.. INTRODUCTION END

Please refer to Documentation_ for more details.

.. _Documentation: https://sphinx.silverrainz.me/any