semvec/pypi-packages huggingface dataset:
pydustry 0.1.0
A package for getting Mindustry server status and sending commands.


# pydustry
A Python package for controlling Mindustry servers and getting their current status

## Documentation:


`pydustry.Server(host, server_port = 6567, socketinput_port = 6859)`

**Server object.**
 - `host` - **String.** Required. IP address of the server
 - `server_port` - **Int.** Defaults at 6567. Port of the server.
 - `socketinput_port` - **Int**. Defaults at 6859. Socketinput port of the server.
#
 `pydustry.Server.get_status()`

Returns the status of the server in the form of a dict.

Example:

 `>>> pydustry.Server("exampleserver.com").get_status() `
	will output

    {"name": "Example Mindustry server",
     "map": "Maze",
     "players": 5, 
     "wave": 10, 
     "version": 89, 
     "vertype": "official"}
     
   
 - `"name"` - **String.** Name of the server.
 - `"map"` - **String.** Map that the server is currently on.
 - `"players"` - **Int.** Number of players online.
 - `"wave"` - **Int**. Wave that the server is currently on.
 - `"version"` - **Int.** Version that the server is on
 - `"vertype"` - **String.** Version type of the server.
#
`pydustry.Server.send_command(command)`
Sends a command through the **socketinput** port of the server.
 - `command` - **String.** Required. Command that gets sent to the server
 #
 `pydustry.Server.get_ping(timeout = 10.0)`
 Returns the **delay** it takes packets to come to the server and back in miliseconds **(ping)**.
- `ping` - **Int.**
- `timeout` - **Numeric**, optional
#
 ## Example codes
 

    import pydustry
    
    # A program that will output the playercount and ping
    
    host = input("Enter the IP address of the Mindustry server:")
    port = input("Enter the port of the Mindustry server:")
    
    server = pydustry.Server(host, int(port))
    
    playercount = server.get_status()["players"]
    ping = server.ping()
    
    print("The number of players is: " + str(playercount))
    print("And the ping is: " + str(ping))
#
    import pydustry, time
    
    # A program that will autosave the local server every 5 minutes
    
    server = pydustry.Server("localhost")
    
    while True:
        server.send_command("save 0")
        server.send_command("say Saved!")
        time.sleep(300)
silabs-flasher 0.0.3
Tool to flash Silicon Labs Wireless Gecko devices.
Requires Python: >=3.7

# Silicon Labs Firmware flashing utility

The `silabs-flasher` utility allows to flash products using the Silicon Labs
Wireless Gecko Series 1 and 2 chips. It makes use of the zigpy bellows library 
to communicate using the EmberZNet Serial Protocol over serial port.

