semvec/pypi-packages huggingface dataset:
docker-kit 0.2.0
A toolkit for common Docker tasks
License: MIT
Requires Python: >=3.12
Keywords: cli, containers, docker, toolkit

# docker-kit

A toolkit for common Docker tasks.

## Installation

```bash
uvx docker-kit --help
```

Or install globally:

```bash
uv tool install docker-kit
```

## Commands

### remove-orphans

Remove stopped containers with hex suffixes (orphaned compose containers).

```bash
# Dry run (default) - shows what would be deleted
uvx docker-kit remove-orphans

# Actually delete the containers
uvx docker-kit remove-orphans --apply
uvx docker-kit remove-orphans -a

# Also remove anonymous volumes
uvx docker-kit remove-orphans --apply --volumes
uvx docker-kit remove-orphans -av

# Custom hex suffix lengths (default: 12)
uvx docker-kit remove-orphans --hex-lens 12,64
```

### nuke-kids

Shorthand for `remove-orphans --apply --volumes`.

```bash
uvx docker-kit nuke-kids
```

## Development

```bash
# Install dependencies
uv sync

# Run linting
uv run ruff format .
uv run ruff check .

# Run type checking
uv run pyright

# Run tests
uv run pytest -v
```

## License

MIT
tiny-service-core 0.1.2
🪐 Shared functionality for tiny microservices
License: MIT
Requires Python: >=3.12
Keywords: async, fastapi, microservice, core

# 🪐 Tiny Service Core

[![CI][ci-badge]][ci]
[![Coverage][cov-badge]][cov]
[![License][license-badge]][license]
[![Version][ver-badge]][pypi]
[![Python][py-badge]][pypi]

This library implements common functions that allows
you to build tiny microservices with less boilerplate.

[ci-badge]: https://img.shields.io/github/actions/workflow/status/Jamim/tiny-service-core/ci.yml.svg
[ci]: https://github.com/Jamim/tiny-service-core/actions/workflows/ci.yml
[cov-badge]: https://codecov.io/github/Jamim/tiny-service-core/graph/badge.svg
[cov]: https://app.codecov.io/github/Jamim/tiny-service-core
[license-badge]: https://img.shields.io/github/license/Jamim/tiny-service-core
[ver-badge]: https://img.shields.io/pypi/v/tiny-service-core
[pypi]: https://pypi.org/project/tiny-service-core/
[py-badge]: https://img.shields.io/pypi/pyversions/tiny-service-core
[license]: https://github.com/Jamim/tiny-service-core/blob/main/LICENSE

## Installation

Install with `pip`, including optional dependencies:

```shell
pip install tiny-service-core[cache,db,http-client]
```

Clearly, you can use any other Python package manager instead.  
I personally prefer using [uv][uv] nowadays.

```shell
uv add tiny-service-core --extra cache --extra db --extra http-client
```

[uv]: https://docs.astral.sh/uv/

## Dependencies

Tiny Service Core is highly opinionated.  
Current version glues together these components:
  - [FastAPI][fastapi]
  - [pydantic-settings][pydantic-settings]
  - [Sentry][sentry]
  - with `cache` [extra][installing-extras]
    * [Redis][redis]
  - `db`
    * [SQLModel][sqlmodel]
    * [asyncpg][asyncpg]
    * [Alembic][alembic]
  - `http-client`
    * [HTTPX][httpx]

[fastapi]: https://fastapi.tiangolo.com
[pydantic-settings]: https://docs.pydantic.dev/latest/concepts/pydantic_settings/
[sentry]: https://docs.sentry.io/platforms/python/
[redis]: https://github.com/redis/redis-py
[sqlmodel]: https://sqlmodel.tiangolo.com
[asyncpg]: https://github.com/MagicStack/asyncpg
[alembic]: https://alembic.sqlalchemy.org
[httpx]: https://www.python-httpx.org

[installing-extras]: https://packaging.python.org/en/latest/tutorials/installing-packages/#installing-extras