semvec/pypi-packages huggingface dataset:
infinity-mouse 0.2.4
Mouse infinity movement after timeout.
Requires Python: >=3.9

# infinity-mouse

![infinity mouse](https://mqxym.de/assets/infinity_mouse.jpg)

Python script that moves the mouse in an ∞ pattern after a set inactivity timeout.

## Requirements

- MacOS with Python3.9+
- Packages: see `requirements.txt`

## Installation

### Using Pip

```bash

mkdir infinity-mouse
cd infinity-mouse && python3 -m venv .venv/ && source .venv/bin/activate

pip install infinity-mouse

# Run the script
infinity-mouse # You may need to allow system access permissions for your terminal app

# Press CTRL+C to exit the script
```

### Using Source

```bash

git clone https://github.com/mqxym/infinity-mouse
cd infinity-mouse && python3 -m venv .venv/ && source .venv/bin/activate && pip install -r requirements.txt

# Run the script
python run.py # You may need to allow system access permissions for your terminal app

# Press CTRL+C to exit the script
```

## Options

- Adjust the `INACTIVITY_TIMEOUT_MIN` and `INACTIVITY_TIMEOUT_MAX` values in the script or use CLI parameters:

```bash
# Run the script with min-max timeout in seconds
infinity-mouse 80-120

# Test the script
infinity-mouse --test

# View options
infinity-mouse -h

```

## Project Goals

- Learn automation like mouse movements and processing of inputs and HMIs
- Learn pattern creation with sinus functions for the infinity movement pattern
- Build and test CI/CD workflows

## Future Additions

- Linux and Windows support?
codesnapper 0.1.7
A tool to create code snapshots by combining multiple files
Requires Python: >=3.7

# CodeSnapper

A simple command-line tool to create code snapshots by combining multiple files into a single file with comments.

## Installation

```bash
pip install codesnapper
```

## Usage

1. Run `codesnap` in your project directory
2. Edit the created `snapshot.txt` file to list the files you want to include:
   ```
   main.py "Main application file"
   utils/helper.py "Helper functions"
   ```
3. Run `codesnap` again to generate the snapshot
   - Creates `code-snapshot.txt` with all files combined
   - Automatically copies content to clipboard

## Features

- 📝 Combines multiple files into a single snapshot
- 💭 Supports comments for each file
- 📋 Automatically copies to clipboard
- 🎨 Colorful terminal output
- 🔄 Relative path support

## License

MIT
xlsx-data-stream 0.0.1
build xlsx files using streams
Requires Python: >=3.9

# xlsx_data_stream

A lightweight Python library for efficiently generating Excel files from large
datasets or async data streams. Designed for:

- low memory usage (streams data row-by-row);
- sync and async support;
- dynamic formatting (per-column number formats, additional sheets, e.t.c).

Refer to the `tests/` and `get_xlsx_file_stream`/`get_xlsx_file_stream_async`
docstrings for usage examples and details about the API. Proper documentation
currently lacks, so you might need to read the code.

## Installation

Using pip:

```bash
pip install xlsx_data_stream
```

Using poetry:

```bash
poetry add xlsx_data_stream
```

## Usage

### Synchronous interface

```py
from xlsx_data_stream import ColumnDescription, get_xlsx_file_stream


chunks = get_xlsx_file_stream(
    [
        ColumnDescription(field="a"),
        ColumnDescription(field="b", number_format="0"),
        ColumnDescription(field="c", number_format="0.00"),
    ],
    [
        {"a": "text", "b": 1.2345, "c": 1.2345}
        for _ in range(1000)
    ],
)

with open("output.xlsx", "wb") as fh:
    for chunk in chunks:
        fh.write(chunk)
```

### Asynchronous interface

```py
import asyncio

from xlsx_data_stream import ColumnDescription, get_xlsx_file_stream_async


async def data():
    for _ in range(1000):
        yield {"a": "text", "b": 1.2345, "c": 1.2345}


async def main():
    chunks = get_xlsx_file_stream_async(
        [
            ColumnDescription(field="a"),
            ColumnDescription(field="b", number_format="0"),
            ColumnDescription(field="c", number_format="0.00"),
        ],
        data(),
    )

    with open("output.xlsx", "wb") as fh:
        async for chunk in chunks:
            fh.write(chunk)


asyncio.run(main())
```

### `convert_cell_value_to_excel_string`

```py
from datetime import datetime, timezone

from xlsx_data_stream import convert_cell_value_to_excel_string

assert convert_cell_value_to_excel_string(10, timezone.utc) == '10'

assert convert_cell_value_to_excel_string(None, timezone.utc) == ''

assert convert_cell_value_to_excel_string(
    datetime(2020, 1, 1, 10, tzinfo=timezone.utc),
    timezone.utc,
) == '43831.416666666664'
```

## Mentions

- This project is heavely based on [Polyconseil/xlsx_streaming](https://github.com/Polyconseil/xlsx_streaming).
opencv-cuda-v12.6 4.12.0
Precompiled OpenCV with CUDA 12.6 support for Windows/Python3.9
Requires Python: ==3.9.*
Keywords: opencv cuda windows precompiled

针对Windows平台下Python3.9版本预编译的支持CUDA12.6的OpenCV库。

    特性包含：
    - 基于OpenCV 4.12.0源码编译
    - 集成CUDA 12.6加速支持
    - 包含cuDNN 8.x深度学习推理加速
    - 支持NVIDIA GPU硬件加速
msr-reader 0.2.1
Pure Python reader for MSR/OBF (Imspector) image data
Requires Python: >=3.7

# msr

Pure Python and cross-platform reader for MSR/OBF image files as created by Imspector.

Implementation follows the description at: https://imspectordocs.readthedocs.io/en/latest/fileformat.html

**WARNING:** Only tested on data from our own Abberior Expert Line STED microscope with a narrow range of Imspector versions.

## Installation

```
pip install msr-reader
```

## Usage

```python
from msr_reader import OBFFile
from xml.etree import ElementTree
import ome_types

with OBFFile('file_path.msr') as f:

    # reading image data
    idx = 0
    img = f.read_stack(idx) # read stack with index idx into numpy array

    # metadata
    stack_shapes = f.shapes # list of stack shapes, including stack and dimension names
    pixel_sizes = f.pixel_sizes # like shapes, but with pixel sizes (unit: meters)

    # imspector metadata as xml string
    xml_imspector_metadata = f.get_imspector_xml_metadata(idx)
    
    # can be parsed with ElementTree, for example    
    et = ElementTree.fromstring(xml_imspector_metadata)
    # find, e.g. x pixel size in XML
    et.find('doc/ExpControl/scan/range/x/psz').text

    # OME-XML metadata as xml string
    xml_ome_metadata = f.get_ome_xml_metadata()
    # can be parsed with ome-types, for example
    ome_meta = ome_types.from_xml(xml_ome_metadata)
```
fild-api-hub 0.0.8
Library to operate api with help of fild contracts
Requires Python: >=3.9

# fild-api-hub v 0.0.8

![Downloads](https://img.shields.io/pypi/dm/fild-api-hub.svg?style=flat)
![Python Versions](https://img.shields.io/pypi/pyversions/fild-api-hub.svg?style=flat)
![License](https://img.shields.io/pypi/l/fild-api-hub.svg?version=latest)
[![Build Status](https://github.com/elenakulgavaya/fild-api-hub/workflows/Tests/badge.svg)](https://github.com/elenakulgavaya/fild-api-hub/actions)

The FILD Api Hub is a set of tools enabling using FILD described contracts
in tests. 

Configure your project with yaml files in `etc/config.yaml` containing
```yaml
App:
  url: http://localhost:8000
MockServer:
  host: localhost
  port: 8088
```

Override any local configuration variables by adding `etc/local.yaml`
```yaml
MockServer:
  port: 8080
```

Use `ApiMethod` to describe the API 
```python
from fild.sdk import Dictionary, Int, String, Uuid
from fildapi import ApiMethod, HttpMethod


SERVICE = 'customer_api'
BASE_URL = 'http://mydomain.customerapi'


class CreateUserRequest(Dictionary):
    Name = String(name='name')
    Email = String(name='email')
    Age = Int(name='age', min_val=18, max_val=120)

    
class CreateUserResponse(Dictionary):
    Id = Uuid(name='id')

    
class CreateUser(ApiMethod):
    method = HttpMethod.POST
    url = 'api/users'
    req_body = CreateUserRequest
    resp_body = CreateUserResponse
```

Use `ApiMethod` for mocking and verifying integrations
```python
from customer_api import CreateUser


def test_failed_to_create_user():
    CreateUser.reply(status=400)
    # Test action to check error


def test_verify_call_to_customer_api():
    CreateUser.reply()
    # Some test action
    CreateUser.verify_called()
```

Use `ApiCaller` to test the api:
```python
from fildapi import ApiCaller
from customer_api import CreateUser


class CreateUserCall(ApiCaller):
    method = CreateUser


def test_create_user():
    CreateUserCall().request().verify_response()
```
scematicsapp 0.1.0.dev3
A CLI tool for managing file uploads
Requires Python: >=3.6

ScematicsApp
A command-line interface (CLI) tool for accessing and managing Scematics API resources.
This tool provides an interactive way to work with Scematics projects, uploads, annotations, and more.

Installation
pip install scematicsapp
Features

User Authentication: Login with credentials or API key
Project Management: List and view project details
Data Upload Options:

Direct upload for images and videos
Folder-wise project upload
Tag-based upload
Custom video folder upload


Annotation Management:
Export annotations with progress tracking
Import annotations from files

Interactive Interface: User-friendly CLI with menus and progress tracking

Requirements

Python 3.6+
Internet connection for API access
Scematics account credentials or API key

Usage
After installation, you can launch the tool with:
scematicsapp
yasc_script_runner 1.0.1
Python3 implementation of Yasc script runner
Requires Python: >=3.12

This is the Python3 implementation of Yasc script runner.

It works in conjunction with [Yasc Burp extension](https://github.com/bAuh0lz/Yasc).

See the extension page for more details.

This project is licensed under the MIT License - see the LICENSE file for details.
omc3-gui 1.0.1
QT Graphical User Interface wrapper of the ``omc3`` package
Requires Python: >=3.10

# <img src="https://raw.githubusercontent.com/pylhc/pylhc.github.io/master/docs/assets/logos/OMC_logo.svg" height="28"> 3 - GUI

[![Tests](https://github.com/pylhc/omc3_gui/actions/workflows/coverage.yml/badge.svg?branch=master)](https://github.com/pylhc/omc3_gui/actions/workflows/coverage.yml)
[![Code Climate coverage](https://img.shields.io/codeclimate/coverage/pylhc/omc3_gui.svg?style=popout)](https://codeclimate.com/github/pylhc/omc3_gui)
[![Code Climate maintainability (percentage)](https://img.shields.io/codeclimate/maintainability-percentage/pylhc/omc3_gui.svg?style=popout)](https://codeclimate.com/github/pylhc/omc3_gui)
[![GitHub last commit](https://img.shields.io/github/last-commit/pylhc/omc3_gui.svg?style=popout)](https://github.com/pylhc/omc3_gui/)
[![GitHub release](https://img.shields.io/github/release/pylhc/omc3_gui.svg?style=popout)](https://github.com/pylhc/omc3_gui/)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.8060665.svg)](https://doi.org/10.5281/zenodo.8060665)

This is the graphical user interface wrapper for ``omc3`, our python-tool package of the Optics Measurements and Corrections team (OMC) at CERN.

Most of the codes are generic and not limited to CERN accelerators, and the package can easily be used for your favorite circular accelerator.
To see how to adapt this for your machine, see our [documentation](https://pylhc.github.io/omc3_gui/), `Model` section. 
To contribute, see [our guidelines](https://pylhc.github.io/packages/development/contributing/) on the OMC website.

## Documentation

- Autogenerated docs via `Sphinx` can be found at <https://pylhc.github.io/omc3_gui/>.
- General documentation of the OMC Team is located at <https://pylhc.github.io/>.

## Installing

Installation is easily done via `pip`:

```
pip install omc3_gui
```


For development purposes, we recommend creating a new virtual environment and installing from VCS in editable mode with all extra dependencies (`cern` for packages only available in the CERN GPN, `test` for `pytest` and relevant plugins, and `doc` for packages needed to build documentation)
```bash
git clone https://github.com/pylhc/omc3_gui
pip install --editable "omc3_gui[all]"
```

Codes can then be run with either `python -m omc3_gui.SCRIPT --FLAG ARGUMENT` or calling the `.py` file directly.

## Functionality

#### Main Scripts

Main scripts to be executed lie in the [`/omc3_gui`](omc3_gui) directory. These include:
- `sbs_gui.py` GUI for Segment-by-Segment analysis.


## License

This project is licensed under the `MIT License` - see the [LICENSE](LICENSE) file for details.
pxm-tools 0.1.5
A collection of tools to interact with Proxmox API.
Requires Python: >=3.12

# pxm-tools

A collection of tools to interact with Proxmox API.

# Installation

```bash
pip install pxm-tools
```

# Usage

```bash
pxm-create -h
pxm-edit -h
pxm-start -h
pxm-stop -h
pxm-rm -h
```

# Must Know

Some arguments can be used from environment variables or .env file.

```bash
--api   # PM_API_URL
--user  # PM_USER
--pass  # PM_PASS
```

Options can be passed as a JSON file such as `--config config.json`

```json
{
    "node": "frodo",
    "prefix": "fl-worker",
    "pool": "federatedLearning",
    "template": 2000,
    
    "vm-cipassword": "flexfl",
    "vm-net0/rate": 50,
    "vm-net0/bridge": "vmbr1",
    "vm-localtime": 1
}
```


Configurations for the VM can be passed with the prefix `--vm-`:

```bash
--vm-cores      # Number of CPU cores
--vm-net0/rate  # Network rate limit, use / when value has other options
```

To see all available options, check the Proxmox API documentation for the VM configuration:
- https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/qemu/{vmid}/config

VM cloning is done one by one on purpose, starting, stopping, and removing VMs is done in bulk.
puput 2.2.0
A Django blog app implemented in Wagtail.
Keywords: django wagtail puput blog cms app

Puput
=====

.. image:: https://img.shields.io/pypi/v/puput.svg
    :target: https://pypi.python.org/pypi/puput/

.. image:: https://readthedocs.org/projects/puput/badge/?version=latest
    :target: https://readthedocs.org/projects/puput/?badge=latest

.. image:: https://img.shields.io/pypi/pyversions/puput.svg
    :target: https://pypi.org/project/puput/

.. image:: https://img.shields.io/pypi/djversions/puput.svg
    :target: https://pypi.org/project/puput/
   
Puput is a powerful and simple Django app to manage a blog. It uses the awesome `Wagtail CMS <https://github.com/torchbox/wagtail>`_ as content management system.

Puput is the catalan name for `Hoopoe <https://en.wikipedia.org/wiki/Hoopoe>`_ which is indeed a beautiful bird.

.. image:: http://i.imgur.com/3ByGQb6.png

Visit the `documentation <http://puput.readthedocs.org>`_ for an in-depth look at Puput.

Features
~~~~~~~~

* Built with Wagtail CMS and Django
* Inspired in Wordpress and Zinnia
* Simple & responsive HTML template by default
* SEO friendly urls
* Support for Disqus comments
* Entries by author, tags, categories, archives and search term
* Last & popular entries
* Configurable sidebar widgets
* RSS feeds
* Related entries
* Extensible entry model
* Configurable default template color
* Social share of blog entries (Facebook, Twitter and LinkedIn)
* Markdown fields (https://github.com/torchbox/wagtail-markdown)


.. image:: http://i.imgur.com/d13sGI3.png

Examples of blog sites made with Puput
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* `Open Study Room <https://openstudyroom.org/blog/>`_
* `APSL <https://www.apsl.net/blog/>`_
* `Nautic Advisor <https://www.nauticadvisor.com/blog/>`_
* `Trespams <http://trespams.com/blog/>`_
* `Body Therapy <http://bodytherapy.ru/blog/>`_
* `Astro <http://www.mallorcasoft.es/blog/>`_
* `IP/DE <https://ipde.com/>`_

Setup
~~~~~

The setup process is explained `here <http://puput.readthedocs.io/en/latest/setup.html>`_.

Related repositories
~~~~~~~~~~~~~~~~~~~~
* `wordpress-to-puput <https://github.com/APSL/wordpress-to-puput/>`_: Import your Wordpress blog data into Puput.
* `blogger-to-puput <https://github.com/APSL/blogger-to-puput/>`_: Import your Blogger blog data into Puput.
* `zinnia-to-puput <https://github.com/APSL/zinnia-to-puput/>`_:  Import your Zinnia blog data into Puput.   
* `docker-puput <https://github.com/APSL/docker-puput/>`_:  Docker image for Puput blog.
* `puput-demo <https://github.com/APSL/puput-demo/>`_: An example of blog Django app using Puput.
* `divio-wagtail-puput <https://github.com/divio/divio-wagtail-puput/>`_: A Divio Cloud addon to install the Wagtail Puput weblog.