45 lines
1.5 KiB
Markdown
45 lines
1.5 KiB
Markdown
# GreatAI
|
|
|
|
**work in progress, do not use!**
|
|
|
|
[](https://github.com/ScoutinScience/great_ai/actions/workflows/check.yml)
|
|
[](https://sonar.scoutinscience.com/dashboard?id=great_ai)
|
|
[](https://github.com/ScoutinScience/great_ai/actions/workflows/publish.yaml)
|
|
[](https://github.com/ScoutinScience/great_ai/actions/workflows/docker.yaml)
|
|
[](https://pepy.tech/project/great_ai)
|
|
|
|
|
|
## Find `great_ai` on [DockerHub](https://hub.docker.com/repository/docker/schmelczera/great_ai)
|
|
|
|
```sh
|
|
docker run -p6060:6060 schmelczera/great_ai
|
|
```
|
|
|
|
Find the dashboard at [http://localhost:6060](http://localhost:6060/dashboard/).
|
|
|
|
|
|
## Find `great_ai` on [PyPI](https://pypi.org/project/great_ai/)
|
|
|
|
```sh
|
|
pip install great_ai
|
|
```
|
|
|
|
```python
|
|
from great_ai import GreatAI
|
|
|
|
@GreatAI.create
|
|
def hello_world(name: str) -> str:
|
|
return f"Hello {name}!"
|
|
```
|
|
> Create a new file called `main.py`
|
|
|
|
Deploy by executing `python3 -m great_ai main.py`
|
|
|
|
Find the dashboard at [http://localhost:6060](http://localhost:6060/dashboard/).
|
|
|
|
### Contribute
|
|
|
|
```sh
|
|
pip install 'great_ai[dev]'
|
|
|
|
```
|