Note: There is also a more capable utilty called [Universal Silicon Labs
Flasher](https://github.com/NabuCasa/universal-silabs-flasher).

## Install

Silicon Labs Flasher is available from PyPI:
```
$ pip install silabs-flasher
```

To use GPIOs to reset the chip (useful on Home Assistant Yellow) make sure to
install with gpiod from PyPI as extra dependency:
```
$ pip install silabs-flasher[gpio]
```

## Usage

Use the info command to check communication with the device and get
information about the current firmware and the bootloader:
```
$ silabs-flasher --device /dev/ttyUSB4 info
Manufacturer: 
Board name: 
EmberZNet version: 6.7.9.0 build 405
bootloader version: 0x1902, nodePlat: 0x04, nodeMicro: 0x18, nodePhy: 0x0f
```

The firmware can be flashed using the `flash` command:
```
$ silabs-flasher --device /dev/ttyUSB4 flash --firmware ncp-uart-sw_679_115200.gbl 
Trying to connect using EZSP...
Launching bootloader in mode recovery mode via EZSP.
Bootloader detected successfully.
Bootloader version: 1.9.2
Starting firmware upload...
Firmware update  [####################################]  100%          
Bootloader reported successful upload.
```

To reset the chip using GPIO use the following arguments:
```
$ silabs-flasher --device /dev/ttyAMA1 --baudrate 115200 flash \
                 --no-ezsp-reset --cm4-gpio-reset \
                 --firmware NabuCasa_EZSP_v6.10.3.0_PA32_ncp-uart-hw_115200.gbl
```
Sanzan 2.0.5
Video encryption while maintaining playability.

# Sanzan

[![PyPI Release](https://github.com/kokseen1/Sanzan/actions/workflows/release.yml/badge.svg)](https://github.com/kokseen1/Sanzan/actions/workflows/release.yml)
[![PyPI Version](https://img.shields.io/pypi/v/sanzan.svg)](https://pypi.python.org/pypi/sanzan/)

Sanzan is a simple encryption library to encrypt and decrypt videos while maintaining playability.

It uses NumPy and OpenCV to perform video frame manipulation, while using FFmpeg and Pydub for audio manipulation. Sanzan can be used either from the command line or in a Python program.

### Encrypted Video

![Encrypted](https://raw.githubusercontent.com/kokseen1/Sanzan/main/img/enc.gif?raw=True)

### Decrypted Video:

![Decrypted](https://raw.githubusercontent.com/kokseen1/Sanzan/main/img/dec.gif?raw=True)

## Installation

### Prerequisite

[FFmpeg](https://www.ffmpeg.org/download.html) must be installed and in `PATH`.

```shell
pip install sanzan
```

## Usage

### Encryption

```shell
sz original.mp4 -k <key> -e -o encrypted.mp4 
```

#### On a stream

```shell
sz https://youtu.be/dQw4w9WgXcQ -k <key> -e -o encrypted.mp4 
```

### Decryption

```shell
sz encrypted.mp4 -k <key> -d -o decrypted.mp4 
```

#### With preview

```shell
sz encrypted.mp4 -k <key> -d -o decrypted.mp4 -p
```

- Frames will be displayed as quickly as they are generated.
- Audio will only start playing after the whole stream has been processed.

### More Usage

Omit the `-k` argument to encrypt using randomly generated keyfiles.

Use the `-m` argument to specify mode: `audio`, `video` or `full` (default).

Use the `-q` flag for quiet mode.

#### Audio options

Use the `-a` argument to specify output audio format: `mp3`, `wav` (default), `flac`, etc.

Use the `-l` flag to use light encryption/decryption.

Use the `-dn` flag to apply denoising to the output audio.

Use the `-pp` flag to disable audio padding.

#### Video options

Use the `-s` argument to specify scramble method: `rows` (default), `cols`, `full`.

Use the `-f` flag to generate a different scramble order every frame.

### Python Usage

Alternatively, Sanzan provides a Python interface to programmatically access its functionality.

#### Encryption

```python
from sanzan import Sanzan

if __name__ == "__main__":
    s = Sanzan("original.mp4")
    s.set_password("1234")
    s.encrypt("encrypted.mp4")
```

#### Decryption

```python
from sanzan import Sanzan

if __name__ == "__main__":
    s = Sanzan("encrypted.mp4")
    s.set_password("1234")
    s.decrypt("decrypted.mp4", preview=True, denoise=True)
```
realsense-recorder 1.4
Realsense remote recorder
Requires Python: >=3.6

# RealsenseRecorder

A set of Python scripts to operate Intel Realsense Cameras. By using multi-thread techniques, this script can record color + depth from up to 4 Realsense Cameras (2 x L515 and 2 x D435)

## Installation

### From Source

```shell
git clone https://github.com/mvig-robotflow/rfimu-realsense-recorder
cd rfimu-realsense-recorder
python setup.py
```

### From PyPi

```shell
python -m pip install realsense-recorder
```

## Usage

### Script Usage

```python
import io

import cv2
import numpy as np
import yaml
from realsense_recorder.common import new_realsense_camera_system_from_config, RealsenseSystemModel

cfg_str = """
realsense:
  cameras:
  - color:
    - exposure: -1
      format: rs.format.bgra8
      fps: 30
      height: 1080
      width: 1920
    depth: [] # Do not user depth 
    endpoint: {}
    imu: []
    product_id: 0B64 # 0B64 for L515
    product_line: L500 # Currently supported models are L500(L515) and D400(D435)
    ref: 1
    sn: f0220485 # SN of target Camera, can get from RealSenseViewer
  system:
    base_dir: ./realsense_data
    frame_queue_size: 100
    interactive: false
    interval_ms: 0
    use_bag: false
"""


def main():
    cfg = yaml.load(io.StringIO(cfg_str), yaml.SafeLoader)
    sys = new_realsense_camera_system_from_config(RealsenseSystemModel, cfg['realsense'], None)
    print(sys.cameras)
    cam = sys.cameras[0]
    cam.open()
    cam.start()
    mtx = np.array(cam.intrinsics_matrix)
    while True:
        color_image, depth_image, ts, sys_ts, frame_counter = cam.get_frames()
        cv2.imshow("frame", color_image)
        key = cv2.waitKey(1)
        if key == 27:
            print('esc break...')
            cv2.destroyAllWindows()
            break

main()
```

### Command Line Usage

To Create and persist record configuration:

```shell
python -m realsense-recorder configure
```

To launch a remote record station that supports REST API

```shell
python -m realsense-recorder run --app=remote_record_seq
```
airtel 0.0.1
airtel is a light open source module for your Airtel API.
Requires Python: >=3.7


</br>
</br>
<p align="center"> 
    <img height="150" src="https://github.com/rivo2302/airtel_money_api/blob/main/assets/airtel.png?raw=true">
</p>
<div align="center"> 
    <p>
        A <b>light</b> Python module for your <a href="https://developers.airtel.africa/home"> API Airtel </a>.
        <h4>
            <a href="https://pypi.org/project/airtel/">Documentation</a>
            <span> | </span>
            <a href="https://github.com/rivo2302/airtel_money_api/issues">Report bugs</a>
            <span> | </span>
            <a href="https://github.com/rivo2302/airtel_money_api/fork">Contribute</a>
        </h4>
    </p>
    <p>
        <a href='https://pypi.org/project/airtel/'><img src='https://img.shields.io/pypi/v/airtel?style=for-the-badge'/></a>
        <a href='https://github.com/rivo2302/airtel_money_api/fork'> 
            <img src="https://img.shields.io/badge/-python-396E9B?style=for-the-badge&logo=python&logoColor=FFFFFF"/>
        </a>
        <a href='https://pypi.org/project/airtel/'> 
             <img src='https://img.shields.io/pypi/dm/airtle?label=DOWNLOADS&style=for-the-badge'/>
        </a>
        <a href='#'> 
            <img src='https://img.shields.io/badge/Maintained-Yes-darkgreen?style=for-the-badge'/>
        </a>  
    </p>
</div>