semvec/pypi-packages huggingface dataset:
dichotomy-patterns 0.0.2
A dependency injection container for python applications
License: MIT
Keywords: dependency injection container inversion control


dichotomy
=========


.. image:: https://github.com/abantos/dichotomy/actions/workflows/python-verify-library.yml/badge.svg
   :target: https://github.com/abantos/dichotomy/actions/workflows/python-verify-library.yml
   :alt: Verify Python Library


.. image:: https://github.com/abantos/dichotomy/actions/workflows/python-release-pypi.yml/badge.svg
   :target: https://github.com/abantos/dichotomy/actions/workflows/python-release-pypi.yml
   :alt: Upload Python Package


A dependency injection container for python applications.
bpcli 0.3.0
Build apps with buildpacks and Dagger
License: MIT
Requires Python: >=3.10

# bpcli

Uses [Dagger](https://dagger.io/) Python SDK to build an app with
[buildpacks](https://buildpacks.io/) and pushes the built image to a registry.

`bpcli` calls the Cloud Native Buildpacks [lifecycle](https://buildpacks.io/docs/concepts/components/lifecycle/)
commands from within a [builder](https://buildpacks.io/docs/concepts/components/builder/)
container to build or rebase images.

It does not rely on the [Pack CLI](https://buildpacks.io/docs/tools/pack/).

Also `bpcli` does not require Docker, [if a buildkit daemon is available](https://docs.dagger.io/1013/operator-manual/#custom-runtime-setup). This has currently been tested with [Podman](https://podman.io/).

## Install

```
pip install bpcli
```

## Usage

### Build

```
Usage: bpcli build [OPTIONS] IMAGE

  Generate app image from source code using the provided image name.

Options:
  --builder TEXT             Builder image  [default:
                             paketobuildpacks/builder:base]
  --path TEXT                Path to app dir  [default: .]
  --log-level TEXT           Log level  [default: info]
  --docker-config-json TEXT  Path to docker config json file with registry
                             credentials
  --env TEXT                 Set an environment variable
  --help                     Show this message and exit.
```

#### Examples

```
bpcli build --path=/path/to/your/go/app <your image name>
```

Build a PHP application using the paketo full builder, with debug logs,
registry authentication and report containing the image tag and digest:

```
bpcli build \
  --path=/path/to/your/php/app \
  --builder=paketobuildpacks/builder:full \
  --log-level=debug foo/bar \
  --docker-config-json=$HOME/.docker/config.json > report.toml
```

Adding environment variables:

```
bpcli build --path=/path/to/your/app foo/bar --env FOO=bar --env BAR=foo
```

### Rebase

```
Usage: bpcli rebase [OPTIONS] IMAGE

  Rebase app image.

Options:
  --builder TEXT             Builder image  [default:
                             paketobuildpacks/builder:base]
  --log-level TEXT           Log level  [default: info]
  --docker-config-json TEXT  Path to docker config json file with registry
                             credentials
  --help                     Show this message and exit.
```

#### Example

```
bpcli rebase --log-level=debug --docker-config-json=$HOME/.docker/config.json foo/bar
```
flake8-fastapi-route-case 0.1.0
Flake8 extension to check FastAPI routes all use the same case
License: MIT
Requires Python: >=3.8.1

# Flake8 FastAPI Route Case

A Flake8 FastAPI plugin to ensure all FastAPI routes follow the same case.

## Rationale

In a project, you may have many FastAPI endpoints, this plugin will ensure
all FastAPI routes follow the same case so you don't end up with mismatched
case.

```python
@router.get("/users/user_info")
def get_user_info():
    ...

# should be /users/user_info to follow naming convention
@router.post("/users/userInfo")
def post_user_info():
    ...
```