Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ijackua/python-web-ai-hub

Playground for personal Python web dev study
https://github.com/ijackua/python-web-ai-hub

Last synced: 17 days ago
JSON representation

Playground for personal Python web dev study

Awesome Lists containing this project

README

        

# Python Web AI Hub

> Python learning and experimental playground
> Brief idea: Web site that allows to index and "ask question via AI assistant" to other web sites, text/pdf documents, YouTube video subtitles and potentially other textual media.

## Running in dev mode

### Dev machine without virtualisation

- Install `pyenv` to manage Python versions
- `curl https://pyenv.run | bash` (do not forget to update bash/zsh .rc files)
- `pyenv install`
- [Install Poetry](https://python-poetry.org/docs/#installing-with-the-official-installer) to manage Dependencies and Envs
- `curl -sSL https://install.python-poetry.org | python3 -`
- `poetry self add poetry-auto-export && poetry self add poetry-plugin-export` [add Poetry plugins for requirements.txt autoexport](https://github.com/Ddedalus/poetry-auto-export)
- `poetry install` install dependencies
- create `.env` file as a copy of `.env.example` and set parameters there
- `poetry run python manage.py migrate` setup database

### Running web app

- `poetry run python manage.py runserver`

## Useful commands

- `poetry run python manage.py startapp app_name`
- `poetry add pendulum` || `poetry add pendulum@~2.0.5` add package (latests || fixed versions)
- `poetry export -f requirements.txt --output requirements.txt` manual export dependencies
- `poetry run python manage.py makemigrations`