Declarative, instant REST APIs for base AI Models based on instarest, a FastAPI, Pydantic, SQLAlchemy, and PostgreSQL library, and MinIO.
Project description
Getting Started
To get started with aimbase for your application, visit the docs at https://aimbase.erob.io/
To contribute to aimbase, see the contributing section below.
Contributing
Getting Started Locally
-
Launch postgres and pgadmin via docker-compose
docker-compose up --build. -
Keeping your containers running, open a new terminal with the root of this repo as the working directory. Install
poetry:pip install poetry(or usepipxon link here if you prefer isolated envs, or consider usingconda). -
Create and enter the virtual environment:
poetry shell -
Install the dependencies
poetry install -
Start the app:
uvicorn examples.example_app:auto_app --reload. -
Open
localhost:8000/v1/docsand start interacting with swagger! -
You can shut down and your db / minio data will persist via docker volumes.
MinIO
- The MinIO console is available at
localhost:9001. Login with user:miniouserand password:minioadminif you launched the containers withdocker-compose up --build.
Hooks and Tests
-
Set up the precommit hook with
pre-commit install. -
Run tests and get coverage with
pytest --cov, and get html reports for vs code live server (or any server) withpytest --cov --cov-report=html:coverage_re -
Open a pull request against the repo! Please write tests, your coverage will automatically be added as a comment to any PR via GH actions.
Viewing Docs Locally
- Install docs dependencies with
pip install -r requirements-docs.txt. - Install
mkdocswithpip install mkdocs-material. - Move into the
docs/endirectory viacd docs/en. - Run
mkdocs serveto start a local server.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aimbase-0.0.10.tar.gz.
File metadata
- Download URL: aimbase-0.0.10.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.2 Linux/6.2.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2060b50fcc6ccb1bf56c22386e42e6c335f3f6478982fd68f8b542a877f802d2
|
|
| MD5 |
a017acf5bf396233e1a4e6c04ddbea4b
|
|
| BLAKE2b-256 |
0ac2ba5ab799f911b8fce963a3b9db6586370e00b9e4e50852d9b0ecebf78592
|
File details
Details for the file aimbase-0.0.10-py3-none-any.whl.
File metadata
- Download URL: aimbase-0.0.10-py3-none-any.whl
- Upload date:
- Size: 20.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.2 Linux/6.2.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d93ec427dbe21af4d2d68f180ef385a2234422f23c36df28ed36b8d36871613
|
|
| MD5 |
450c85da3b9dd4ad84405f0826060005
|
|
| BLAKE2b-256 |
b7971ca0ea7cdc825b153a55d97704e8cd6681e8aa92533ca5d1612133e397ab
|