yta-fastapi-docker-api 0.0.5__tar.gz → 0.0.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {yta_fastapi_docker_api-0.0.5 → yta_fastapi_docker_api-0.0.6}/PKG-INFO +2 -2
- {yta_fastapi_docker_api-0.0.5 → yta_fastapi_docker_api-0.0.6}/pyproject.toml +2 -2
- {yta_fastapi_docker_api-0.0.5 → yta_fastapi_docker_api-0.0.6}/src/yta_fastapi_docker_api/app/main.py +4 -0
- yta_fastapi_docker_api-0.0.6/src/yta_fastapi_docker_api/app/routers/motion_resources/__init__.py +0 -0
- yta_fastapi_docker_api-0.0.6/src/yta_fastapi_docker_api/app/routers/motion_resources/images.py +44 -0
- yta_fastapi_docker_api-0.0.6/src/yta_fastapi_docker_api/app/routers/motion_resources/videos.py +28 -0
- {yta_fastapi_docker_api-0.0.5 → yta_fastapi_docker_api-0.0.6}/LICENSE +0 -0
- {yta_fastapi_docker_api-0.0.5 → yta_fastapi_docker_api-0.0.6}/README.md +0 -0
- {yta_fastapi_docker_api-0.0.5 → yta_fastapi_docker_api-0.0.6}/src/yta_fastapi_docker_api/__init__.py +0 -0
- {yta_fastapi_docker_api-0.0.5 → yta_fastapi_docker_api-0.0.6}/src/yta_fastapi_docker_api/app/__init__.py +0 -0
- {yta_fastapi_docker_api-0.0.5 → yta_fastapi_docker_api-0.0.6}/src/yta_fastapi_docker_api/app/routers/__init__.py +0 -0
- {yta_fastapi_docker_api-0.0.5 → yta_fastapi_docker_api-0.0.6}/src/yta_fastapi_docker_api/app/routers/llamacpp.py +0 -0
- {yta_fastapi_docker_api-0.0.5 → yta_fastapi_docker_api-0.0.6}/src/yta_fastapi_docker_api/app/routers/proxy.py +0 -0
- {yta_fastapi_docker_api-0.0.5 → yta_fastapi_docker_api-0.0.6}/src/yta_fastapi_docker_api/app/routers/stock.py +0 -0
- {yta_fastapi_docker_api-0.0.5 → yta_fastapi_docker_api-0.0.6}/src/yta_fastapi_docker_api/app/routers/vibevoice.py +0 -0
- {yta_fastapi_docker_api-0.0.5 → yta_fastapi_docker_api-0.0.6}/src/yta_fastapi_docker_api/app/routers/youtube.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: yta-fastapi-docker-api
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.6
|
|
4
4
|
Summary: Youtube Autonomous FastAPI Docker API Module
|
|
5
5
|
License-File: LICENSE
|
|
6
6
|
Author: danialcala94
|
|
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
14
14
|
Requires-Dist: fastapi (>=0.124.4,<9999.0.0)
|
|
15
15
|
Requires-Dist: uvicorn (>=0.49.0,<9999.0.0)
|
|
16
16
|
Requires-Dist: yta_fastapi_docker_common (>=0.0.14,<1.0.0)
|
|
17
|
-
Requires-Dist: yta_fastapi_docker_pydantic_models (>=0.0.
|
|
17
|
+
Requires-Dist: yta_fastapi_docker_pydantic_models (>=0.0.8,<1.0.0)
|
|
18
18
|
Requires-Dist: yta_httpx (>=0.0.27,<1.0.0)
|
|
19
19
|
Requires-Dist: yta_programming_env (>=0.3.2,<1.0.0)
|
|
20
20
|
Description-Content-Type: text/markdown
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "yta-fastapi-docker-api"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.6"
|
|
4
4
|
description = "Youtube Autonomous FastAPI Docker API Module"
|
|
5
5
|
authors = [
|
|
6
6
|
{name = "danialcala94", email = "danielalcalavalera@gmail.com"}
|
|
@@ -13,7 +13,7 @@ requires-python = ">=3.10,<3.14"
|
|
|
13
13
|
yta_httpx = { version = ">=0.0.27,<1.0.0", optional = false }
|
|
14
14
|
fastapi = { version = ">=0.124.4,<9999.0.0", optional = false }
|
|
15
15
|
uvicorn = { version = ">=0.49.0,<9999.0.0", optional = false }
|
|
16
|
-
yta_fastapi_docker_pydantic_models = { version = ">=0.0.
|
|
16
|
+
yta_fastapi_docker_pydantic_models = { version = ">=0.0.8,<1.0.0", optional = false }
|
|
17
17
|
yta_fastapi_docker_common = { version = ">=0.0.14,<1.0.0", optional = false }
|
|
18
18
|
yta_programming_env = { version = ">=0.3.2,<1.0.0", optional = false }
|
|
19
19
|
# Optional
|
{yta_fastapi_docker_api-0.0.5 → yta_fastapi_docker_api-0.0.6}/src/yta_fastapi_docker_api/app/main.py
RENAMED
|
@@ -4,6 +4,8 @@ from yta_fastapi_docker_api.app.routers.llamacpp import router as llamacpp_route
|
|
|
4
4
|
from yta_fastapi_docker_api.app.routers.vibevoice import router as vibevoice_router
|
|
5
5
|
from yta_fastapi_docker_api.app.routers.stock import router as stock_router
|
|
6
6
|
from yta_fastapi_docker_api.app.routers.proxy import router as proxy_router
|
|
7
|
+
from yta_fastapi_docker_api.app.routers.motion_resources.images import router as motion_resources_images_router
|
|
8
|
+
from yta_fastapi_docker_api.app.routers.motion_resources.videos import router as motion_resources_videos_router
|
|
7
9
|
from fastapi.middleware.cors import CORSMiddleware
|
|
8
10
|
from fastapi import FastAPI
|
|
9
11
|
|
|
@@ -25,4 +27,6 @@ app.include_router(youtube_router)
|
|
|
25
27
|
app.include_router(llamacpp_router)
|
|
26
28
|
app.include_router(vibevoice_router)
|
|
27
29
|
app.include_router(stock_router)
|
|
30
|
+
app.include_router(motion_resources_images_router)
|
|
31
|
+
app.include_router(motion_resources_videos_router)
|
|
28
32
|
app.include_router(proxy_router)
|
yta_fastapi_docker_api-0.0.6/src/yta_fastapi_docker_api/app/routers/motion_resources/__init__.py
ADDED
|
File without changes
|
yta_fastapi_docker_api-0.0.6/src/yta_fastapi_docker_api/app/routers/motion_resources/images.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from yta_fastapi_docker_common import proxy_stream_endpoint
|
|
2
|
+
from yta_fastapi_docker_pydantic_models.motion_resources.images import CreateBookingReview, CreateSimpleProgressBarImage
|
|
3
|
+
from yta_programming_env import Environment
|
|
4
|
+
from fastapi import APIRouter
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
CONTAINER_API_ENDPOINT_URL = Environment.get_env('MOTION_RESOURCES_FASTAPI_DOCKER_ENDPOINT')
|
|
8
|
+
PREFIX = f'/motion-resources/images'
|
|
9
|
+
|
|
10
|
+
router = APIRouter(
|
|
11
|
+
prefix = PREFIX
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
@router.post('/booking-review')
|
|
15
|
+
async def post_motion_resources_images_booking_review(
|
|
16
|
+
request: CreateBookingReview
|
|
17
|
+
) -> 'StreamingResponse':
|
|
18
|
+
endpoint_url = f'{CONTAINER_API_ENDPOINT_URL}{PREFIX}/booking-review'
|
|
19
|
+
|
|
20
|
+
payload = request.model_dump()
|
|
21
|
+
|
|
22
|
+
return await proxy_stream_endpoint(
|
|
23
|
+
url = endpoint_url,
|
|
24
|
+
method = 'POST',
|
|
25
|
+
json = payload,
|
|
26
|
+
do_close_response = True,
|
|
27
|
+
do_close_client = True
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
@router.post('/simple-progress-bar')
|
|
31
|
+
async def post_motion_resources_images_simple_progress_bar(
|
|
32
|
+
request: CreateSimpleProgressBarImage
|
|
33
|
+
) -> 'StreamingResponse':
|
|
34
|
+
endpoint_url = f'{CONTAINER_API_ENDPOINT_URL}{PREFIX}/simple-progress-bar'
|
|
35
|
+
|
|
36
|
+
payload = request.model_dump()
|
|
37
|
+
|
|
38
|
+
return await proxy_stream_endpoint(
|
|
39
|
+
url = endpoint_url,
|
|
40
|
+
method = 'POST',
|
|
41
|
+
json = payload,
|
|
42
|
+
do_close_response = True,
|
|
43
|
+
do_close_client = True
|
|
44
|
+
)
|
yta_fastapi_docker_api-0.0.6/src/yta_fastapi_docker_api/app/routers/motion_resources/videos.py
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
from yta_fastapi_docker_common import proxy_stream_endpoint
|
|
2
|
+
from yta_fastapi_docker_pydantic_models.motion_resources.videos import CreateSimpleProgressBarVideo
|
|
3
|
+
from yta_programming_env import Environment
|
|
4
|
+
from fastapi import APIRouter
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
CONTAINER_API_ENDPOINT_URL = Environment.get_env('MOTION_RESOURCES_FASTAPI_DOCKER_ENDPOINT')
|
|
8
|
+
PREFIX = f'/motion-resources/videos'
|
|
9
|
+
|
|
10
|
+
router = APIRouter(
|
|
11
|
+
prefix = PREFIX
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
@router.post('/simple-progress-bar')
|
|
15
|
+
async def post_motion_resources_videos_simple_progress_bar(
|
|
16
|
+
request: CreateSimpleProgressBarVideo
|
|
17
|
+
) -> 'StreamingResponse':
|
|
18
|
+
endpoint_url = f'{CONTAINER_API_ENDPOINT_URL}{PREFIX}/simple-progress-bar'
|
|
19
|
+
|
|
20
|
+
payload = request.model_dump()
|
|
21
|
+
|
|
22
|
+
return await proxy_stream_endpoint(
|
|
23
|
+
url = endpoint_url,
|
|
24
|
+
method = 'POST',
|
|
25
|
+
json = payload,
|
|
26
|
+
do_close_response = True,
|
|
27
|
+
do_close_client = True
|
|
28
|
+
)
|
|
File without changes
|
|
File without changes
|
{yta_fastapi_docker_api-0.0.5 → yta_fastapi_docker_api-0.0.6}/src/yta_fastapi_docker_api/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|