-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add swagger static * refactor Azamat's docker-compose.yaml * add static for swagger * add API event_black for searching without creds in modeus.py * add search Modeus API Complete #6 tasks * Fix bug with empty list * add get course, rewrite from requests to httpx * mypy fixes * add route get calendar #20 * rewrite from black sheep to fast api, add Netology routes. * delete black-sheep * add routes for modeus * remove sg_reg_date from NetologyCookies * linter fixes * Add design pages home and login, redirect from home to login * Fix Azamat's docker-compose.yaml * rewrite exceptions * Fastapi init (#22) * add swagger static * refactor Azamat's docker-compose.yaml * add static for swagger * add API event_black for searching without creds in modeus.py * add search Modeus API Complete #6 tasks * Fix bug with empty list * add get course, rewrite from requests to httpx * mypy fixes * add route get calendar #20 * rewrite from black sheep to fast api, add Netology routes. * delete black-sheep * add routes for modeus * remove sg_reg_date from NetologyCookies * linter fixes * Fix Azamat's docker-compose.yaml * rewrite exceptions * fix import error * Add validator for time_min, time_max * Refactor validators * Mypy refactor * Fix review * Fastapi init (#21) * Update README.md * rewrite from black sheep to fast api, add Netology routes. * delete black-sheep * add routes for modeus * remove sg_reg_date from NetologyCookies * linter fixes * Add design pages home and login, redirect from home to login * Fix Azamat's docker-compose.yaml * rewrite exceptions * fix import error * Add validator for time_min, time_max * Refactor validators * Mypy refactor * Fix review --------- Co-authored-by: KytakBR <gusmanov2006@gmail.com> * Fix cors problem * delete reload setting * Co-authored-by: Ivan <depocoder@users.noreply.github.com> * Add redis cache for JWT tokens * Refactor query parameters * redis cache with decorator * Co-authored-by: Gregory <MrGosling@users.noreply.github.com> * Co-authored-by: Ivan <depocoder@users.noreply.github.com> * fix some issues * Fix merge conflict --------- Co-authored-by: KytakBR <gusmanov2006@gmail.com>
- Loading branch information
Showing
67 changed files
with
4,420 additions
and
2,141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
MODEUS_USERNAME=test_username | ||
MODEUS_PASSWORD=test_password | ||
MODEUS_PASSWORD=test_password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
FROM python:3.10-slim-bullseye | ||
FROM python:3.11.4-slim-bullseye as prod | ||
|
||
RUN pip install poetry==1.8.3 | ||
|
||
WORKDIR /app | ||
COPY poetry.lock pyproject.toml /app | ||
RUN pip install poetry==1.8.2 | ||
|
||
RUN POETRY_VIRTUALENVS_CREATE=false poetry install | ||
COPY . /app | ||
# Configuring poetry | ||
RUN poetry config virtualenvs.create false | ||
RUN poetry config cache-dir /tmp/poetry_cache | ||
|
||
ENTRYPOINT ["python3"] | ||
CMD ["prod.py"] | ||
# Copying requirements of a project | ||
COPY pyproject.toml poetry.lock /app/src/ | ||
WORKDIR /app/src | ||
|
||
# Installing requirements | ||
RUN --mount=type=cache,target=/tmp/poetry_cache poetry install --only main | ||
|
||
# Copying actuall application | ||
COPY . /app/src/ | ||
RUN --mount=type=cache,target=/tmp/poetry_cache poetry install | ||
|
||
CMD ["/usr/local/bin/python", "-m", "yet_another_calendar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.