semvec/pypi-packages huggingface dataset:
zynapse10 0.1.0
CLI للتفاعل مع Gemini AI من الطرفية
License: MIT
Requires Python: >=3.7

# zynapse10

واجهة سطر أوامر للتفاعل مع نموذج Gemini AI.

## طريقة الاستخدام

```bash
zynapse10
```

## الخروج

```bash
exit
```
highlambder 0.1.3
Syntactic Sugar for Lambda Expressions
License: MIT

# Highlambder - there can be only one... lambda to rule them all

Syntactic sugar for Python lambda expressions.
Make your anonymous functions shorter, more expressive, and (let's be honest) just more fun.
<p align="center"><img src="media/highlambder.png" alt="there can be only one" width="400"/></p>

>Image used under fair use, for illustrative and non-commercial purposes. All rights to the character and image belong to their respective owners.

## What is Highlambder?

**Highlambder** is an experimental library that lets you write more elegant and compact code by replacing Python’s `lambda` syntax with something shorter: a symbolic placeholder that behaves like a function.

In practice, `lambda x: x + 1` can be written simply as `λ + 1`.

## Installation

```bash
pip install highlambder
```

## Quick Examples

```python
from highlambder import L as λ

λ (10)  # -> 10

(λ + 5) (10)  # -> 15

(λ * 5) (10)  # -> 50

(3 + λ * 2) (10)  # -> 23

(40 / λ / 5) (2)  # -> 4

(10 * λ[1]) ([1, 2, 3])  # -> 20

(-1 + λ * 5 / λ + 1) (13)  # -> 5

(λ * 2 + λ * 4 + λ) (10)  # -> 70

(λ['A'] + λ['B']) ({'A': 3, 'B': 4})  # -> 7

(λ + λ) (2)  # -> 4

map(λ * 2, range(5)) # -> [0, 2, 4, 6, 8]

("It's a Me, " + λ) ('Mario!') # ->  'It's a Me, Mario!'
```

## pandas and NumPy support (partially supported, work-in-progress)

```python
import pandas as pd
import numpy as np
from highlambder import L as λ

# pandas:
s = pd.Series([1, 2, 3, 4])
assert pd.Series.equals(
    2 * s,
    s.map(2 * λ),
)

df = pd.DataFrame({
    'A': [1, 1, 2, 2],
    'B': [5, 6, 7, 8],
    'C': ['banana', 'apple', 'kiwi', 'orange'],
})

assert pd.DataFrame.equals(
    df.assign(D=lambda d: d.A + 20),
    df.assign(D=λ.A + 20),
)

# String operations
assert pd.DataFrame.equals(
    df.assign(D=lambda d: d['C'].str.len() * 2),
    df.assign(D=λ['C'].str.len * 2),
)

# NumPy:
assert (λ + 2)(np.int64(2)) == 4

assert (λ.max)(np.array([3, 4, 5, 6, 7, 8])) == 8

```

## Limitations (for now)

- Only single-argument functions are supported.
- Calling a function passing λ as an arument usually doesn't work. For example: `len(λ)`.

These limitations may be lifted in future versions.

## License

[MIT](LICENSE)
buildhat 0.9.0
Build HAT Python library
License: MIT
Requires Python: >=3.7

# Build HAT

The Python Build HAT library supports the Raspberry Pi Build HAT, an add-on board for the Raspberry Pi computer, which allows control of up to four LEGO® TECHNIC™ motors and sensors included in the SPIKE™ Portfolio.

## Hardware

The Build HAT provides four connectors for LEGO® Technic™ motors and sensors from the SPIKE™ Portfolio. The available sensors include a distance sensor, a colour sensor, and a versatile force sensor. The angular motors come in a range of sizes and include integrated encoders that can be queried to find their position.

The Build HAT fits all Raspberry Pi computers with a 40-pin GPIO header, including — with the addition of a ribbon cable or other extension device — Raspberry Pi 400. Connected LEGO® Technic™ devices can easily be controlled in Python, alongside standard Raspberry Pi accessories such as a camera module.

## Documentation

Library documentation: https://buildhat.readthedocs.io

Hardware documentation: https://www.raspberrypi.com/documentation/accessories/build-hat.html

Projects and inspiration: https://projects.raspberrypi.org/en/pathways/lego-intro

## Installation

To install the Build HAT library, enter the following commands in a terminal:

    pip3 install buildhat

## Usage

See the [detailed documentation](https://buildhat.readthedocs.io/en/latest/buildhat/index.html) for the Python objects available.

```python
import time
from signal import pause
from buildhat import Motor

motor = Motor('A')
motor.set_default_speed(30)

print("Position", motor.get_aposition())

def handle_motor(speed, pos, apos):
    print("Motor", speed, pos, apos)

motor.when_rotated = handle_motor

print("Run for degrees")
motor.run_for_degrees(360)

print("Run for seconds")
motor.run_for_seconds(5)

print("Run for rotations")
motor.run_for_rotations(2)

print("Start motor")
motor.start()
time.sleep(3)
print("Stop motor")
motor.stop()

pause()
```

## Building locally

Using [asdf](https://github.com/asdf-vm/asdf):

```
asdf install
```

Then:

```
pip3 install . --user
```

### Building the documentation

Instructions for regenerating the documentation can be found in
`docs/README.md`. Briefly, assuming you have the appropriate python
modules installed:

```
$ (cd docs; make html)
```

will rebuild the documentation. The doc tree starts at `docs/build/html/index.html`