From 6e307b806702841662a6d99fcd42673e5db708be Mon Sep 17 00:00:00 2001 From: Kurbanov Bulat Date: Sat, 12 Feb 2022 13:05:13 +0300 Subject: [PATCH] Remove aiologger --- poetry.lock | 24 +++++------------------- pyproject.toml | 1 - scripts/healthcheck.py | 3 --- 3 files changed, 5 insertions(+), 23 deletions(-) diff --git a/poetry.lock b/poetry.lock index 45c2228..e00d299 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,14 +1,3 @@ -[[package]] -name = "aiologger" -version = "0.6.1" -description = "Asynchronous logging for python and asyncio" -category = "main" -optional = false -python-versions = ">=3.6" - -[package.extras] -aiofiles = ["aiofiles (==0.4.0)"] - [[package]] name = "aioredis" version = "2.0.0" @@ -212,12 +201,12 @@ pydantic = ">=1.7.2" [package.extras] gino = ["gino[starlette] (>=1.0.1)", "SQLAlchemy (>=1.3.20)"] -all = ["gino[starlette] (>=1.0.1)", "SQLAlchemy (>=1.3.20)", "databases[postgresql,mysql,sqlite] (>=0.4.0)", "orm (>=0.1.5)", "tortoise-orm[asyncpg,aiosqlite,aiomysql] (>=0.16.18,<0.18.0)", "asyncpg (>=0.24.0)", "ormar (>=0.10.5)", "Django (<3.3.0)", "piccolo (>=0.29,<0.35)", "motor (>=2.5.1,<3.0.0)"] +all = ["gino[starlette] (>=1.0.1)", "SQLAlchemy (>=1.3.20)", "databases[sqlite,mysql,postgresql] (>=0.4.0)", "orm (>=0.1.5)", "tortoise-orm[asyncpg,aiosqlite,aiomysql] (>=0.16.18,<0.18.0)", "asyncpg (>=0.24.0)", "ormar (>=0.10.5)", "Django (<3.3.0)", "piccolo (>=0.29,<0.35)", "motor (>=2.5.1,<3.0.0)"] sqlalchemy = ["SQLAlchemy (>=1.3.20)"] asyncpg = ["SQLAlchemy (>=1.3.20)", "asyncpg (>=0.24.0)"] -databases = ["databases[postgresql,mysql,sqlite] (>=0.4.0)"] -orm = ["databases[postgresql,mysql,sqlite] (>=0.4.0)", "orm (>=0.1.5)", "typesystem (>=0.2.0,<0.3.0)"] -django = ["databases[postgresql,mysql,sqlite] (>=0.4.0)", "Django (<3.3.0)"] +databases = ["databases[sqlite,mysql,postgresql] (>=0.4.0)"] +orm = ["databases[sqlite,mysql,postgresql] (>=0.4.0)", "orm (>=0.1.5)", "typesystem (>=0.2.0,<0.3.0)"] +django = ["databases[sqlite,mysql,postgresql] (>=0.4.0)", "Django (<3.3.0)"] tortoise = ["tortoise-orm[asyncpg,aiosqlite,aiomysql] (>=0.16.18,<0.18.0)"] ormar = ["ormar (>=0.10.5)"] piccolo = ["piccolo (>=0.29,<0.35)"] @@ -613,12 +602,9 @@ python-versions = "*" [metadata] lock-version = "1.1" python-versions = "^3.9" -content-hash = "c66896002274c2f1a60e0c56b94bbcba6d94b1fa87ef90dcab929afe8a0eca82" +content-hash = "9c1f90e272f2d65d807a3aeb34a620b3ea53a090af5a80a53fb41ac57074cd6a" [metadata.files] -aiologger = [ - {file = "aiologger-0.6.1.tar.gz", hash = "sha256:1b6b8f00d74a588339b657ff60ffa9f64c53873887a008934c66e1a673ea68cd"}, -] aioredis = [ {file = "aioredis-2.0.0-py3-none-any.whl", hash = "sha256:9921d68a3df5c5cdb0d5b49ad4fc88a4cfdd60c108325df4f0066e8410c55ffb"}, {file = "aioredis-2.0.0.tar.gz", hash = "sha256:3a2de4b614e6a5f8e104238924294dc4e811aefbe17ddf52c04a93cbf06e67db"}, diff --git a/pyproject.toml b/pyproject.toml index fff9aad..9f2f575 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,6 @@ alembic = "^1.7.4" asyncpg = "^0.24.0" psycopg2 = "^2.9.1" fastapi-pagination = {extras = ["ormar"], version = "^0.9.0"} -aiologger = "^0.6.1" orjson = "^3.6.4" aioredis = "^2.0.0" httpx = "^0.22.0" diff --git a/scripts/healthcheck.py b/scripts/healthcheck.py index e21d83a..6f2f501 100644 --- a/scripts/healthcheck.py +++ b/scripts/healthcheck.py @@ -1,11 +1,8 @@ -import os - import httpx response = httpx.get( "http://localhost:8080/healthcheck", - headers={"Authorization": os.environ["API_KEY"]}, ) print(f"HEALTHCHECK STATUS: {response.status_code}") exit(0 if response.status_code == 200 else 1)