semvec/pypi-packages huggingface dataset:
continua 0.0.1a1
Continual Learning Framework for Transformers
Requires Python: >=3.9

# continua

[![PyPI - Version](https://img.shields.io/pypi/v/continua.svg)](https://pypi.org/project/continua)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/continua.svg)](https://pypi.org/project/continua)

---

## Table of Contents

- [Installation](#installation)
- [License](#license)

## Installation

```console
pip install continua
```

## License

`continua` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
typerhook 0.1.0
Hooks for typer CLIs.
Requires Python: >=3.8
Keywords: cli, command-line, decorator, parameters, typer

# TyperHook

## Overview

Hook decorators to enhance Typer CLIs. Current hooks:

1. defaultparams: adapted from GitHub user Antoine adm271828,
shares parameters between typer commands

## Installation

```bash
pip install typerhook
```

## Quick Start

```python
import typer
import typerhook
from typing import Annotated

app = typer.Typer()

def debug_params(
    ctx: typer.Context,
    debug: Annotated[bool, typer.Option(help="Enable debug mode")] = False,
    verbose: Annotated[bool, typer.Option(help="Verbose output")] = False,
):
    ctx.ensure_object(dict)
    ctx.obj['debug'] = debug
    ctx.obj['verbose'] = verbose

@app.command()
@typerhook.defaultparams(debug_params)
def hello(
    ctx: typer.Context,
    name: Annotated[str, typer.Option(help="Name to greet")] = "World"
):
    debug_mode = ctx.obj.get('debug', False)
    typer.echo(f"Hello {name}! Debug mode: {debug}; Verbose mode: {verbose}")

@app.command()
@typerhook.defaultparams(debug_params)
def bye(
    ctx: typer.Context,
    name: Annotated[str, typer.Option(help="Name to greet")] = "World"
):
    debug = ctx.obj.get('debug', False)
    verbose = ctx.obj.get('verbose', False)
    typer.echo(f"Goodbye {name}! Debug mode: {debug}; Verbose mode: {verbose}")

if __name__ == "__main__":
    app()
```

## API Reference

### `defaultparams(extra: Callable, *, drop: Optional[Sequence[str]]=None)`

Decorator factory that adds extra parameters to a Typer command.

**Parameters:**
- `extra`: Function containing the extra parameters to inject
- `drop`: List of parameter names to exclude from the final signature

## License

MIT License - see LICENSE file for details.
dirstat 0.1.2
A single-file no-dependency Python program (also usable as a library module) to efficiently gather directory statistics.
Requires Python: >=3.7
Keywords: single, directory, statistics, dirstat, windirstat

PyDirStat
=========

A single-file no-dependency Python program (also usable as a library module) to efficiently gather directory statistics.


## Installation

Install from [the Python Package Index](https://pypi.org/project/dirstat/):

```sh
pip install dirstat
```

Install from [source repository](https://gitlab.com/ipamo/dirstat) (example on Linux):

```sh
sudo wget https://gitlab.com/ipamo/dirstat/-/raw/main/dirstat.py -O /opt/dirstat.py
sudo chmod +x /opt/dirstat.py
sudo ln -s /opt/dirstat.py /usr/local/bin/dirstat
```


## Usage

Run as an application:

```sh
dirstat MYDIR
```

Use as a library:

```py
from dirstat import DirStatOperation

with DirStatOperation(MYDIR) as op:
    op.run()
```

Run the following command to display available options:

```sh
dirstat --help
```


## Contributing

Pull requests are welcome.

See [contributing guidelines](https://gitlab.com/ipamo/dirstat/-/blob/main/CONTRIBUTING.md) and [roadmap](https://gitlab.com/ipamo/dirstat/-/blob/main/docs/ROADMAP.md).


## Legal and credits

This project is licensed under the terms of the [MIT license](https://gitlab.com/ipamo/dirstat/-/raw/main/LICENSE.txt).

It is inspired from the following projects:
- [WinDirStat](https://windirstat.net/) : Windows only.
- [QDirStat](https://github.com/shundhammer/qdirstat) : Linux only.
- Gaël Girodon's [DirStat](https://github.com/GaelGirodon/dirstat) : written in Go.
hack4u-cursos 0.0.1
Biblioteca de hack4u para listar y buscar cursos.
Requires Python: >=3.7

# hack4u-cursos

Un paquete educativo para listar, buscar y analizar cursos de introducción al hacking, Linux y Python.

## 📦 Descripción

`hack4u-cursos` es una librería sencilla en Python que permite trabajar con una lista de cursos predefinidos. Fue creada con fines educativos, ideal para quienes están aprendiendo a crear paquetes en Python o desean explorar una forma práctica de gestionar cursos.

## 🚀 Características

- 📋 Listado de cursos disponibles.
- 🔍 Búsqueda de cursos por nombre.
- ⏱ Cálculo de la duración total de todos los cursos.
- 🔗 Acceso directo a enlaces de los cursos.

## 📚 Cursos incluidos

Actualmente, el paquete incluye los siguientes cursos:

| Curso   | Duración (horas) | Enlace |
|---------|------------------|--------|
| Linux   | 15               | [Ver curso](https://hack4u.io/cursos/introduccion-a-linux/11149/) |
| Python  | 35               | [Ver curso](https://hack4u.io/cursos/python-ofensivo/) |
| Hacking | 53               | [Ver curso](https://hack4u.io/cursos/introduccion-al-hacking/) |

## 🛠 Instalación

```bash
pip install hack4u-cursos
olx-db-wonsky 1.1.8
OLX database models and migrations
Requires Python: >=3.7

# OLX Database Package

A Python package for OLX database models and migrations.

## Installation

```bash
pip install olx-db-wonsky
```

For development installation:

```bash
# Install package in development mode
pip install -e .

# Install development dependencies (including Alembic for migrations)
pip install -r requirements-dev.txt
```

## Configuration

The package uses environment variables for configuration:

- `OLX_DB_URL`: Database URL (required)
- `OLX_DEFAULT_SENDING_FREQUENCY_MINUTES`: Default sending frequency in minutes (default: 60)
- `OLX_DEFAULT_LAST_MINUTES_GETTING`: Default last minutes for getting items (default: 30)

You can set these environment variables directly or use a `.env` file.

## Usage

### Database Models

```python
from olx_db.db import get_db, MonitoringTask, ItemRecord

# Use the database session
with next(get_db()) as db:
    tasks = db.query(MonitoringTask).all()
    # ...
```

### Migrations

#### Local Development

For local development, use the provided script:

```bash
# Create a new migration
python scripts/run_migrations.py makemigrations "migration message"

# Apply migrations
python scripts/run_migrations.py migrate
```

#### Docker

To run migrations in Docker:

```bash
# Start the database and run migrations
docker-compose up migrations

# Or build and run locally
./scripts/build_and_run_local.sh
```

#### Building and Publishing Docker Image

To build and push the migrations Docker image to Docker Hub:

```bash
# Build and push for multiple architectures (amd64, arm64)
./scripts/build_and_push.sh
```

## Project Structure

```
├── alembic/                 # Alembic migrations
│   └── versions/            # Migration versions
├── olx_db/                  # Main package
│   └── db/                  # Database models and functions
├── scripts/                 # Utility scripts
│   ├── run_migrations.py    # Script to run migrations
│   ├── build_and_push.sh    # Script to build and push Docker image
│   └── build_and_run_local.sh # Script to build and run locally
├── alembic.ini              # Alembic configuration
├── docker-compose.yml       # Docker Compose configuration
├── migrations.Dockerfile    # Dockerfile for migrations
└── pyproject.toml           # Package configuration
```

## Docker Support

Example `docker-compose.yml`:

```yaml
version: '3'

services:
  db:
    image: postgres:13
    environment:
      - POSTGRES_USER=myuser
      - POSTGRES_PASSWORD=mypassword
      - POSTGRES_DB=mydatabase
    ports:
      - "5432:5432"
    volumes:
      - postgres_data:/var/lib/postgresql/data

  migrations:
    build:
      context: .
      dockerfile: migrations.Dockerfile
    environment:
      - OLX_DB_URL=postgresql://myuser:mypassword@db:5432/mydatabase
    depends_on:
      - db
    command: python /app/scripts/run_migrations.py migrate

volumes:
  postgres_data:
```