semvec/pypi-packages huggingface dataset:
sine-generator 0.1.0
A library to generate sinusoidal waveforms with a DC offset.
Requires Python: >=3.6

# sine_generator

A library to generate sinusoidal waveforms with a DC offset.
Usage: import sine_generator as gen
t,sine_wave=gen.sine_generate(amplitude, frequency, sampling_rate, duration)
#t: Time array
#sine_wave_with_offset: Sine wave with DC offset

## Installation

```sh
pip install sine_generator
efficientmetrics 0.1.0
A package for efficient calculation of classification metrics.
Requires Python: >=3.6

# EfficientMetrics

EfficientMetrics is a Python package for efficient calculation of classification metrics and skicit-learn's classification_report.

## Installation

```bash
pip install efficientmetrics
```

## Sample Usage

```python
from efficientmetrics import EfficientMetrics
import numpy as np

y_true = np.array([0, 1, 2, 2, 0, 1])
y_preds = np.array([0, 2, 2, 2, 0, 0])
classes = np.array([0, 1, 2])

eff_metrics = EfficientMetrics(y_true, y_preds, [0, 1])
eff_metrics.calculate_confusion_matrix()
eff_metrics.classification_report()
print(eff_metrics.confmat)
print(eff_metrics.report)
```
here-routing 1.0.1
Asynchronous Python client for the HERE Routing V8 API
Requires Python: >=3.10
Keywords: aiohttp, asyncio, here, here-api, routing

# here_routing

Asynchronous Python client for the HERE Routing V8 API

[![GitHub Actions](https://github.com/eifinger/here_routing/workflows/CI/badge.svg)](https://github.com/eifinger/here_routing/actions?workflow=CI)
[![PyPi](https://img.shields.io/pypi/v/here_routing.svg)](https://pypi.python.org/pypi/here_routing)
[![License](https://img.shields.io/pypi/l/here_routing.svg)](https://github.com/eifinger/here_routing/blob/master/LICENSE)
[![codecov](https://codecov.io/gh/eifinger/here_routing/branch/master/graph/badge.svg)](https://codecov.io/gh/eifinger/here_routing)
[![Downloads](https://pepy.tech/badge/here_routing)](https://pepy.tech/project/here_routing)

## Installation

```bash
pip install here_routing
```

## Usage

```python
import asyncio

from here_routing import HERERoutingApi, Place, Return, TransportMode

API_KEY = "<YOUR_API_KEY>"


async def main() -> None:
    """Show example how to get duration of your route."""
    async with HERERoutingApi(api_key=API_KEY) as here_routing:
        response = await here_routing.route(
            transport_mode=TransportMode.CAR,
            origin=Place(latitude=50.12778680095556, longitude=8.582081794738771),
            destination=Place(latitude=50.060940891421765, longitude=8.336477279663088),
            return_values=[Return.SUMMARY],
        )
        print(
            f"Duration is: {response['routes'][0]['sections'][0]['summary']['duration']}"
        )


if __name__ == "__main__":
    asyncio.run(main())
```
air-hockey 0.1.3
Python package for ROS integrated air-hockey table designed at METU ROMER
Requires Python: >=3.8

# Air Hockey
The codes that run on the Raspberry Pi of the air hockey table. The Raspberry Pi has Ubuntu 24.04 Server running.

### Python API

#### NeoPixel Controller
Python library to control NeoPixels of the air hockey table. Example usage:
```
from air_hockey.neopixel_controller import NeoPixel_Controller

controller = NeoPixel_Controller()

controller.fill((100, 0, 255)) # Set every pixel the specified rgb color.

controller.setFromFlatArray([(100, 0, 255),(80, 20, 255),(60, 40, 255),(40, 60, 255),(20, 80, 255),(0, 100, 255)]) # Sets pixels from array in order.
```
#### Commander
Python library to control micro robots wirelessly. Desk fan example:
```
from air_hockey.microrobot_commander import Commander
import time,math

