Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ijackua/python-web-ai-hub
- Owner: iJackUA
- Created: 2024-04-03T17:24:59.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-04-22T07:56:43.000Z (7 months ago)
- Last Synced: 2024-10-09T22:06:05.585Z (28 days ago)
- Language: Python
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`