Compare commits

...

2 Commits

6 changed files with 1304 additions and 30 deletions

1
.python-version Normal file
View File

@@ -0,0 +1 @@
3.13

4
Dockerfile Normal file
View File

@@ -0,0 +1,4 @@
FROM ubuntu:latest
LABEL authors="admin"
ENTRYPOINT ["top", "-b"]

0
README.md Normal file
View File

25
pyproject.toml Normal file
View File

@@ -0,0 +1,25 @@
[project]
name = "sipro-stocks"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"aiohttp[speedups]>=3.12.15",
"alembic>=1.16.4",
"asyncpg>=0.30.0",
"celery[librabbitmq,redis]>=5.5.3",
"fastapi>=0.116.1",
"gevent>=25.5.1",
"gunicorn>=23.0.0",
"pydantic>=2.11.7",
"pyjwt>=2.10.1",
"python-dotenv>=1.1.1",
"redis[hiredis]>=5.2.1",
"sqlalchemy[asyncio]>=2.0.43",
"taskiq-aio-pika==0.4.2",
"taskiq-fastapi==0.3.5",
"taskiq-pipelines>=0.1.4",
"taskiq==0.11.17",
"uvicorn[standard]>=0.35.0",
]

30
test.py
View File

@@ -1,30 +0,0 @@
import asyncio
from idlelib.pyparse import trans
from pydoc import browse
import background.tasks
from background import taskiq_broker
async def main():
# # generate random json dict with strings and integers
# def generate_json():
# import random
# import string
# import json
# data = {}
# for i in range(0, 10):
# key = ''.join(random.choices(string.ascii_lowercase, k=5))
# value = random.randint(0, 100)
# data[key] = value
# return json.dumps(data)
# # generate json dict
# data = generate_json()
await taskiq_broker.startup()
await background.tasks.update_marketplace.kiq(41)
await taskiq_broker.shutdown()
if __name__ == '__main__':
loop = asyncio.get_event_loop()
loop.run_until_complete(main())

1274
uv.lock generated Normal file

File diff suppressed because it is too large Load Diff