semvec/pypi-packages huggingface dataset:
coloors 1.0.0
Simple Python package to print & show colored text in the terminal.
Requires Python: >=3.0

# Coloors

A simple Python package to print/show colored text in the terminal.
Developed it while doing some side projects.
## Installation

```bash
pip install coloors
```

## Usage

```python
from coloors import printp, printb, printc, printg, printy, printr, printu, printbld
from coloors import r, b, g, p, c, bld, u, ye

printp("This is purple/rose!")
printb("This is blue!")
printc("This is cyan!")
printg("This is green!")
printy("This is yellow!")
printr("This is red!")
printu("This is underlined!")
printbld("This is bold!")

red_text = r("This text will be red.")
blue_text = b("This text will be blue.")
green_text = g("This text will be green.")
purple_text = p("This text will be purple/rose.")
cyan_text = c("This text will be cyan.")
bold_text = bld("This text will be bold.")
underline_text = u("This text will be underlined.")
yellow_text = ye("This text will be yellow.")

print(red_text)
print(blue_text)
print(green_text)
print(purple_text)
print(cyan_text)
print(bold_text)
print(underline_text)
print(yellow_text)
```

## Functions

The package provides the following functions for printing colored text:

* `printp(s)`: Prints the string `s` in purple or rose (depends on your color blindness).
* `printb(s)`: Prints the string `s` in blue.
* `printc(s)`: Prints the string `s` in cyan.
* `printg(s)`: Prints the string `s` in green.
* `printy(s)`: Prints the string `s` in yellow.
* `printr(s)`: Prints the string `s` in red.
* `printu(s)`: Prints the string `s` with underline.
* `printbld(s)`: Prints the string `s` in bold.

It also provides functions to return colored strings without immediately printing them:

* `r(s)`: Returns the string `s` in red.
* `b(s)`: Returns the string `s` in blue.
* `g(s)`: Returns the string `s` in green.
* `p(s)`: Returns the string `s` in purple.
* `c(s)`: Returns the string `s` in cyan.
* `bld(s)`: Returns the string `s` in bold.
* `u(s)`: Returns the string `s` with underline.
* `ye(s)`: Returns the string `s` in yellow.

## Dependencies

Python, haha.

## License

*GNU GENERAL PUBLIC LICENSE*
orofacIAnalysis 0.1.2
A library for analyzing chewing patterns using computer vision
Requires Python: >=3.7

# orofacIAnalysis

orofacIAnalysis is a Python library for analyzing chewing patterns using computer vision and facial landmark detection. It uses MediaPipe to track jaw movements and provides tools for cycle detection and analysis.

## Installation

```bash
pip install orofacIAnalysis
```

## Features

- Jaw movement tracking using facial landmarks
- Chewing cycle detection and analysis
- Various signal smoothing methods
- Utilities for data visualization and analysis

## Usage

```python
from orofacIAnalysis import ChewAnnotator

# Analyze a video file
annotator = ChewAnnotator(video_path="path/to/video.mp4")
cycles = annotator.analyze_chewing()

# Print cycle information
for cycle in cycles:
    print(f"Chew count: {len(cycle['directions'])}")
    print(f"Left: {cycle['left']}, Right: {cycle['right']}, Middle: {cycle['middle']}")
```

## Advanced Usage

```python
from orofacIAnalysis import Cycle, SmoothingMethods
import numpy as np

# Create a cycle manually
cycle = Cycle(start_frame=10)
cycle.jaw_movements = np.array([...])  # Your jaw movement data
cycle.fit()

# Print cycle stats
print(cycle)

# Apply different smoothing methods
from orofacIAnalysis.smoothing import apply_smoothing

smoothed_signal = apply_smoothing(jaw_movements, "butterworth")
```

## License

This project is licensed under the MIT License - see the LICENSE file for details.
dtools.datastructures 0.25.2
### Developer Tools - data structures for algorithms **DEPRICATED**
Requires Python: >=3.12
Keywords: datastructures, data structures, fifo, lifo, stack, queue, SplitEnd

