File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ pytest==7.1.3
3
3
pytest-asyncio == 0.20.3
4
4
uvicorn == 0.20.0
5
5
pydantic ~= 1.10.4
6
+ pywidevine == 1.6.0
Original file line number Diff line number Diff line change 1
1
from fastapi import FastAPI
2
2
3
+ from pywidevine .cdm import Cdm
4
+ from pywidevine .device import Device
5
+ from pywidevine .pssh import PSSH
3
6
from src .dtos .ISayHelloDto import ISayHelloDto
4
7
5
8
app = FastAPI ()
@@ -18,3 +21,15 @@ async def say_hello(name: str):
18
21
@app .post ("/hello" )
19
22
async def hello_message (dto : ISayHelloDto ):
20
23
return {"message" : f"Hello { dto .message } " }
24
+
25
+
26
+ @app .get ("/cdm/device" )
27
+ async def cdm_device ():
28
+ Device (
29
+ type_ = Device .Types .ANDROID ,
30
+ security_level = 3 ,
31
+ flags = {},
32
+ client_id = '123' ,
33
+ private_key = '456' ,
34
+ )
35
+ return {"message" : "Device" }
You can’t perform that action at this time.
0 commit comments