semvec/pypi-packages huggingface dataset:
logbless 0.1.4
Simple logs for any app
Requires Python: >=3.12
Keywords: logs, logging, log viewer, real-time, monitoring, FastAPI, lightweight

# Logbless

**Logbless** is a simple file-based real-time log viewer.

---

### Installation

#### macos/linux
```shell
wget -qO- https://astral.sh/uv/install.sh | sh
uv venv --python 3.12
source .venv/bin/activate
uv pip install logbless
```

#### windows
```shell
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
uv venv --python 3.12
.venv\Scripts\activate
uv pip install logbless
```

---

### Requirements

Your logs must follow the format:

```python
_log_format = "%(asctime)s - [%(levelname)s] - %(name)s - (%(filename)s).%(funcName)s(%(lineno)d) - %(message)s"
```

Example with logging

```python
import logging

_log_format = "%(asctime)s - [%(levelname)s] - %(name)s - (%(filename)s).%(funcName)s(%(lineno)d) - %(message)s"
logging.basicConfig(
  level=logging.INFO, format=_log_format, encoding="utf-8", filename="app.log"
)
```

Example log entry:

```text
2025-01-14 07:25:00,779 - [INFO] - aiogram.event - (dispatcher.py).feed_update(172) - Update id=126061252 by bot id=6101975097
```

---

### Usage

1. **Initialize the application:**

   Before starting the application, create a configuration file by running:

   ```shell
   uv run logbless init
   ```

   After executing the command, a file named `logbless_conf.yaml` will be created. You need to edit this file before running the application.

   Example of `logbless_conf.yaml`:

   ```yaml
   authentication:
     login: admin             # Login for accessing the web interface
     password: admin          # Password for accessing the web interface
   host: 127.0.0.1            # Host where the server will run
   log_filename: logs.log     # Path to the log file to be viewed
   path: /logs                # URL path for accessing logs
   port: 8070                 # Port to start the server
   title: Logbless Log viewer # Title of the web page
   ```

   Adjust the file according to your needs.

2. **Run the application:**

   After editing the configuration file, start the application by running:

   ```shell
   uv run logbless run
   ```

   The application will start and be available at `http://127.0.0.1:8070` (or another address if you modified the `host` and `port` settings).


---
![view.png](assets/view_eng.png)
bioDP 0.1.4
pi

# bioDP

A package for biological data processing, especially related to metabodirect
## Installation

You can install this package using pip:
```bash
pip install bioDP
```
## Usage

### Command

```bash
bioDP-metabodirect [input_folder] [output_folder and fileName]
```  
 eg.`bioDP-metabodirect C:\data C:\dispose\report.csv`  

`bioDP-metabodirect --help`

### Import Package

```python
from bioDP.metabodirect import excel_process
```
mathspell 0.1.0
A library for converting numbers to words contextually.
Requires Python: >=3.8

# MathSpell

MathSpell is a Python package for converting numbers into contextually appropriate words, such as "twenty-first century" for years or "two thousand and twenty-three" for general numbers.

## Installation

1. Install the package:
    ```bash
    pip install mathspell
    ```

2. Download the required spaCy language model:
    ```bash
    python -m spacy download en_core_web_sm
    ```

3. Upgrade Pint to it's latest version if it is incompatible with the current version of numpy.
    ```bash
    pip install --upgrade pint
    ```

## Usage

After installation, you can use MathSpell to process text containing numbers. For example:

```python
from mathspell import analyze_text

text = "This is the 21st century. I was born in 1995."
converted_text = analyze_text(text)
print(converted_text)
# Output: "This is the twenty-first century. I was born in nineteen ninety-five."
```

## **Further Examples**

### **1. Year Conversion**
```python
from mathspell import analyze_text

input_text = "Something happened in 2021."
output = analyze_text(input_text)
print(output)
# Output: "Something happened in twenty twenty-one."
```

---

### **2. Ordinal Numbers**
```python
from mathspell import analyze_text

input_text = "This is my 3rd attempt to fix the bug."
output = analyze_text(input_text)
print(output)
# Output: "This is my third attempt to fix the bug."
```

---

### **3. Dates and Years**
```python
from mathspell import analyze_text

input_text = "My birthday is on 4th April, 1993."
output = analyze_text(input_text)
print(output)
# Output: "My birthday is on fourth April, nineteen ninety-three."
```

---

### **4. Quantities**
```python
from mathspell import analyze_text

input_text = "This contains 15 boxes."
output = analyze_text(input_text)
print(output)
# Output: "This contains fifteen boxes."
```

### **5. Handling Ordinal and Non-Ordinal Context**
```python
from mathspell import analyze_text

input_text = "This is the 1st floor, and the elevator can hold 5 people."
output = analyze_text(input_text)
print(output)
# Output: "This is the first floor, and the elevator can hold five people."
```

---

### **6. Temperature Conversion**
```python
from mathspell import analyze_text

input_text = "The temperature is expected to be 25 degrees tomorrow."
output = analyze_text(input_text)
print(output)
# Output: "The temperature is expected to be twenty-five degrees tomorrow."
```

---

### **7. Complex Sentence**
```python
from mathspell import analyze_text

input_text = "The 2nd prize was awarded in 2022 for the 10th time."
output = analyze_text(input_text)
print(output)
# Output: "The second prize was awarded in twenty twenty-two for the tenth time."
```
uvrun-simonb97 0.1.0
Run Python scripts with inline metadata directly from URLs
Requires Python: >=3.11

# uvrun

Run Python scripts with inline metadata directly from URLs. This simple tool integrates with [uv](https://github.com/astral-sh/uv) to provide a seamless experience for running Python scripts from GitHub repositories.

## Features

- Run Python scripts directly from GitHub repositories
- Manage multiple script repositories
- Smart script discovery with inline metadata
- Pass arguments directly to scripts and uv
- List available scripts with a nice directory structure

## Installation

```bash
pip install uvrun_simonb97
```

## Usage

Add a repository:

```bash
uvrun --add-repo https://github.com/username/repo
```

List available scripts:

```bash
uvrun --list
```

Run a script:

```bash
uvrun script_name arg1 arg2
```

With specific Python version:

```bash
uvrun script_name --uv-args "--python 3.11"
```

## Script Metadata

To make a script discoverable by uvrun, add the following metadata:

```python
# /// script
# /// description: What your script does
# ///
```

## License

[MIT License](LICENSE)