# Developer Tools - data structures useful for algorithms

**DEPRECATED** This project was broken up into separate projects.

* package dtools.datastructures.splitends `->` dtools.splitends
* module dtools.datastructures.tuples `->` dtools.tuples
* module dtools.datastructures.queues `->` dtools.queues

Python package of data structures which support the use and
implementation of algorithms.

- **Repositories**
  - [dtools.datastructures][1] project on *PyPI*
  - [Source code][2] on *GitHub*
- **Detailed documentation**
  - [Detailed API documentation][3] on *GH-Pages*

This project is part of the
[Developer Tools for Python][4] **dtools.** namespace project.

## Overview

Data structures allowing developers to focus on the algorithms they are
using instead of all the "bit fiddling" required to implement behaviors,
perform memory management, and handle coding edge cases. These data
structures allow iterators to leisurely iterate over inaccessible copies
of internal state while the data structures themselves are free to
safely mutate. They are designed to be reasonably "atomic" without
introducing inordinate complexity. Some of these data structures allow
data to be safely shared between multiple data structure instances by
making shared data immutable and inaccessible to client code.

- functional & imperative programming styles supported
  - functional programming encouraged
  - project endeavors to remain Pythonic
    - methods which mutate objects don't return anything
      - like Python lists
    - in caparisons identity is considered before equality
      - like Python builtins

Sometimes the real power of a data structure comes not from what it
empowers you to do, but from what it prevents you from doing to
yourself.

______________________________________________________________________

[1]: https://pypi.org/project/dtools.datastructures/
[2]: https://github.com/grscheller/dtools-datastructures/
[3]: https://grscheller.github.io/dtools-docs/datastructures/
[4]: https://github.com/grscheller/dtools-docs
simple-vertex-bridge 0.3.1
A simple Vertex AI proxy that automatically refresh tokens for you.
Requires Python: >=3.13

# Simple Vertex Bridge

A simple Vertex AI proxy that automatically refresh tokens for you.

[[中文]](README.zh.md)

## Feature
- OpenAI style chat completion API with token attached
- OpenAI style model list API
- Automatically refresh tokens
- Stream output
- Reused h2 connection