commander = Commander()
theta = 0
while True:
    mag = 80*math.sin(theta)
    commander.send(1, int(mag), int(-mag), 200)
    theta = theta + 0.15
    time.sleep(0.1)
```
#### Localization
Python library to obtain pose data of micro robots. Example usage:
```
from air_hockey.localize_microrobot import Locator
import time

locator = Locator()
while True:
    print(locator.getPoses())
    time.sleep(0.5)
```
postprocessing_variant_calls 0.3.0
This hosts multiple scripts necessary for filtering and processing of variant calls in the vcfs/txt file generated by callers.
Requires Python: >=3.8

# Post-processing of variant calls

This package provides a variety of commands for manipulating different types of common outputs (e.g. mafs, vcf and txt files) from different bioinformatic variant callers such as mutect and vardict. 

Supported File Types:
- [maf](docs/MAF.md) 
- [vardict](docs/VARDICT.md)

# Installation  

For general use you can run: `pip install postprocessing_variant_calls`
or a tagged version with `pip install git+https://github.com/msk-access/postprocessing_variant_calls.git@<version>`

For setting up a development environment please see the [Setting up a Dev Environment](#Setting-up-a-Dev-Environment) section.

# Usage

See [CLI](docs/CLI.md) for commmand line usage of the package.

# Setting up a Dev Environment 

## Install External Dependencies
Have an environment with python >= 3.8 installed. 

Install poetry: 

```bash
pip install poetry
```

## Install Package Dependencies

Then install project dependencies with Poetry.

```bash
cd /path/to/postprocessing_variant_calls
poetry install .
```

## Accessing Environment

To access the environment after initial setup up run: 

```bash
poetry shell
```

# Contributing to Documentation

The Gitbook for this repository is configured so changes are written in Gitbook and synced with the `docs` branch. 

To contribute to the documentation, you can write your changes in [Gitbook](https://app.gitbook.com/o/-LhMNgvjydB3TFWAUMVb/s/VBp8SqbRAs28AQCVNoIS/), request a review, and merge the changes. Keep in mind, you will need access to the organization to contribute. 

Each file-type supported should have a section in the Gitbook detailing the implementation of the file-type and a justification of it's operations. For example, the `maf` file-type has it's own section, which includes a description of how a maf is defined internally in the package and a justification of it's operations and how to use them.

Beyond file-type sections, you will also notice a section called `cli`, which lists all commands in the `postprocessing_variant_calls` package. Do not manually edit this section. This section is created using the `typer-cli` package, which uses the typer `help` parameters specified in typer commands to generate documentation. It is automatically updated by the git-action, `.github/workflows/document_package.yml` upon a push to the `main` branch. To make sure the `cli.md` document updates to include newly added commands, specify all relevant typer `help` parameters.

If you'd like to see a mock of your typer commands as they'll appear in the `cli.md` document, you can run: `poetry run typer postprocessing_variant_calls.main utils docs > docs/cli.md` in a properly configured dev environment. Note that this file should not be included in your PRs. The `cli.md` should be only updated through the git-action, `.github/workflows/document_package.yml`.
argsync 1.2.1
Google Drive syncing script
Requires Python: >=3.8

# Auto-ReAuth-GSync

A google drive sync tool that does not requires re-authorize.

Some of the code was inspired by the [Google-Drive-sync](https://github.com/dtsvetkov1/Google-Drive-sync) project and refactored with PyDrive2 packages.

# Installation

It is recommanded to use pipx for an isolated environment.

```
pipx install argsync
```

# Setup

1. Enable a Google Drive API over [GCP](https://console.cloud.google.com) and retrieve client id and client secret. Make sure you include the account you want to link with this tool when adding user for your API.
2. Run `argsync setup`, and input your client id and client secret. 
3. When first time running `argsync push` or `argsync pull`, your will be redirected to authorization page. And that's it. From now on, the tool will refresh the credentials automatically. 
4. To switch for different account, run `argsync remove-profile` to remove the credentials and re-authorize with another account.

# Disclaimer

This project is not widely tested. Some issues might occur. Anyone is welcomed to contribute.