Metadata-Version: 2.4
Name: bedway
Version: 0.1.0
Summary: bedway
Project-URL: Source, https://github.com/wh1isper/bedway
Author-email: wh1isper <jizhongsheng957@gmail.com>
License: MIT license
License-File: LICENSE
Keywords: bedway
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Requires-Dist: boto3
Requires-Dist: botocore
Requires-Dist: click
Requires-Dist: fastapi
Requires-Dist: numpy
Requires-Dist: pydantic
Requires-Dist: requests
Requires-Dist: tiktoken
Requires-Dist: uvicorn[standard]
Provides-Extra: docs
Requires-Dist: autodoc-pydantic; extra == 'docs'
Requires-Dist: pydata-sphinx-theme; extra == 'docs'
Requires-Dist: sphinx; extra == 'docs'
Requires-Dist: sphinx-click; extra == 'docs'
Provides-Extra: test
Requires-Dist: boto3-stubs[bedrock,bedrock-runtime]; extra == 'test'
Requires-Dist: dirty-equals; extra == 'test'
Requires-Dist: pytest; extra == 'test'
Requires-Dist: pytest-asyncio; extra == 'test'
Requires-Dist: pytest-cov; extra == 'test'
Description-Content-Type: text/markdown

![](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
- More features
- Easy to deploy
- Quick response to community requests

## Install

`pip install bedway`

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 "API_KEY=<api_key_for_this_service>" \
wh1isper/bedway
```

## 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
```