## Usage
### Prerequisites
- Install [uv](https://docs.astral.sh/uv/getting-started/installation).

### Authentication
There are two ways to authenticate:
1. **By gcloud CLI**
   - Install [gcloud CLI](https://cloud.google.com/sdk/docs/install).
   - Run `gcloud auth application-default login` to authenticate.
2. **By service account key**
   - Create a service account key in the Google Cloud Console, according to [this documentation](https://cloud.google.com/iam/docs/keys-create-delete#creating).
   - Download the json key file.
   - Set the `GOOGLE_APPLICATION_CREDENTIALS` environment variable to the path of the key file.

### Launch
- **Note:** `svbridge-config.json` will be created in **the current directory**.
1. You can run `uvx simple-vertex-bridge` to launch the bridge directly from pypi.
2. Or clone this repo and enter and run `uv sync`, then activate venv and run `python svbridge.py`.

### Now your API is ready
- Model List: `http://localhost:8086/v1/models`, v1 can be omitted.
- API Endpoint: `http://localhost:8086/v1/chat/completions`, v1 can be omitted.
- API Key: Default is anything (if you specify a key, you must use it), will be replaced with Vertex AI token.

## CLI Arguments
The bridge uses a configuration file `svbridge-config.json` located in the current working directory. It's created automatically on the first run if it doesn't exist.

You can override the configuration using command-line arguments when launching the bridge. These arguments will also update the configuration file.

- `-p [PORT]`, `--port [PORT]`: Port to listen on (default: 8086).
- `-b [BIND]`, `--bind [BIND]`: Host address to bind to (default: localhost).
- `-k [KEY]`, `--key [KEY]`: Specify the API key required for authentication. If not set (default), any key will be accepted.
- `--auto-refresh`/`--no-auto-refresh`: Enable/disable automatic background refresh of the Vertex token (default: enabled).
- `--filter-model-names`/`--no-filter-model-names`: Enable/disable filtering of common model names in the `/models` endpoint (default: enabled).
- `-h`, `--help`: Show help message.

Example:
```bash
# Run publicly on port 8848 and set key 'svb-cRztHvmE50'
python svbridge.py -p 8848 -b 0.0.0.0 -k svb-cRztHvmE50
```

## License

The Unlicense.

TBH I dont care what you do with this code, just dont sue me if it breaks something. uwu
miscreaders 0.2.1
Parsers for output of various programs
Requires Python: >=3.10
Keywords: Loop Habits Tracker, Moonwatch.rs, StayFree

[![CI - build](https://img.shields.io/github/actions/workflow/status/tkarabela/miscreaders/main.yml?branch=master)](https://github.com/tkarabela/miscreaders/actions)
[![CI - coverage](https://img.shields.io/codecov/c/github/tkarabela/miscreaders)](https://app.codecov.io/github/tkarabela/miscreaders)
[![MyPy & Ruffle checked](https://img.shields.io/badge/MyPy%20%26%20Ruffle-checked-blue?style=flat)](https://github.com/tkarabela/pysubs2/actions)
![PyPI - Version](https://img.shields.io/pypi/v/miscreaders.svg?style=flat)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/miscreaders.svg?style=flat)
![License](https://img.shields.io/pypi/l/miscreaders.svg?style=flat)

# miscreaders

This library provides parsers for output of various programs.

To learn more, please [see the documentation](https://miscreaders.readthedocs.io).

## List of readers

| Program                                                   | Description                                        |
|-----------------------------------------------------------|----------------------------------------------------|
| [StayFree](https://stayfreeapps.com/)                     | Device usage statistics (mobile, desktop, browser) |
| [Loop Habit Tracker](https://github.com/iSoron/uhabits)   | Habit tracker (Android)                            |
| [Moonwatch.rs](https://github.com/tkarabela/moonwatch-rs) | Privacy-focused device usage statistics (desktop)  |

## Installation

```bash
pip install miscreaders
```

## Example

```python
>>> from miscreaders.stayfree import StayfreeXlsReader
>>> reader = StayfreeXlsReader("StayFree Export - Total Usage - 8_9_24.xls")
>>> reader.get_usage_time_df()
shape: (6_222, 4)
┌────────────┬─────────────┬──────────────┬────────┐
│ date       ┆ app         ┆ duration     ┆ device │
│ ---        ┆ ---         ┆ ---          ┆ ---    │
│ date       ┆ str         ┆ duration[μs] ┆ str    │
╞════════════╪═════════════╪══════════════╪════════╡
│ 2023-11-10 ┆ addititious ┆ 0µs          ┆        │
│ 2023-11-11 ┆ addititious ┆ 0µs          ┆        │
│ 2023-11-12 ┆ addititious ┆ 0µs          ┆        │
│ 2023-11-13 ┆ addititious ┆ 0µs          ┆        │
│ 2023-11-14 ┆ addititious ┆ 6s           ┆        │
│ …          ┆ …           ┆ …            ┆ …      │
│ 2024-03-06 ┆ xylometer   ┆ 53m 8s       ┆        │
│ 2024-03-07 ┆ xylometer   ┆ 0µs          ┆        │
│ 2024-03-08 ┆ xylometer   ┆ 30m 54s      ┆        │
│ 2024-03-09 ┆ xylometer   ┆ 0µs          ┆        │
│ 2024-03-10 ┆ xylometer   ┆ 0µs          ┆        │
└────────────┴─────────────┴──────────────┴────────┘
```

## License

MIT, see [LICENSE.txt](./LICENSE.txt).