semvec/pypi-packages huggingface dataset:
bedway 0.2.2
bedway
License: MIT license
Requires Python: >=3.10
Keywords: bedway

![](https://img.shields.io/github/license/wh1isper/bedway)
![](https://img.shields.io/github/v/release/wh1isper/bedway)
![](https://img.shields.io/docker/image-size/wh1isper/bedway)
![](https://img.shields.io/pypi/dm/bedway)
![](https://img.shields.io/github/last-commit/wh1isper/bedway)
![](https://img.shields.io/pypi/pyversions/bedway)

# bedway

Self-host and maintained [bedrock-access-gateway](https://github.com/aws-samples/bedrock-access-gateway), which is under [MIT No Attribution License](https://github.com/aws-samples/bedrock-access-gateway/blob/093c6fa586be04964820baaf1e3dca431f1fe823/LICENSE)

Why this project:

- No AWS infrastructure needed
- Improved performance: https://github.com/aws-samples/bedrock-access-gateway/issues/22
- Bug fix and new features: https://github.com/aws-samples/bedrock-access-gateway/issues/92, https://github.com/aws-samples/bedrock-access-gateway/issues/88
- Easy to deploy
- Quick response to community requests

## Install

`pip install bedway` then `bedway serve`

Or use docker image

`docker pull wh1isper/bedway`

## Usage

```bash
docker run --name bedway \
-p 9128:9128 \
-e "AWS_ACCESS_KEY_ID=<access_key_id>" \
-e "AWS_SECRET_ACCESS_KEY=<secret_access_key>" \
-e "AWS_REGION=<aws_region>" \
-e "DEFAULT_MODEL_NAME=<default_model_name>" \
-e "API_KEY=<api_key_for_this_service>" \
wh1isper/bedway
```

See more settings in [setting.py](./bedway/setting.py)

## Develop

Install pre-commit before commit

```
pip install pre-commit
pre-commit install
```

### Unittest

Install package locally

```
pip install -e .[test]
```

TODO: Write some test..

```
pytest -v
```