prasunsrivastava
commited on
Commit
·
bd9a582
0
Parent(s):
Added the app files with the fist version.
Browse files- .dockerignore +40 -0
- .gitattributes +35 -0
- .gitignore +7 -0
- Dockerfile +64 -0
- README.md +350 -0
- aimakerspace/__init__.py +0 -0
- aimakerspace/openai_utils/__init__.py +0 -0
- aimakerspace/openai_utils/chatmodel.py +45 -0
- aimakerspace/openai_utils/embedding.py +59 -0
- aimakerspace/openai_utils/prompts.py +78 -0
- aimakerspace/text_utils.py +136 -0
- aimakerspace/vectordatabase.py +81 -0
- api.py +105 -0
- app.py +61 -0
- frontend/.env.production +1 -0
- frontend/package-lock.json +0 -0
- frontend/package.json +48 -0
- frontend/public/index.html +21 -0
- frontend/public/manifest.json +15 -0
- frontend/src/App.tsx +55 -0
- frontend/src/components/ChatInterface.tsx +328 -0
- frontend/src/index.css +3 -0
- frontend/src/index.tsx +16 -0
- frontend/tailwind.config.js +7 -0
- frontend/tsconfig.json +20 -0
- nginx.conf +48 -0
- pyproject.toml +17 -0
- uv.lock +933 -0
.dockerignore
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Python
|
2 |
+
__pycache__
|
3 |
+
*.pyc
|
4 |
+
*.pyo
|
5 |
+
*.pyd
|
6 |
+
.Python
|
7 |
+
.venv
|
8 |
+
venv
|
9 |
+
env
|
10 |
+
pip-log.txt
|
11 |
+
.tox
|
12 |
+
.coverage
|
13 |
+
.coverage.*
|
14 |
+
.cache
|
15 |
+
nosetests.xml
|
16 |
+
coverage.xml
|
17 |
+
*.cover
|
18 |
+
*.log
|
19 |
+
|
20 |
+
# Node
|
21 |
+
node_modules
|
22 |
+
npm-debug.log
|
23 |
+
build
|
24 |
+
|
25 |
+
# Development
|
26 |
+
.git
|
27 |
+
.gitignore
|
28 |
+
.env.local
|
29 |
+
.env.development.local
|
30 |
+
.env.test.local
|
31 |
+
.env.production.local
|
32 |
+
|
33 |
+
# But allow the root .env file
|
34 |
+
!.env
|
35 |
+
|
36 |
+
# IDE
|
37 |
+
.idea
|
38 |
+
.vscode
|
39 |
+
*.swp
|
40 |
+
*.swo
|
.gitattributes
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
__pycache__/
|
2 |
+
.chainlit/
|
3 |
+
.venv/
|
4 |
+
.env
|
5 |
+
# Node dependencies
|
6 |
+
**/node_modules/
|
7 |
+
frontend/node_modules/
|
Dockerfile
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Stage 1: Build the React frontend
|
2 |
+
FROM node:18 AS frontend-builder
|
3 |
+
WORKDIR /app/frontend
|
4 |
+
COPY frontend/package*.json ./
|
5 |
+
RUN npm install
|
6 |
+
COPY frontend/ ./
|
7 |
+
# Explicitly set NODE_ENV to production to use .env.production
|
8 |
+
ENV NODE_ENV=production
|
9 |
+
RUN npm run build
|
10 |
+
|
11 |
+
# Stage 2: Set up the Python backend and Nginx
|
12 |
+
FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim
|
13 |
+
|
14 |
+
# Install nginx
|
15 |
+
RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/*
|
16 |
+
|
17 |
+
# Create app directory and set permissions
|
18 |
+
RUN mkdir /app && \
|
19 |
+
useradd -m -u 1000 user && \
|
20 |
+
chown -R user:user /app
|
21 |
+
|
22 |
+
# Set the working directory
|
23 |
+
WORKDIR /app
|
24 |
+
|
25 |
+
# Copy the backend app and set permissions
|
26 |
+
COPY --chown=user . /app
|
27 |
+
|
28 |
+
# Copy the built frontend from the previous stage
|
29 |
+
COPY --from=frontend-builder --chown=user /app/frontend/build /app/static
|
30 |
+
|
31 |
+
# Configure nginx as root
|
32 |
+
COPY nginx.conf /etc/nginx/nginx.conf
|
33 |
+
RUN mkdir -p /var/log/nginx && \
|
34 |
+
chown -R user:user /var/log/nginx && \
|
35 |
+
chown -R user:user /var/lib/nginx && \
|
36 |
+
touch /var/run/nginx.pid && \
|
37 |
+
chown -R user:user /var/run/nginx.pid
|
38 |
+
|
39 |
+
# Switch to user for Python setup
|
40 |
+
USER user
|
41 |
+
|
42 |
+
# Set the environment variables
|
43 |
+
ENV HOME=/home/user \
|
44 |
+
PATH=/home/user/.local/bin:$PATH \
|
45 |
+
UVICORN_WS_PROTOCOL=websockets
|
46 |
+
|
47 |
+
# Install the Python dependencies
|
48 |
+
RUN uv sync
|
49 |
+
|
50 |
+
# Switch back to root to create start script
|
51 |
+
USER root
|
52 |
+
|
53 |
+
# Create start script that handles both nginx and uvicorn
|
54 |
+
RUN echo '#!/bin/bash\n\
|
55 |
+
nginx -g "daemon off;" &\n\
|
56 |
+
echo "Nginx started..."\n\
|
57 |
+
su -c "bash -c \"source /app/.venv/bin/activate && uvicorn api:app --host 0.0.0.0 --port 8000\"" user\n\
|
58 |
+
' > /app/start.sh && chmod +x /app/start.sh
|
59 |
+
|
60 |
+
# Expose the Hugging Face port
|
61 |
+
EXPOSE 7860
|
62 |
+
|
63 |
+
# Run both nginx and the backend
|
64 |
+
CMD ["./start.sh"]
|
README.md
ADDED
@@ -0,0 +1,350 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: DeployPythonicRAG
|
3 |
+
emoji: 📉
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: purple
|
6 |
+
sdk: docker
|
7 |
+
pinned: false
|
8 |
+
license: apache-2.0
|
9 |
+
---
|
10 |
+
|
11 |
+
# Deploying Pythonic Chat With Your Text File Application
|
12 |
+
|
13 |
+
In today's breakout rooms, we will be following the process that you saw during the challenge.
|
14 |
+
|
15 |
+
Today, we will repeat the same process - but powered by our Pythonic RAG implementation we created last week.
|
16 |
+
|
17 |
+
You'll notice a few differences in the `app.py` logic - as well as a few changes to the `aimakerspace` package to get things working smoothly with Chainlit.
|
18 |
+
|
19 |
+
> NOTE: If you want to run this locally - be sure to use `uv sync`, and then `uv run chainlit run app.py` to start the application outside of Docker.
|
20 |
+
|
21 |
+
## Reference Diagram (It's Busy, but it works)
|
22 |
+
|
23 |
+

|
24 |
+
|
25 |
+
### Anatomy of a Chainlit Application
|
26 |
+
|
27 |
+
[Chainlit](https://docs.chainlit.io/get-started/overview) is a Python package similar to Streamlit that lets users write a backend and a front end in a single (or multiple) Python file(s). It is mainly used for prototyping LLM-based Chat Style Applications - though it is used in production in some settings with 1,000,000s of MAUs (Monthly Active Users).
|
28 |
+
|
29 |
+
The primary method of customizing and interacting with the Chainlit UI is through a few critical [decorators](https://blog.hubspot.com/website/decorators-in-python).
|
30 |
+
|
31 |
+
> NOTE: Simply put, the decorators (in Chainlit) are just ways we can "plug-in" to the functionality in Chainlit.
|
32 |
+
|
33 |
+
We'll be concerning ourselves with three main scopes:
|
34 |
+
|
35 |
+
1. On application start - when we start the Chainlit application with a command like `chainlit run app.py`
|
36 |
+
2. On chat start - when a chat session starts (a user opens the web browser to the address hosting the application)
|
37 |
+
3. On message - when the users sends a message through the input text box in the Chainlit UI
|
38 |
+
|
39 |
+
Let's dig into each scope and see what we're doing!
|
40 |
+
|
41 |
+
### On Application Start:
|
42 |
+
|
43 |
+
The first thing you'll notice is that we have the traditional "wall of imports" this is to ensure we have everything we need to run our application.
|
44 |
+
|
45 |
+
```python
|
46 |
+
import os
|
47 |
+
from typing import List
|
48 |
+
from chainlit.types import AskFileResponse
|
49 |
+
from aimakerspace.text_utils import CharacterTextSplitter, TextFileLoader
|
50 |
+
from aimakerspace.openai_utils.prompts import (
|
51 |
+
UserRolePrompt,
|
52 |
+
SystemRolePrompt,
|
53 |
+
AssistantRolePrompt,
|
54 |
+
)
|
55 |
+
from aimakerspace.openai_utils.embedding import EmbeddingModel
|
56 |
+
from aimakerspace.vectordatabase import VectorDatabase
|
57 |
+
from aimakerspace.openai_utils.chatmodel import ChatOpenAI
|
58 |
+
import chainlit as cl
|
59 |
+
```
|
60 |
+
|
61 |
+
Next up, we have some prompt templates. As all sessions will use the same prompt templates without modification, and we don't need these templates to be specific per template - we can set them up here - at the application scope.
|
62 |
+
|
63 |
+
```python
|
64 |
+
system_template = """\
|
65 |
+
Use the following context to answer a users question. If you cannot find the answer in the context, say you don't know the answer."""
|
66 |
+
system_role_prompt = SystemRolePrompt(system_template)
|
67 |
+
|
68 |
+
user_prompt_template = """\
|
69 |
+
Context:
|
70 |
+
{context}
|
71 |
+
|
72 |
+
Question:
|
73 |
+
{question}
|
74 |
+
"""
|
75 |
+
user_role_prompt = UserRolePrompt(user_prompt_template)
|
76 |
+
```
|
77 |
+
|
78 |
+
> NOTE: You'll notice that these are the exact same prompt templates we used from the Pythonic RAG Notebook in Week 1 Day 2!
|
79 |
+
|
80 |
+
Following that - we can create the Python Class definition for our RAG pipeline - or _chain_, as we'll refer to it in the rest of this walkthrough.
|
81 |
+
|
82 |
+
Let's look at the definition first:
|
83 |
+
|
84 |
+
```python
|
85 |
+
class RetrievalAugmentedQAPipeline:
|
86 |
+
def __init__(self, llm: ChatOpenAI(), vector_db_retriever: VectorDatabase) -> None:
|
87 |
+
self.llm = llm
|
88 |
+
self.vector_db_retriever = vector_db_retriever
|
89 |
+
|
90 |
+
async def arun_pipeline(self, user_query: str):
|
91 |
+
### RETRIEVAL
|
92 |
+
context_list = self.vector_db_retriever.search_by_text(user_query, k=4)
|
93 |
+
|
94 |
+
context_prompt = ""
|
95 |
+
for context in context_list:
|
96 |
+
context_prompt += context[0] + "\n"
|
97 |
+
|
98 |
+
### AUGMENTED
|
99 |
+
formatted_system_prompt = system_role_prompt.create_message()
|
100 |
+
|
101 |
+
formatted_user_prompt = user_role_prompt.create_message(question=user_query, context=context_prompt)
|
102 |
+
|
103 |
+
|
104 |
+
### GENERATION
|
105 |
+
async def generate_response():
|
106 |
+
async for chunk in self.llm.astream([formatted_system_prompt, formatted_user_prompt]):
|
107 |
+
yield chunk
|
108 |
+
|
109 |
+
return {"response": generate_response(), "context": context_list}
|
110 |
+
```
|
111 |
+
|
112 |
+
Notice a few things:
|
113 |
+
|
114 |
+
1. We have modified this `RetrievalAugmentedQAPipeline` from the initial notebook to support streaming.
|
115 |
+
2. In essence, our pipeline is _chaining_ a few events together:
|
116 |
+
1. We take our user query, and chain it into our Vector Database to collect related chunks
|
117 |
+
2. We take those contexts and our user's questions and chain them into the prompt templates
|
118 |
+
3. We take that prompt template and chain it into our LLM call
|
119 |
+
4. We chain the response of the LLM call to the user
|
120 |
+
3. We are using a lot of `async` again!
|
121 |
+
|
122 |
+
Now, we're going to create a helper function for processing uploaded text files.
|
123 |
+
|
124 |
+
First, we'll instantiate a shared `CharacterTextSplitter`.
|
125 |
+
|
126 |
+
```python
|
127 |
+
text_splitter = CharacterTextSplitter()
|
128 |
+
```
|
129 |
+
|
130 |
+
Now we can define our helper.
|
131 |
+
|
132 |
+
```python
|
133 |
+
def process_file(file: AskFileResponse):
|
134 |
+
import tempfile
|
135 |
+
import shutil
|
136 |
+
|
137 |
+
print(f"Processing file: {file.name}")
|
138 |
+
|
139 |
+
# Create a temporary file with the correct extension
|
140 |
+
suffix = f".{file.name.split('.')[-1]}"
|
141 |
+
with tempfile.NamedTemporaryFile(delete=False, suffix=suffix) as temp_file:
|
142 |
+
# Copy the uploaded file content to the temporary file
|
143 |
+
shutil.copyfile(file.path, temp_file.name)
|
144 |
+
print(f"Created temporary file at: {temp_file.name}")
|
145 |
+
|
146 |
+
# Create appropriate loader
|
147 |
+
if file.name.lower().endswith('.pdf'):
|
148 |
+
loader = PDFLoader(temp_file.name)
|
149 |
+
else:
|
150 |
+
loader = TextFileLoader(temp_file.name)
|
151 |
+
|
152 |
+
try:
|
153 |
+
# Load and process the documents
|
154 |
+
documents = loader.load_documents()
|
155 |
+
texts = text_splitter.split_texts(documents)
|
156 |
+
return texts
|
157 |
+
finally:
|
158 |
+
# Clean up the temporary file
|
159 |
+
try:
|
160 |
+
os.unlink(temp_file.name)
|
161 |
+
except Exception as e:
|
162 |
+
print(f"Error cleaning up temporary file: {e}")
|
163 |
+
```
|
164 |
+
|
165 |
+
Simply put, this downloads the file as a temp file, we load it in with `TextFileLoader` and then split it with our `TextSplitter`, and returns that list of strings!
|
166 |
+
|
167 |
+
#### ❓ QUESTION #1:
|
168 |
+
|
169 |
+
Why do we want to support streaming? What about streaming is important, or useful?
|
170 |
+
|
171 |
+
**Answer: Since the response from LLMs can be slow, we tend to use streaming to start sending the tokens back as the LLM generates the tokens. It gives a user quick feedback and the app does not seem unresponsive or slow.**
|
172 |
+
|
173 |
+
### On Chat Start:
|
174 |
+
|
175 |
+
The next scope is where "the magic happens". On Chat Start is when a user begins a chat session. This will happen whenever a user opens a new chat window, or refreshes an existing chat window.
|
176 |
+
|
177 |
+
You'll see that our code is set-up to immediately show the user a chat box requesting them to upload a file.
|
178 |
+
|
179 |
+
```python
|
180 |
+
while files == None:
|
181 |
+
files = await cl.AskFileMessage(
|
182 |
+
content="Please upload a Text or PDF file to begin!",
|
183 |
+
accept=["text/plain", "application/pdf"],
|
184 |
+
max_size_mb=2,
|
185 |
+
timeout=180,
|
186 |
+
).send()
|
187 |
+
```
|
188 |
+
|
189 |
+
Once we've obtained the text file - we'll use our processing helper function to process our text!
|
190 |
+
|
191 |
+
After we have processed our text file - we'll need to create a `VectorDatabase` and populate it with our processed chunks and their related embeddings!
|
192 |
+
|
193 |
+
```python
|
194 |
+
vector_db = VectorDatabase()
|
195 |
+
vector_db = await vector_db.abuild_from_list(texts)
|
196 |
+
```
|
197 |
+
|
198 |
+
Once we have that piece completed - we can create the chain we'll be using to respond to user queries!
|
199 |
+
|
200 |
+
```python
|
201 |
+
retrieval_augmented_qa_pipeline = RetrievalAugmentedQAPipeline(
|
202 |
+
vector_db_retriever=vector_db,
|
203 |
+
llm=chat_openai
|
204 |
+
)
|
205 |
+
```
|
206 |
+
|
207 |
+
Now, we'll save that into our user session!
|
208 |
+
|
209 |
+
> NOTE: Chainlit has some great documentation about [User Session](https://docs.chainlit.io/concepts/user-session).
|
210 |
+
|
211 |
+
#### ❓ QUESTION #2:
|
212 |
+
|
213 |
+
Why are we using User Session here? What about Python makes us need to use this? Why not just store everything in a global variable?
|
214 |
+
|
215 |
+
**Answer: We cannot store everything in a global variable as some state will be specific to a user that is having a chat. We cannot expose the messages of one user chat session to another session. That would be incorrect. That is why each new chat has to be associated to a user session. In chainlit, the chat session related data is also saved in the user session itself. If the user is authnticated, the user specific details are saved in the user session.**
|
216 |
+
|
217 |
+
### On Message
|
218 |
+
|
219 |
+
First, we load our chain from the user session:
|
220 |
+
|
221 |
+
```python
|
222 |
+
chain = cl.user_session.get("chain")
|
223 |
+
```
|
224 |
+
|
225 |
+
Then, we run the chain on the content of the message - and stream it to the front end - that's it!
|
226 |
+
|
227 |
+
```python
|
228 |
+
msg = cl.Message(content="")
|
229 |
+
result = await chain.arun_pipeline(message.content)
|
230 |
+
|
231 |
+
async for stream_resp in result["response"]:
|
232 |
+
await msg.stream_token(stream_resp)
|
233 |
+
```
|
234 |
+
|
235 |
+
### 🎉
|
236 |
+
|
237 |
+
With that - you've created a Chainlit application that moves our Pythonic RAG notebook to a Chainlit application!
|
238 |
+
|
239 |
+
## Deploying the Application to Hugging Face Space
|
240 |
+
|
241 |
+
Due to the way the repository is created - it should be straightforward to deploy this to a Hugging Face Space!
|
242 |
+
|
243 |
+
> NOTE: If you wish to go through the local deployments using `uv run chainlit run app.py` and Docker - please feel free to do so!
|
244 |
+
|
245 |
+
<details>
|
246 |
+
<summary>Creating a Hugging Face Space</summary>
|
247 |
+
|
248 |
+
1. Navigate to the `Spaces` tab.
|
249 |
+
|
250 |
+

|
251 |
+
|
252 |
+
2. Click on `Create new Space`
|
253 |
+
|
254 |
+

|
255 |
+
|
256 |
+
3. Create the Space by providing values in the form. Make sure you've selected "Docker" as your Space SDK.
|
257 |
+
|
258 |
+

|
259 |
+
|
260 |
+
</details>
|
261 |
+
|
262 |
+
<details>
|
263 |
+
<summary>Adding this Repository to the Newly Created Space</summary>
|
264 |
+
|
265 |
+
1. Collect the SSH address from the newly created Space.
|
266 |
+
|
267 |
+

|
268 |
+
|
269 |
+
> NOTE: The address is the component that starts with `[email protected]:spaces/`.
|
270 |
+
|
271 |
+
2. Use the command:
|
272 |
+
|
273 |
+
```bash
|
274 |
+
git remote add hf HF_SPACE_SSH_ADDRESS_HERE
|
275 |
+
```
|
276 |
+
|
277 |
+
3. Use the command:
|
278 |
+
|
279 |
+
```bash
|
280 |
+
git pull hf main --no-rebase --allow-unrelated-histories -X ours
|
281 |
+
```
|
282 |
+
|
283 |
+
4. Use the command:
|
284 |
+
|
285 |
+
```bash
|
286 |
+
git add .
|
287 |
+
```
|
288 |
+
|
289 |
+
5. Use the command:
|
290 |
+
|
291 |
+
```bash
|
292 |
+
git commit -m "Deploying Pythonic RAG"
|
293 |
+
```
|
294 |
+
|
295 |
+
6. Use the command:
|
296 |
+
|
297 |
+
```bash
|
298 |
+
git push hf main
|
299 |
+
```
|
300 |
+
|
301 |
+
7. The Space should automatically build as soon as the push is completed!
|
302 |
+
|
303 |
+
> NOTE: The build will fail before you complete the following steps!
|
304 |
+
|
305 |
+
</details>
|
306 |
+
|
307 |
+
<details>
|
308 |
+
<summary>Adding OpenAI Secrets to the Space</summary>
|
309 |
+
|
310 |
+
1. Navigate to your Space settings.
|
311 |
+
|
312 |
+

|
313 |
+
|
314 |
+
2. Navigate to `Variables and secrets` on the Settings page and click `New secret`:
|
315 |
+
|
316 |
+

|
317 |
+
|
318 |
+
3. In the `Name` field - input `OPENAI_API_KEY` in the `Value (private)` field, put your OpenAI API Key.
|
319 |
+
|
320 |
+

|
321 |
+
|
322 |
+
4. The Space will begin rebuilding!
|
323 |
+
|
324 |
+
</details>
|
325 |
+
|
326 |
+
## 🎉
|
327 |
+
|
328 |
+
You just deployed Pythonic RAG!
|
329 |
+
|
330 |
+
Try uploading a text file and asking some questions!
|
331 |
+
|
332 |
+
#### ❓ Discussion Question #1:
|
333 |
+
|
334 |
+
Upload a PDF file of the recent DeepSeek-R1 paper and ask the following questions:
|
335 |
+
|
336 |
+
1. What is RL and how does it help reasoning?
|
337 |
+
2. What is the difference between DeepSeek-R1 and DeepSeek-R1-Zero?
|
338 |
+
3. What is this paper about?
|
339 |
+
|
340 |
+
Does this application pass your vibe check? Are there any immediate pitfalls you're noticing?
|
341 |
+
|
342 |
+
**The application is not able to reason through the questions asked. In my initial try, the application was not able to generate a coherent answer to the second question. It seemed as if it got lost in the details and faced challenges in creating a coherent response. However, subsequently, I have found that it does answer the question and does a decent job but can tend to get lost sometimes. Also, it was unable to answer the last question which leads me to think that the model is not able to digest large pieces of information.**
|
343 |
+
|
344 |
+
## 🚧 CHALLENGE MODE 🚧
|
345 |
+
|
346 |
+
For the challenge mode, please instead create a simple FastAPI backend with a simple React (or any other JS framework) frontend.
|
347 |
+
|
348 |
+
You can use the same prompt templates and RAG pipeline as we did here - but you'll need to modify the code to work with FastAPI and React.
|
349 |
+
|
350 |
+
Deploy this application to Hugging Face Spaces!
|
aimakerspace/__init__.py
ADDED
File without changes
|
aimakerspace/openai_utils/__init__.py
ADDED
File without changes
|
aimakerspace/openai_utils/chatmodel.py
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from openai import OpenAI, AsyncOpenAI
|
2 |
+
from dotenv import load_dotenv
|
3 |
+
import os
|
4 |
+
|
5 |
+
load_dotenv()
|
6 |
+
|
7 |
+
|
8 |
+
class ChatOpenAI:
|
9 |
+
def __init__(self, model_name: str = "gpt-4o-mini"):
|
10 |
+
self.model_name = model_name
|
11 |
+
self.openai_api_key = os.getenv("OPENAI_API_KEY")
|
12 |
+
if self.openai_api_key is None:
|
13 |
+
raise ValueError("OPENAI_API_KEY is not set")
|
14 |
+
|
15 |
+
def run(self, messages, text_only: bool = True, **kwargs):
|
16 |
+
if not isinstance(messages, list):
|
17 |
+
raise ValueError("messages must be a list")
|
18 |
+
|
19 |
+
client = OpenAI()
|
20 |
+
response = client.chat.completions.create(
|
21 |
+
model=self.model_name, messages=messages, **kwargs
|
22 |
+
)
|
23 |
+
|
24 |
+
if text_only:
|
25 |
+
return response.choices[0].message.content
|
26 |
+
|
27 |
+
return response
|
28 |
+
|
29 |
+
async def astream(self, messages, **kwargs):
|
30 |
+
if not isinstance(messages, list):
|
31 |
+
raise ValueError("messages must be a list")
|
32 |
+
|
33 |
+
client = AsyncOpenAI()
|
34 |
+
|
35 |
+
stream = await client.chat.completions.create(
|
36 |
+
model=self.model_name,
|
37 |
+
messages=messages,
|
38 |
+
stream=True,
|
39 |
+
**kwargs
|
40 |
+
)
|
41 |
+
|
42 |
+
async for chunk in stream:
|
43 |
+
content = chunk.choices[0].delta.content
|
44 |
+
if content is not None:
|
45 |
+
yield content
|
aimakerspace/openai_utils/embedding.py
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from dotenv import load_dotenv
|
2 |
+
from openai import AsyncOpenAI, OpenAI
|
3 |
+
import openai
|
4 |
+
from typing import List
|
5 |
+
import os
|
6 |
+
import asyncio
|
7 |
+
|
8 |
+
|
9 |
+
class EmbeddingModel:
|
10 |
+
def __init__(self, embeddings_model_name: str = "text-embedding-3-small"):
|
11 |
+
load_dotenv()
|
12 |
+
self.openai_api_key = os.getenv("OPENAI_API_KEY")
|
13 |
+
self.async_client = AsyncOpenAI()
|
14 |
+
self.client = OpenAI()
|
15 |
+
|
16 |
+
if self.openai_api_key is None:
|
17 |
+
raise ValueError(
|
18 |
+
"OPENAI_API_KEY environment variable is not set. Please set it to your OpenAI API key."
|
19 |
+
)
|
20 |
+
openai.api_key = self.openai_api_key
|
21 |
+
self.embeddings_model_name = embeddings_model_name
|
22 |
+
|
23 |
+
async def async_get_embeddings(self, list_of_text: List[str]) -> List[List[float]]:
|
24 |
+
embedding_response = await self.async_client.embeddings.create(
|
25 |
+
input=list_of_text, model=self.embeddings_model_name
|
26 |
+
)
|
27 |
+
|
28 |
+
return [embeddings.embedding for embeddings in embedding_response.data]
|
29 |
+
|
30 |
+
async def async_get_embedding(self, text: str) -> List[float]:
|
31 |
+
embedding = await self.async_client.embeddings.create(
|
32 |
+
input=text, model=self.embeddings_model_name
|
33 |
+
)
|
34 |
+
|
35 |
+
return embedding.data[0].embedding
|
36 |
+
|
37 |
+
def get_embeddings(self, list_of_text: List[str]) -> List[List[float]]:
|
38 |
+
embedding_response = self.client.embeddings.create(
|
39 |
+
input=list_of_text, model=self.embeddings_model_name
|
40 |
+
)
|
41 |
+
|
42 |
+
return [embeddings.embedding for embeddings in embedding_response.data]
|
43 |
+
|
44 |
+
def get_embedding(self, text: str) -> List[float]:
|
45 |
+
embedding = self.client.embeddings.create(
|
46 |
+
input=text, model=self.embeddings_model_name
|
47 |
+
)
|
48 |
+
|
49 |
+
return embedding.data[0].embedding
|
50 |
+
|
51 |
+
|
52 |
+
if __name__ == "__main__":
|
53 |
+
embedding_model = EmbeddingModel()
|
54 |
+
print(asyncio.run(embedding_model.async_get_embedding("Hello, world!")))
|
55 |
+
print(
|
56 |
+
asyncio.run(
|
57 |
+
embedding_model.async_get_embeddings(["Hello, world!", "Goodbye, world!"])
|
58 |
+
)
|
59 |
+
)
|
aimakerspace/openai_utils/prompts.py
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import re
|
2 |
+
|
3 |
+
|
4 |
+
class BasePrompt:
|
5 |
+
def __init__(self, prompt):
|
6 |
+
"""
|
7 |
+
Initializes the BasePrompt object with a prompt template.
|
8 |
+
|
9 |
+
:param prompt: A string that can contain placeholders within curly braces
|
10 |
+
"""
|
11 |
+
self.prompt = prompt
|
12 |
+
self._pattern = re.compile(r"\{([^}]+)\}")
|
13 |
+
|
14 |
+
def format_prompt(self, **kwargs):
|
15 |
+
"""
|
16 |
+
Formats the prompt string using the keyword arguments provided.
|
17 |
+
|
18 |
+
:param kwargs: The values to substitute into the prompt string
|
19 |
+
:return: The formatted prompt string
|
20 |
+
"""
|
21 |
+
matches = self._pattern.findall(self.prompt)
|
22 |
+
return self.prompt.format(**{match: kwargs.get(match, "") for match in matches})
|
23 |
+
|
24 |
+
def get_input_variables(self):
|
25 |
+
"""
|
26 |
+
Gets the list of input variable names from the prompt string.
|
27 |
+
|
28 |
+
:return: List of input variable names
|
29 |
+
"""
|
30 |
+
return self._pattern.findall(self.prompt)
|
31 |
+
|
32 |
+
|
33 |
+
class RolePrompt(BasePrompt):
|
34 |
+
def __init__(self, prompt, role: str):
|
35 |
+
"""
|
36 |
+
Initializes the RolePrompt object with a prompt template and a role.
|
37 |
+
|
38 |
+
:param prompt: A string that can contain placeholders within curly braces
|
39 |
+
:param role: The role for the message ('system', 'user', or 'assistant')
|
40 |
+
"""
|
41 |
+
super().__init__(prompt)
|
42 |
+
self.role = role
|
43 |
+
|
44 |
+
def create_message(self, format=True, **kwargs):
|
45 |
+
"""
|
46 |
+
Creates a message dictionary with a role and a formatted message.
|
47 |
+
|
48 |
+
:param kwargs: The values to substitute into the prompt string
|
49 |
+
:return: Dictionary containing the role and the formatted message
|
50 |
+
"""
|
51 |
+
if format:
|
52 |
+
return {"role": self.role, "content": self.format_prompt(**kwargs)}
|
53 |
+
|
54 |
+
return {"role": self.role, "content": self.prompt}
|
55 |
+
|
56 |
+
|
57 |
+
class SystemRolePrompt(RolePrompt):
|
58 |
+
def __init__(self, prompt: str):
|
59 |
+
super().__init__(prompt, "system")
|
60 |
+
|
61 |
+
|
62 |
+
class UserRolePrompt(RolePrompt):
|
63 |
+
def __init__(self, prompt: str):
|
64 |
+
super().__init__(prompt, "user")
|
65 |
+
|
66 |
+
|
67 |
+
class AssistantRolePrompt(RolePrompt):
|
68 |
+
def __init__(self, prompt: str):
|
69 |
+
super().__init__(prompt, "assistant")
|
70 |
+
|
71 |
+
|
72 |
+
if __name__ == "__main__":
|
73 |
+
prompt = BasePrompt("Hello {name}, you are {age} years old")
|
74 |
+
print(prompt.format_prompt(name="John", age=30))
|
75 |
+
|
76 |
+
prompt = SystemRolePrompt("Hello {name}, you are {age} years old")
|
77 |
+
print(prompt.create_message(name="John", age=30))
|
78 |
+
print(prompt.get_input_variables())
|
aimakerspace/text_utils.py
ADDED
@@ -0,0 +1,136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
from typing import List
|
3 |
+
import PyPDF2
|
4 |
+
|
5 |
+
|
6 |
+
class TextFileLoader:
|
7 |
+
def __init__(self, path: str, encoding: str = "utf-8"):
|
8 |
+
self.documents = []
|
9 |
+
self.path = path
|
10 |
+
self.encoding = encoding
|
11 |
+
|
12 |
+
def load(self):
|
13 |
+
if os.path.isdir(self.path):
|
14 |
+
self.load_directory()
|
15 |
+
elif os.path.isfile(self.path) and self.path.endswith(".txt"):
|
16 |
+
self.load_file()
|
17 |
+
else:
|
18 |
+
raise ValueError(
|
19 |
+
"Provided path is neither a valid directory nor a .txt file."
|
20 |
+
)
|
21 |
+
|
22 |
+
def load_file(self):
|
23 |
+
with open(self.path, "r", encoding=self.encoding) as f:
|
24 |
+
self.documents.append(f.read())
|
25 |
+
|
26 |
+
def load_directory(self):
|
27 |
+
for root, _, files in os.walk(self.path):
|
28 |
+
for file in files:
|
29 |
+
if file.endswith(".txt"):
|
30 |
+
with open(
|
31 |
+
os.path.join(root, file), "r", encoding=self.encoding
|
32 |
+
) as f:
|
33 |
+
self.documents.append(f.read())
|
34 |
+
|
35 |
+
def load_documents(self):
|
36 |
+
self.load()
|
37 |
+
return self.documents
|
38 |
+
|
39 |
+
|
40 |
+
class CharacterTextSplitter:
|
41 |
+
def __init__(
|
42 |
+
self,
|
43 |
+
chunk_size: int = 1000,
|
44 |
+
chunk_overlap: int = 200,
|
45 |
+
):
|
46 |
+
assert (
|
47 |
+
chunk_size > chunk_overlap
|
48 |
+
), "Chunk size must be greater than chunk overlap"
|
49 |
+
|
50 |
+
self.chunk_size = chunk_size
|
51 |
+
self.chunk_overlap = chunk_overlap
|
52 |
+
|
53 |
+
def split(self, text: str) -> List[str]:
|
54 |
+
chunks = []
|
55 |
+
for i in range(0, len(text), self.chunk_size - self.chunk_overlap):
|
56 |
+
chunks.append(text[i : i + self.chunk_size])
|
57 |
+
return chunks
|
58 |
+
|
59 |
+
def split_texts(self, texts: List[str]) -> List[str]:
|
60 |
+
chunks = []
|
61 |
+
for text in texts:
|
62 |
+
chunks.extend(self.split(text))
|
63 |
+
return chunks
|
64 |
+
|
65 |
+
|
66 |
+
class PDFLoader:
|
67 |
+
def __init__(self, path: str):
|
68 |
+
self.documents = []
|
69 |
+
self.path = path
|
70 |
+
print(f"PDFLoader initialized with path: {self.path}")
|
71 |
+
|
72 |
+
def load(self):
|
73 |
+
print(f"Loading PDF from path: {self.path}")
|
74 |
+
print(f"Path exists: {os.path.exists(self.path)}")
|
75 |
+
print(f"Is file: {os.path.isfile(self.path)}")
|
76 |
+
print(f"Is directory: {os.path.isdir(self.path)}")
|
77 |
+
print(f"File permissions: {oct(os.stat(self.path).st_mode)[-3:]}")
|
78 |
+
|
79 |
+
try:
|
80 |
+
# Try to open the file first to verify access
|
81 |
+
with open(self.path, 'rb') as test_file:
|
82 |
+
pass
|
83 |
+
|
84 |
+
# If we can open it, proceed with loading
|
85 |
+
self.load_file()
|
86 |
+
|
87 |
+
except IOError as e:
|
88 |
+
raise ValueError(f"Cannot access file at '{self.path}': {str(e)}")
|
89 |
+
except Exception as e:
|
90 |
+
raise ValueError(f"Error processing file at '{self.path}': {str(e)}")
|
91 |
+
|
92 |
+
def load_file(self):
|
93 |
+
with open(self.path, 'rb') as file:
|
94 |
+
# Create PDF reader object
|
95 |
+
pdf_reader = PyPDF2.PdfReader(file)
|
96 |
+
|
97 |
+
# Extract text from each page
|
98 |
+
text = ""
|
99 |
+
for page in pdf_reader.pages:
|
100 |
+
text += page.extract_text() + "\n"
|
101 |
+
|
102 |
+
self.documents.append(text)
|
103 |
+
|
104 |
+
def load_directory(self):
|
105 |
+
for root, _, files in os.walk(self.path):
|
106 |
+
for file in files:
|
107 |
+
if file.lower().endswith('.pdf'):
|
108 |
+
file_path = os.path.join(root, file)
|
109 |
+
with open(file_path, 'rb') as f:
|
110 |
+
pdf_reader = PyPDF2.PdfReader(f)
|
111 |
+
|
112 |
+
# Extract text from each page
|
113 |
+
text = ""
|
114 |
+
for page in pdf_reader.pages:
|
115 |
+
text += page.extract_text() + "\n"
|
116 |
+
|
117 |
+
self.documents.append(text)
|
118 |
+
|
119 |
+
def load_documents(self):
|
120 |
+
self.load()
|
121 |
+
return self.documents
|
122 |
+
|
123 |
+
|
124 |
+
if __name__ == "__main__":
|
125 |
+
loader = TextFileLoader("data/KingLear.txt")
|
126 |
+
loader.load()
|
127 |
+
splitter = CharacterTextSplitter()
|
128 |
+
chunks = splitter.split_texts(loader.documents)
|
129 |
+
print(len(chunks))
|
130 |
+
print(chunks[0])
|
131 |
+
print("--------")
|
132 |
+
print(chunks[1])
|
133 |
+
print("--------")
|
134 |
+
print(chunks[-2])
|
135 |
+
print("--------")
|
136 |
+
print(chunks[-1])
|
aimakerspace/vectordatabase.py
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import numpy as np
|
2 |
+
from collections import defaultdict
|
3 |
+
from typing import List, Tuple, Callable
|
4 |
+
from aimakerspace.openai_utils.embedding import EmbeddingModel
|
5 |
+
import asyncio
|
6 |
+
|
7 |
+
|
8 |
+
def cosine_similarity(vector_a: np.array, vector_b: np.array) -> float:
|
9 |
+
"""Computes the cosine similarity between two vectors."""
|
10 |
+
dot_product = np.dot(vector_a, vector_b)
|
11 |
+
norm_a = np.linalg.norm(vector_a)
|
12 |
+
norm_b = np.linalg.norm(vector_b)
|
13 |
+
return dot_product / (norm_a * norm_b)
|
14 |
+
|
15 |
+
|
16 |
+
class VectorDatabase:
|
17 |
+
def __init__(self, embedding_model: EmbeddingModel = None):
|
18 |
+
self.vectors = defaultdict(np.array)
|
19 |
+
self.embedding_model = embedding_model or EmbeddingModel()
|
20 |
+
|
21 |
+
def insert(self, key: str, vector: np.array) -> None:
|
22 |
+
self.vectors[key] = vector
|
23 |
+
|
24 |
+
def search(
|
25 |
+
self,
|
26 |
+
query_vector: np.array,
|
27 |
+
k: int,
|
28 |
+
distance_measure: Callable = cosine_similarity,
|
29 |
+
) -> List[Tuple[str, float]]:
|
30 |
+
scores = [
|
31 |
+
(key, distance_measure(query_vector, vector))
|
32 |
+
for key, vector in self.vectors.items()
|
33 |
+
]
|
34 |
+
return sorted(scores, key=lambda x: x[1], reverse=True)[:k]
|
35 |
+
|
36 |
+
def search_by_text(
|
37 |
+
self,
|
38 |
+
query_text: str,
|
39 |
+
k: int,
|
40 |
+
distance_measure: Callable = cosine_similarity,
|
41 |
+
return_as_text: bool = False,
|
42 |
+
) -> List[Tuple[str, float]]:
|
43 |
+
query_vector = self.embedding_model.get_embedding(query_text)
|
44 |
+
results = self.search(query_vector, k, distance_measure)
|
45 |
+
return [result[0] for result in results] if return_as_text else results
|
46 |
+
|
47 |
+
def retrieve_from_key(self, key: str) -> np.array:
|
48 |
+
return self.vectors.get(key, None)
|
49 |
+
|
50 |
+
async def abuild_from_list(self, list_of_text: List[str]) -> "VectorDatabase":
|
51 |
+
embeddings = await self.embedding_model.async_get_embeddings(list_of_text)
|
52 |
+
for text, embedding in zip(list_of_text, embeddings):
|
53 |
+
self.insert(text, np.array(embedding))
|
54 |
+
return self
|
55 |
+
|
56 |
+
|
57 |
+
if __name__ == "__main__":
|
58 |
+
list_of_text = [
|
59 |
+
"I like to eat broccoli and bananas.",
|
60 |
+
"I ate a banana and spinach smoothie for breakfast.",
|
61 |
+
"Chinchillas and kittens are cute.",
|
62 |
+
"My sister adopted a kitten yesterday.",
|
63 |
+
"Look at this cute hamster munching on a piece of broccoli.",
|
64 |
+
]
|
65 |
+
|
66 |
+
vector_db = VectorDatabase()
|
67 |
+
vector_db = asyncio.run(vector_db.abuild_from_list(list_of_text))
|
68 |
+
k = 2
|
69 |
+
|
70 |
+
searched_vector = vector_db.search_by_text("I think fruit is awesome!", k=k)
|
71 |
+
print(f"Closest {k} vector(s):", searched_vector)
|
72 |
+
|
73 |
+
retrieved_vector = vector_db.retrieve_from_key(
|
74 |
+
"I like to eat broccoli and bananas."
|
75 |
+
)
|
76 |
+
print("Retrieved vector:", retrieved_vector)
|
77 |
+
|
78 |
+
relevant_texts = vector_db.search_by_text(
|
79 |
+
"I think fruit is awesome!", k=k, return_as_text=True
|
80 |
+
)
|
81 |
+
print(f"Closest {k} text(s):", relevant_texts)
|
api.py
ADDED
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
from typing import List
|
3 |
+
from fastapi import FastAPI, HTTPException, UploadFile, File
|
4 |
+
from fastapi.middleware.cors import CORSMiddleware
|
5 |
+
from pydantic import BaseModel
|
6 |
+
import asyncio
|
7 |
+
import tempfile
|
8 |
+
from aimakerspace.vectordatabase import VectorDatabase
|
9 |
+
from aimakerspace.openai_utils.chatmodel import ChatOpenAI
|
10 |
+
|
11 |
+
from app import (
|
12 |
+
RetrievalAugmentedQAPipeline,
|
13 |
+
process_file,
|
14 |
+
system_role_prompt,
|
15 |
+
user_role_prompt,
|
16 |
+
)
|
17 |
+
|
18 |
+
app = FastAPI()
|
19 |
+
|
20 |
+
# Update CORS middleware configuration
|
21 |
+
app.add_middleware(
|
22 |
+
CORSMiddleware,
|
23 |
+
allow_origins=[
|
24 |
+
"http://localhost:3001", # Development React server
|
25 |
+
"http://localhost:7860", # Production nginx server
|
26 |
+
"http://localhost", # Just in case
|
27 |
+
"*", # Allow all origins in development
|
28 |
+
],
|
29 |
+
allow_credentials=True,
|
30 |
+
allow_methods=["*"],
|
31 |
+
allow_headers=["*"],
|
32 |
+
expose_headers=["*"],
|
33 |
+
)
|
34 |
+
|
35 |
+
class ChatResponse(BaseModel):
|
36 |
+
response: str
|
37 |
+
context: List[tuple]
|
38 |
+
|
39 |
+
class ChatRequest(BaseModel):
|
40 |
+
query: str
|
41 |
+
|
42 |
+
@app.post("/api/upload", response_model=dict)
|
43 |
+
async def upload_file(file: UploadFile = File(...)):
|
44 |
+
try:
|
45 |
+
# Create a temporary file to store the upload
|
46 |
+
with tempfile.NamedTemporaryFile(delete=False, suffix=f".{file.filename.split('.')[-1]}") as temp_file:
|
47 |
+
content = await file.read()
|
48 |
+
temp_file.write(content)
|
49 |
+
temp_file.flush()
|
50 |
+
|
51 |
+
# Process the file using existing function
|
52 |
+
texts = process_file(temp_file.name, file.filename)
|
53 |
+
|
54 |
+
# Create vector database
|
55 |
+
vector_db = VectorDatabase()
|
56 |
+
vector_db = await vector_db.abuild_from_list(texts)
|
57 |
+
|
58 |
+
# Create chat model
|
59 |
+
chat_openai = ChatOpenAI()
|
60 |
+
|
61 |
+
# Create pipeline
|
62 |
+
pipeline = RetrievalAugmentedQAPipeline(
|
63 |
+
vector_db_retriever=vector_db,
|
64 |
+
llm=chat_openai
|
65 |
+
)
|
66 |
+
|
67 |
+
# Store the pipeline in memory (Note: this is not production-ready)
|
68 |
+
if not hasattr(app, 'pipelines'):
|
69 |
+
app.pipelines = {}
|
70 |
+
pipeline_id = str(len(app.pipelines))
|
71 |
+
app.pipelines[pipeline_id] = pipeline
|
72 |
+
|
73 |
+
# Clean up temporary file
|
74 |
+
os.unlink(temp_file.name)
|
75 |
+
|
76 |
+
return {"pipeline_id": pipeline_id, "message": "File processed successfully"}
|
77 |
+
|
78 |
+
except Exception as e:
|
79 |
+
raise HTTPException(status_code=500, detail=str(e))
|
80 |
+
|
81 |
+
@app.post("/api/chat/{pipeline_id}", response_model=ChatResponse)
|
82 |
+
async def chat(pipeline_id: str, request: ChatRequest):
|
83 |
+
try:
|
84 |
+
if not hasattr(app, 'pipelines') or pipeline_id not in app.pipelines:
|
85 |
+
raise HTTPException(status_code=404, detail="Pipeline not found. Please upload a file first.")
|
86 |
+
|
87 |
+
pipeline = app.pipelines[pipeline_id]
|
88 |
+
result = await pipeline.arun_pipeline(request.query)
|
89 |
+
|
90 |
+
# Collect the streaming response
|
91 |
+
response_text = ""
|
92 |
+
async for chunk in result["response"]:
|
93 |
+
response_text += chunk
|
94 |
+
|
95 |
+
return ChatResponse(
|
96 |
+
response=response_text,
|
97 |
+
context=result["context"]
|
98 |
+
)
|
99 |
+
|
100 |
+
except Exception as e:
|
101 |
+
raise HTTPException(status_code=500, detail=str(e))
|
102 |
+
|
103 |
+
if __name__ == "__main__":
|
104 |
+
import uvicorn
|
105 |
+
uvicorn.run(app, host="0.0.0.0", port=8000)
|
app.py
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
from typing import List
|
3 |
+
from aimakerspace.text_utils import CharacterTextSplitter, TextFileLoader, PDFLoader
|
4 |
+
from aimakerspace.openai_utils.prompts import (
|
5 |
+
UserRolePrompt,
|
6 |
+
SystemRolePrompt,
|
7 |
+
AssistantRolePrompt,
|
8 |
+
)
|
9 |
+
from aimakerspace.openai_utils.embedding import EmbeddingModel
|
10 |
+
from aimakerspace.vectordatabase import VectorDatabase
|
11 |
+
from aimakerspace.openai_utils.chatmodel import ChatOpenAI
|
12 |
+
|
13 |
+
system_template = """\
|
14 |
+
Use the following context to answer a users question. If you cannot find the answer in the context, say you don't know the answer."""
|
15 |
+
system_role_prompt = SystemRolePrompt(system_template)
|
16 |
+
|
17 |
+
user_prompt_template = """\
|
18 |
+
Context:
|
19 |
+
{context}
|
20 |
+
|
21 |
+
Question:
|
22 |
+
{question}
|
23 |
+
"""
|
24 |
+
user_role_prompt = UserRolePrompt(user_prompt_template)
|
25 |
+
|
26 |
+
class RetrievalAugmentedQAPipeline:
|
27 |
+
def __init__(self, llm: ChatOpenAI(), vector_db_retriever: VectorDatabase) -> None:
|
28 |
+
self.llm = llm
|
29 |
+
self.vector_db_retriever = vector_db_retriever
|
30 |
+
|
31 |
+
async def arun_pipeline(self, user_query: str):
|
32 |
+
context_list = self.vector_db_retriever.search_by_text(user_query, k=4)
|
33 |
+
|
34 |
+
context_prompt = ""
|
35 |
+
for context in context_list:
|
36 |
+
context_prompt += context[0] + "\n"
|
37 |
+
|
38 |
+
formatted_system_prompt = system_role_prompt.create_message()
|
39 |
+
formatted_user_prompt = user_role_prompt.create_message(question=user_query, context=context_prompt)
|
40 |
+
|
41 |
+
async def generate_response():
|
42 |
+
async for chunk in self.llm.astream([formatted_system_prompt, formatted_user_prompt]):
|
43 |
+
yield chunk
|
44 |
+
|
45 |
+
return {"response": generate_response(), "context": context_list}
|
46 |
+
|
47 |
+
text_splitter = CharacterTextSplitter()
|
48 |
+
|
49 |
+
def process_file(file_path: str, file_name: str):
|
50 |
+
print(f"Processing file: {file_name}")
|
51 |
+
|
52 |
+
# Create appropriate loader based on file extension
|
53 |
+
if file_name.lower().endswith('.pdf'):
|
54 |
+
loader = PDFLoader(file_path)
|
55 |
+
else:
|
56 |
+
loader = TextFileLoader(file_path)
|
57 |
+
|
58 |
+
# Load and process the documents
|
59 |
+
documents = loader.load_documents()
|
60 |
+
texts = text_splitter.split_texts(documents)
|
61 |
+
return texts
|
frontend/.env.production
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
REACT_APP_API_BASE_URL=
|
frontend/package-lock.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
frontend/package.json
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "chat-frontend",
|
3 |
+
"version": "0.1.0",
|
4 |
+
"private": true,
|
5 |
+
"dependencies": {
|
6 |
+
"@testing-library/jest-dom": "^5.17.0",
|
7 |
+
"@testing-library/react": "^13.4.0",
|
8 |
+
"@testing-library/user-event": "^13.5.0",
|
9 |
+
"@types/jest": "^27.5.2",
|
10 |
+
"@types/node": "^16.18.0",
|
11 |
+
"react": "^18.2.0",
|
12 |
+
"react-dom": "^18.2.0",
|
13 |
+
"react-scripts": "5.0.1",
|
14 |
+
"typescript": "^4.9.5",
|
15 |
+
"web-vitals": "^2.1.4"
|
16 |
+
},
|
17 |
+
"scripts": {
|
18 |
+
"start": "PORT=3001 react-scripts start",
|
19 |
+
"build": "react-scripts build",
|
20 |
+
"test": "react-scripts test",
|
21 |
+
"eject": "react-scripts eject"
|
22 |
+
},
|
23 |
+
"eslintConfig": {
|
24 |
+
"extends": [
|
25 |
+
"react-app",
|
26 |
+
"react-app/jest"
|
27 |
+
]
|
28 |
+
},
|
29 |
+
"browserslist": {
|
30 |
+
"production": [
|
31 |
+
">0.2%",
|
32 |
+
"not dead",
|
33 |
+
"not op_mini all"
|
34 |
+
],
|
35 |
+
"development": [
|
36 |
+
"last 1 chrome version",
|
37 |
+
"last 1 firefox version",
|
38 |
+
"last 1 safari version"
|
39 |
+
]
|
40 |
+
},
|
41 |
+
"devDependencies": {
|
42 |
+
"@types/react": "^19.0.8",
|
43 |
+
"@types/react-dom": "^19.0.3",
|
44 |
+
"autoprefixer": "^10.4.16",
|
45 |
+
"postcss": "^8.4.31",
|
46 |
+
"tailwindcss": "^3.3.5"
|
47 |
+
}
|
48 |
+
}
|
frontend/public/index.html
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="utf-8" />
|
5 |
+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
7 |
+
<meta name="theme-color" content="#000000" />
|
8 |
+
<meta name="description" content="Document Q&A Chat Application" />
|
9 |
+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
10 |
+
<!--
|
11 |
+
manifest.json provides metadata used when your web app is installed on a
|
12 |
+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
13 |
+
-->
|
14 |
+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
15 |
+
<title>Document Q&A Chat</title>
|
16 |
+
</head>
|
17 |
+
<body>
|
18 |
+
<noscript>You need to enable JavaScript to run this app.</noscript>
|
19 |
+
<div id="root"></div>
|
20 |
+
</body>
|
21 |
+
</html>
|
frontend/public/manifest.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"short_name": "Document Q&A",
|
3 |
+
"name": "Document Q&A Chat Application",
|
4 |
+
"icons": [
|
5 |
+
{
|
6 |
+
"src": "favicon.ico",
|
7 |
+
"sizes": "64x64 32x32 24x24 16x16",
|
8 |
+
"type": "image/x-icon"
|
9 |
+
}
|
10 |
+
],
|
11 |
+
"start_url": ".",
|
12 |
+
"display": "standalone",
|
13 |
+
"theme_color": "#000000",
|
14 |
+
"background_color": "#ffffff"
|
15 |
+
}
|
frontend/src/App.tsx
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React, { useState } from "react";
|
2 |
+
import ChatInterface from "./components/ChatInterface";
|
3 |
+
|
4 |
+
const API_BASE_URL = process.env.REACT_APP_API_BASE_URL || "";
|
5 |
+
|
6 |
+
console.log("API_BASE_URL:", API_BASE_URL);
|
7 |
+
|
8 |
+
const App: React.FC = () => {
|
9 |
+
const [pipelineId, setPipelineId] = useState<string | null>(null);
|
10 |
+
|
11 |
+
const handleFileUpload = async (file: File) => {
|
12 |
+
const formData = new FormData();
|
13 |
+
formData.append("file", file);
|
14 |
+
|
15 |
+
const url = `${API_BASE_URL}/api/upload`;
|
16 |
+
console.log("Uploading file to:", url);
|
17 |
+
|
18 |
+
try {
|
19 |
+
const response = await fetch(url, {
|
20 |
+
method: "POST",
|
21 |
+
body: formData,
|
22 |
+
});
|
23 |
+
|
24 |
+
if (!response.ok) {
|
25 |
+
const errorData = await response.json().catch(() => ({}));
|
26 |
+
throw new Error(errorData.detail || "Upload failed");
|
27 |
+
}
|
28 |
+
|
29 |
+
const data = await response.json();
|
30 |
+
console.log("Upload response:", data);
|
31 |
+
setPipelineId(data.pipeline_id);
|
32 |
+
} catch (error) {
|
33 |
+
console.error("Error uploading file:", error);
|
34 |
+
throw error;
|
35 |
+
}
|
36 |
+
};
|
37 |
+
|
38 |
+
return (
|
39 |
+
<div className="min-h-screen bg-gray-900">
|
40 |
+
<header className="bg-gray-800 border-b border-gray-700">
|
41 |
+
<div className="max-w-7xl mx-auto py-4 px-4">
|
42 |
+
<h1 className="text-2xl font-bold text-white">Document Q&A Chat</h1>
|
43 |
+
</div>
|
44 |
+
</header>
|
45 |
+
<main className="max-w-7xl mx-auto">
|
46 |
+
<ChatInterface
|
47 |
+
pipelineId={pipelineId}
|
48 |
+
onFileUpload={handleFileUpload}
|
49 |
+
/>
|
50 |
+
</main>
|
51 |
+
</div>
|
52 |
+
);
|
53 |
+
};
|
54 |
+
|
55 |
+
export default App;
|
frontend/src/components/ChatInterface.tsx
ADDED
@@ -0,0 +1,328 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React, { useState, useRef, useEffect } from "react";
|
2 |
+
|
3 |
+
interface Message {
|
4 |
+
role: "user" | "assistant";
|
5 |
+
content: string;
|
6 |
+
}
|
7 |
+
|
8 |
+
interface ChatInterfaceProps {
|
9 |
+
pipelineId: string | null;
|
10 |
+
onFileUpload: (file: File) => Promise<void>;
|
11 |
+
}
|
12 |
+
|
13 |
+
const TypingIndicator = () => (
|
14 |
+
<div className="flex justify-start">
|
15 |
+
<div className="bg-gray-800 text-gray-100 p-4 rounded-lg flex items-center space-x-2">
|
16 |
+
<div
|
17 |
+
className="w-2 h-2 bg-gray-400 rounded-full animate-bounce"
|
18 |
+
style={{ animationDelay: "0ms" }}
|
19 |
+
></div>
|
20 |
+
<div
|
21 |
+
className="w-2 h-2 bg-gray-400 rounded-full animate-bounce"
|
22 |
+
style={{ animationDelay: "150ms" }}
|
23 |
+
></div>
|
24 |
+
<div
|
25 |
+
className="w-2 h-2 bg-gray-400 rounded-full animate-bounce"
|
26 |
+
style={{ animationDelay: "300ms" }}
|
27 |
+
></div>
|
28 |
+
</div>
|
29 |
+
</div>
|
30 |
+
);
|
31 |
+
|
32 |
+
const LoadingState = () => (
|
33 |
+
<div className="flex flex-col items-center justify-center h-full">
|
34 |
+
<div className="bg-gray-800 p-8 rounded-lg shadow-lg max-w-md w-full">
|
35 |
+
<div className="flex items-center justify-center mb-6">
|
36 |
+
<div className="animate-spin rounded-full h-12 w-12 border-b-2 border-blue-500"></div>
|
37 |
+
</div>
|
38 |
+
<div className="space-y-4">
|
39 |
+
<div className="h-4 bg-gray-700 rounded animate-pulse"></div>
|
40 |
+
<div className="h-4 bg-gray-700 rounded animate-pulse w-3/4"></div>
|
41 |
+
<div className="h-4 bg-gray-700 rounded animate-pulse w-1/2"></div>
|
42 |
+
</div>
|
43 |
+
<div className="mt-6 text-gray-400 text-center">
|
44 |
+
Processing your document...
|
45 |
+
</div>
|
46 |
+
</div>
|
47 |
+
</div>
|
48 |
+
);
|
49 |
+
|
50 |
+
const ErrorState = ({ onRetry }: { onRetry: () => void }) => (
|
51 |
+
<div className="flex flex-col items-center justify-center h-full">
|
52 |
+
<div className="bg-gray-800 p-8 rounded-lg shadow-lg max-w-md w-full">
|
53 |
+
<div className="flex items-center justify-center mb-6 text-red-500">
|
54 |
+
<svg
|
55 |
+
className="w-12 h-12"
|
56 |
+
fill="none"
|
57 |
+
stroke="currentColor"
|
58 |
+
viewBox="0 0 24 24"
|
59 |
+
>
|
60 |
+
<path
|
61 |
+
strokeLinecap="round"
|
62 |
+
strokeLinejoin="round"
|
63 |
+
strokeWidth={2}
|
64 |
+
d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
|
65 |
+
/>
|
66 |
+
</svg>
|
67 |
+
</div>
|
68 |
+
<div className="text-center">
|
69 |
+
<h3 className="text-lg font-medium text-white mb-2">
|
70 |
+
Document Upload Failed
|
71 |
+
</h3>
|
72 |
+
<p className="text-gray-400 mb-6">
|
73 |
+
There was an error processing your document. Please try again.
|
74 |
+
</p>
|
75 |
+
<button
|
76 |
+
onClick={onRetry}
|
77 |
+
className="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition-colors"
|
78 |
+
>
|
79 |
+
Try Again
|
80 |
+
</button>
|
81 |
+
</div>
|
82 |
+
</div>
|
83 |
+
</div>
|
84 |
+
);
|
85 |
+
|
86 |
+
const API_BASE_URL = process.env.REACT_APP_API_BASE_URL || "";
|
87 |
+
|
88 |
+
const ChatInterface: React.FC<ChatInterfaceProps> = ({
|
89 |
+
pipelineId,
|
90 |
+
onFileUpload,
|
91 |
+
}) => {
|
92 |
+
const [messages, setMessages] = useState<Message[]>([]);
|
93 |
+
const [input, setInput] = useState("");
|
94 |
+
const [isLoading, setIsLoading] = useState(false);
|
95 |
+
const [isUploading, setIsUploading] = useState(false);
|
96 |
+
const [uploadError, setUploadError] = useState(false);
|
97 |
+
const messagesEndRef = useRef<null | HTMLDivElement>(null);
|
98 |
+
const fileInputRef = useRef<HTMLInputElement>(null);
|
99 |
+
|
100 |
+
useEffect(() => {
|
101 |
+
if (pipelineId) {
|
102 |
+
setIsUploading(false);
|
103 |
+
setMessages([
|
104 |
+
{
|
105 |
+
role: "assistant",
|
106 |
+
content:
|
107 |
+
"👋 Your document has been processed! You can now ask questions about its content.",
|
108 |
+
},
|
109 |
+
]);
|
110 |
+
}
|
111 |
+
}, [pipelineId]);
|
112 |
+
|
113 |
+
const scrollToBottom = () => {
|
114 |
+
messagesEndRef.current?.scrollIntoView({ behavior: "smooth" });
|
115 |
+
};
|
116 |
+
|
117 |
+
useEffect(() => {
|
118 |
+
scrollToBottom();
|
119 |
+
}, [messages]);
|
120 |
+
|
121 |
+
const handleFileUpload = async (
|
122 |
+
event: React.ChangeEvent<HTMLInputElement>
|
123 |
+
) => {
|
124 |
+
const file = event.target.files?.[0];
|
125 |
+
if (file) {
|
126 |
+
try {
|
127 |
+
setIsUploading(true);
|
128 |
+
setUploadError(false);
|
129 |
+
await onFileUpload(file);
|
130 |
+
} catch (error) {
|
131 |
+
console.error("Error uploading file:", error);
|
132 |
+
setUploadError(true);
|
133 |
+
} finally {
|
134 |
+
setIsUploading(false);
|
135 |
+
}
|
136 |
+
}
|
137 |
+
};
|
138 |
+
|
139 |
+
const handleRetry = () => {
|
140 |
+
setUploadError(false);
|
141 |
+
// Reset file input
|
142 |
+
if (fileInputRef.current) {
|
143 |
+
fileInputRef.current.value = "";
|
144 |
+
}
|
145 |
+
};
|
146 |
+
|
147 |
+
const sendMessage = async (e: React.FormEvent) => {
|
148 |
+
e.preventDefault();
|
149 |
+
if (!input.trim() || !pipelineId) return;
|
150 |
+
|
151 |
+
const userMessage = input.trim();
|
152 |
+
setInput("");
|
153 |
+
setMessages((prev) => [...prev, { role: "user", content: userMessage }]);
|
154 |
+
setIsLoading(true);
|
155 |
+
|
156 |
+
try {
|
157 |
+
const response = await fetch(`${API_BASE_URL}/api/chat/${pipelineId}`, {
|
158 |
+
method: "POST",
|
159 |
+
headers: {
|
160 |
+
"Content-Type": "application/json",
|
161 |
+
},
|
162 |
+
body: JSON.stringify({ query: userMessage }),
|
163 |
+
});
|
164 |
+
|
165 |
+
const data = await response.json();
|
166 |
+
setMessages((prev) => [
|
167 |
+
...prev,
|
168 |
+
{ role: "assistant", content: data.response },
|
169 |
+
]);
|
170 |
+
} catch (error) {
|
171 |
+
console.error("Error sending message:", error);
|
172 |
+
setMessages((prev) => [
|
173 |
+
...prev,
|
174 |
+
{ role: "assistant", content: "Error: Failed to get response" },
|
175 |
+
]);
|
176 |
+
} finally {
|
177 |
+
setIsLoading(false);
|
178 |
+
}
|
179 |
+
};
|
180 |
+
|
181 |
+
return (
|
182 |
+
<div className="flex flex-col h-screen bg-gray-900">
|
183 |
+
{isUploading ? (
|
184 |
+
<LoadingState />
|
185 |
+
) : uploadError ? (
|
186 |
+
<ErrorState onRetry={handleRetry} />
|
187 |
+
) : !pipelineId ? (
|
188 |
+
<div className="flex flex-col items-center justify-center h-full">
|
189 |
+
<div className="bg-gray-800 p-8 rounded-lg shadow-lg max-w-md w-full">
|
190 |
+
<h2 className="text-2xl font-bold text-white mb-6 text-center">
|
191 |
+
Upload your document
|
192 |
+
</h2>
|
193 |
+
<label className="flex flex-col items-center justify-center w-full h-32 border-2 border-gray-600 border-dashed rounded-lg cursor-pointer hover:border-gray-500 hover:bg-gray-800/50 transition-all">
|
194 |
+
<div className="flex flex-col items-center justify-center pt-5 pb-6">
|
195 |
+
<svg
|
196 |
+
className="w-8 h-8 mb-4 text-gray-400"
|
197 |
+
aria-hidden="true"
|
198 |
+
xmlns="http://www.w3.org/2000/svg"
|
199 |
+
fill="none"
|
200 |
+
viewBox="0 0 20 16"
|
201 |
+
>
|
202 |
+
<path
|
203 |
+
stroke="currentColor"
|
204 |
+
strokeLinecap="round"
|
205 |
+
strokeLinejoin="round"
|
206 |
+
strokeWidth="2"
|
207 |
+
d="M13 13h3a3 3 0 0 0 0-6h-.025A5.56 5.56 0 0 0 16 6.5 5.5 5.5 0 0 0 5.207 5.021C5.137 5.017 5.071 5 5 5a4 4 0 0 0 0 8h2.167M10 15V6m0 0L8 8m2-2 2 2"
|
208 |
+
/>
|
209 |
+
</svg>
|
210 |
+
<p className="mb-2 text-sm text-gray-400">
|
211 |
+
<span className="font-semibold">Click to upload</span> or drag
|
212 |
+
and drop
|
213 |
+
</p>
|
214 |
+
<p className="text-xs text-gray-400">PDF or TXT files</p>
|
215 |
+
</div>
|
216 |
+
<input
|
217 |
+
ref={fileInputRef}
|
218 |
+
type="file"
|
219 |
+
accept=".pdf,.txt"
|
220 |
+
onChange={handleFileUpload}
|
221 |
+
className="hidden"
|
222 |
+
/>
|
223 |
+
</label>
|
224 |
+
</div>
|
225 |
+
</div>
|
226 |
+
) : (
|
227 |
+
<div className="flex flex-col h-full max-w-5xl mx-auto w-full">
|
228 |
+
<div className="flex-1 overflow-y-auto p-4 space-y-4 mb-6">
|
229 |
+
{messages.map((message, index) => (
|
230 |
+
<div
|
231 |
+
key={index}
|
232 |
+
className={`flex ${
|
233 |
+
message.role === "user" ? "justify-end" : "justify-start"
|
234 |
+
}`}
|
235 |
+
>
|
236 |
+
<div
|
237 |
+
className={`max-w-[80%] p-4 rounded-lg shadow-lg ${
|
238 |
+
message.role === "user"
|
239 |
+
? "bg-blue-600 text-white"
|
240 |
+
: "bg-gray-800 text-gray-100"
|
241 |
+
}`}
|
242 |
+
>
|
243 |
+
{message.content}
|
244 |
+
</div>
|
245 |
+
</div>
|
246 |
+
))}
|
247 |
+
{isLoading && <TypingIndicator />}
|
248 |
+
{messages.length === 0 && !isLoading && (
|
249 |
+
<div className="flex justify-center items-center h-full">
|
250 |
+
<div className="text-gray-400 text-center">
|
251 |
+
<p>No messages yet</p>
|
252 |
+
<p className="text-sm mt-2">
|
253 |
+
Start by asking a question about your document
|
254 |
+
</p>
|
255 |
+
</div>
|
256 |
+
</div>
|
257 |
+
)}
|
258 |
+
<div ref={messagesEndRef} />
|
259 |
+
</div>
|
260 |
+
<div className="px-4 pb-6">
|
261 |
+
<div className="bg-gray-800 rounded-lg p-2 shadow-lg border border-gray-700">
|
262 |
+
<form onSubmit={sendMessage} className="flex items-center gap-2">
|
263 |
+
<input
|
264 |
+
type="text"
|
265 |
+
value={input}
|
266 |
+
onChange={(e) => setInput(e.target.value)}
|
267 |
+
placeholder="Ask a question about your document..."
|
268 |
+
className="flex-1 p-3 bg-transparent text-white placeholder-gray-400 focus:outline-none"
|
269 |
+
disabled={isLoading}
|
270 |
+
/>
|
271 |
+
<button
|
272 |
+
type="submit"
|
273 |
+
disabled={isLoading || !input.trim()}
|
274 |
+
className="px-6 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 disabled:bg-gray-600 disabled:cursor-not-allowed transition-colors flex items-center gap-2 min-w-[100px] justify-center"
|
275 |
+
>
|
276 |
+
{isLoading ? (
|
277 |
+
<>
|
278 |
+
<svg
|
279 |
+
className="animate-spin h-4 w-4 text-white"
|
280 |
+
xmlns="http://www.w3.org/2000/svg"
|
281 |
+
fill="none"
|
282 |
+
viewBox="0 0 24 24"
|
283 |
+
>
|
284 |
+
<circle
|
285 |
+
className="opacity-25"
|
286 |
+
cx="12"
|
287 |
+
cy="12"
|
288 |
+
r="10"
|
289 |
+
stroke="currentColor"
|
290 |
+
strokeWidth="4"
|
291 |
+
></circle>
|
292 |
+
<path
|
293 |
+
className="opacity-75"
|
294 |
+
fill="currentColor"
|
295 |
+
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
296 |
+
></path>
|
297 |
+
</svg>
|
298 |
+
<span>Sending...</span>
|
299 |
+
</>
|
300 |
+
) : (
|
301 |
+
<>
|
302 |
+
<span>Send</span>
|
303 |
+
<svg
|
304 |
+
className="w-4 h-4"
|
305 |
+
fill="none"
|
306 |
+
stroke="currentColor"
|
307 |
+
viewBox="0 0 24 24"
|
308 |
+
>
|
309 |
+
<path
|
310 |
+
strokeLinecap="round"
|
311 |
+
strokeLinejoin="round"
|
312 |
+
strokeWidth={2}
|
313 |
+
d="M14 5l7 7m0 0l-7 7m7-7H3"
|
314 |
+
/>
|
315 |
+
</svg>
|
316 |
+
</>
|
317 |
+
)}
|
318 |
+
</button>
|
319 |
+
</form>
|
320 |
+
</div>
|
321 |
+
</div>
|
322 |
+
</div>
|
323 |
+
)}
|
324 |
+
</div>
|
325 |
+
);
|
326 |
+
};
|
327 |
+
|
328 |
+
export default ChatInterface;
|
frontend/src/index.css
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
@tailwind base;
|
2 |
+
@tailwind components;
|
3 |
+
@tailwind utilities;
|
frontend/src/index.tsx
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React from "react";
|
2 |
+
import ReactDOM from "react-dom/client";
|
3 |
+
import "./index.css";
|
4 |
+
import App from "./App";
|
5 |
+
|
6 |
+
const root = ReactDOM.createRoot(
|
7 |
+
document.getElementById("root") as HTMLElement
|
8 |
+
);
|
9 |
+
root.render(
|
10 |
+
<React.StrictMode>
|
11 |
+
<App />
|
12 |
+
</React.StrictMode>
|
13 |
+
);
|
14 |
+
|
15 |
+
// Add an empty export to make this file a module
|
16 |
+
export {};
|
frontend/tailwind.config.js
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
module.exports = {
|
2 |
+
content: ["./src/**/*.{js,jsx,ts,tsx}"],
|
3 |
+
theme: {
|
4 |
+
extend: {},
|
5 |
+
},
|
6 |
+
plugins: [],
|
7 |
+
};
|
frontend/tsconfig.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"compilerOptions": {
|
3 |
+
"target": "es5",
|
4 |
+
"lib": ["dom", "dom.iterable", "esnext"],
|
5 |
+
"allowJs": true,
|
6 |
+
"skipLibCheck": true,
|
7 |
+
"esModuleInterop": true,
|
8 |
+
"allowSyntheticDefaultImports": true,
|
9 |
+
"strict": true,
|
10 |
+
"forceConsistentCasingInFileNames": true,
|
11 |
+
"noFallthroughCasesInSwitch": true,
|
12 |
+
"module": "esnext",
|
13 |
+
"moduleResolution": "node",
|
14 |
+
"resolveJsonModule": true,
|
15 |
+
"isolatedModules": true,
|
16 |
+
"noEmit": true,
|
17 |
+
"jsx": "react-jsx"
|
18 |
+
},
|
19 |
+
"include": ["src"]
|
20 |
+
}
|
nginx.conf
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
worker_processes 1;
|
2 |
+
error_log /var/log/nginx/error.log warn;
|
3 |
+
pid /var/run/nginx.pid;
|
4 |
+
|
5 |
+
events {
|
6 |
+
worker_connections 1024;
|
7 |
+
}
|
8 |
+
|
9 |
+
http {
|
10 |
+
include /etc/nginx/mime.types;
|
11 |
+
default_type application/octet-stream;
|
12 |
+
access_log /var/log/nginx/access.log combined;
|
13 |
+
sendfile on;
|
14 |
+
keepalive_timeout 65;
|
15 |
+
|
16 |
+
# Add these settings for handling large file uploads
|
17 |
+
client_max_body_size 10M;
|
18 |
+
proxy_read_timeout 300;
|
19 |
+
proxy_connect_timeout 300;
|
20 |
+
proxy_send_timeout 300;
|
21 |
+
|
22 |
+
server {
|
23 |
+
listen 7860;
|
24 |
+
root /app/static;
|
25 |
+
index index.html;
|
26 |
+
|
27 |
+
location / {
|
28 |
+
try_files $uri $uri/ /index.html;
|
29 |
+
add_header Cache-Control "no-cache";
|
30 |
+
}
|
31 |
+
|
32 |
+
location /api {
|
33 |
+
proxy_pass http://localhost:8000;
|
34 |
+
proxy_http_version 1.1;
|
35 |
+
proxy_set_header Upgrade $http_upgrade;
|
36 |
+
proxy_set_header Connection 'upgrade';
|
37 |
+
proxy_set_header Host $host;
|
38 |
+
proxy_set_header X-Real-IP $remote_addr;
|
39 |
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
40 |
+
proxy_set_header X-Forwarded-Proto $scheme;
|
41 |
+
proxy_cache_bypass $http_upgrade;
|
42 |
+
|
43 |
+
# Add these for better file upload handling
|
44 |
+
proxy_request_buffering off;
|
45 |
+
proxy_buffering off;
|
46 |
+
}
|
47 |
+
}
|
48 |
+
}
|
pyproject.toml
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[project]
|
2 |
+
name = "aie5-deploypythonicrag"
|
3 |
+
version = "0.1.0"
|
4 |
+
description = "Simple Pythonic RAG App"
|
5 |
+
readme = "README.md"
|
6 |
+
requires-python = ">=3.13"
|
7 |
+
dependencies = [
|
8 |
+
"chainlit>=2.0.4",
|
9 |
+
"numpy>=2.2.2",
|
10 |
+
"openai>=1.59.9",
|
11 |
+
"pydantic==2.10.1",
|
12 |
+
"pypdf2>=3.0.1",
|
13 |
+
"websockets>=14.2",
|
14 |
+
"fastapi>=0.115.6",
|
15 |
+
"uvicorn>=0.34.0",
|
16 |
+
"python-multipart>=0.0.18"
|
17 |
+
]
|
uv.lock
ADDED
@@ -0,0 +1,933 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
version = 1
|
2 |
+
requires-python = ">=3.13"
|
3 |
+
|
4 |
+
[[package]]
|
5 |
+
name = "aie5-deploypythonicrag"
|
6 |
+
version = "0.1.0"
|
7 |
+
source = { virtual = "." }
|
8 |
+
dependencies = [
|
9 |
+
{ name = "chainlit" },
|
10 |
+
{ name = "fastapi" },
|
11 |
+
{ name = "numpy" },
|
12 |
+
{ name = "openai" },
|
13 |
+
{ name = "pydantic" },
|
14 |
+
{ name = "pypdf2" },
|
15 |
+
{ name = "python-multipart" },
|
16 |
+
{ name = "uvicorn" },
|
17 |
+
{ name = "websockets" },
|
18 |
+
]
|
19 |
+
|
20 |
+
[package.metadata]
|
21 |
+
requires-dist = [
|
22 |
+
{ name = "chainlit", specifier = ">=2.0.4" },
|
23 |
+
{ name = "fastapi", specifier = ">=0.115.6" },
|
24 |
+
{ name = "numpy", specifier = ">=2.2.2" },
|
25 |
+
{ name = "openai", specifier = ">=1.59.9" },
|
26 |
+
{ name = "pydantic", specifier = "==2.10.1" },
|
27 |
+
{ name = "pypdf2", specifier = ">=3.0.1" },
|
28 |
+
{ name = "python-multipart", specifier = ">=0.0.18" },
|
29 |
+
{ name = "uvicorn", specifier = ">=0.34.0" },
|
30 |
+
{ name = "websockets", specifier = ">=14.2" },
|
31 |
+
]
|
32 |
+
|
33 |
+
[[package]]
|
34 |
+
name = "aiofiles"
|
35 |
+
version = "23.2.1"
|
36 |
+
source = { registry = "https://pypi.org/simple" }
|
37 |
+
sdist = { url = "https://files.pythonhosted.org/packages/af/41/cfed10bc64d774f497a86e5ede9248e1d062db675504b41c320954d99641/aiofiles-23.2.1.tar.gz", hash = "sha256:84ec2218d8419404abcb9f0c02df3f34c6e0a68ed41072acfb1cef5cbc29051a", size = 32072 }
|
38 |
+
wheels = [
|
39 |
+
{ url = "https://files.pythonhosted.org/packages/c5/19/5af6804c4cc0fed83f47bff6e413a98a36618e7d40185cd36e69737f3b0e/aiofiles-23.2.1-py3-none-any.whl", hash = "sha256:19297512c647d4b27a2cf7c34caa7e405c0d60b5560618a29a9fe027b18b0107", size = 15727 },
|
40 |
+
]
|
41 |
+
|
42 |
+
[[package]]
|
43 |
+
name = "annotated-types"
|
44 |
+
version = "0.7.0"
|
45 |
+
source = { registry = "https://pypi.org/simple" }
|
46 |
+
sdist = { url = "https://files.pythonhosted.org/packages/ee/67/531ea369ba64dcff5ec9c3402f9f51bf748cec26dde048a2f973a4eea7f5/annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89", size = 16081 }
|
47 |
+
wheels = [
|
48 |
+
{ url = "https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53", size = 13643 },
|
49 |
+
]
|
50 |
+
|
51 |
+
[[package]]
|
52 |
+
name = "anyio"
|
53 |
+
version = "4.8.0"
|
54 |
+
source = { registry = "https://pypi.org/simple" }
|
55 |
+
dependencies = [
|
56 |
+
{ name = "idna" },
|
57 |
+
{ name = "sniffio" },
|
58 |
+
]
|
59 |
+
sdist = { url = "https://files.pythonhosted.org/packages/a3/73/199a98fc2dae33535d6b8e8e6ec01f8c1d76c9adb096c6b7d64823038cde/anyio-4.8.0.tar.gz", hash = "sha256:1d9fe889df5212298c0c0723fa20479d1b94883a2df44bd3897aa91083316f7a", size = 181126 }
|
60 |
+
wheels = [
|
61 |
+
{ url = "https://files.pythonhosted.org/packages/46/eb/e7f063ad1fec6b3178a3cd82d1a3c4de82cccf283fc42746168188e1cdd5/anyio-4.8.0-py3-none-any.whl", hash = "sha256:b5011f270ab5eb0abf13385f851315585cc37ef330dd88e27ec3d34d651fd47a", size = 96041 },
|
62 |
+
]
|
63 |
+
|
64 |
+
[[package]]
|
65 |
+
name = "asyncer"
|
66 |
+
version = "0.0.7"
|
67 |
+
source = { registry = "https://pypi.org/simple" }
|
68 |
+
dependencies = [
|
69 |
+
{ name = "anyio" },
|
70 |
+
]
|
71 |
+
sdist = { url = "https://files.pythonhosted.org/packages/39/29/245ba9fa5769a1e3226c1157aedb372fe9dab28c4e1dcf6911d84d3a5e04/asyncer-0.0.7.tar.gz", hash = "sha256:d5e563fb0f56eb87b97257984703658a4f5bbdb52ff851b3e8ed864cc200b1d2", size = 14437 }
|
72 |
+
wheels = [
|
73 |
+
{ url = "https://files.pythonhosted.org/packages/3e/4b/40a1dc52fc26695b1e80a9e67dfb0fe7e6ddc57bbc5b61348e40c0045abb/asyncer-0.0.7-py3-none-any.whl", hash = "sha256:f0d579d4f67c4ead52ede3a45c854f462cae569058a8a6a68a4ebccac1c335d8", size = 8476 },
|
74 |
+
]
|
75 |
+
|
76 |
+
[[package]]
|
77 |
+
name = "bidict"
|
78 |
+
version = "0.23.1"
|
79 |
+
source = { registry = "https://pypi.org/simple" }
|
80 |
+
sdist = { url = "https://files.pythonhosted.org/packages/9a/6e/026678aa5a830e07cd9498a05d3e7e650a4f56a42f267a53d22bcda1bdc9/bidict-0.23.1.tar.gz", hash = "sha256:03069d763bc387bbd20e7d49914e75fc4132a41937fa3405417e1a5a2d006d71", size = 29093 }
|
81 |
+
wheels = [
|
82 |
+
{ url = "https://files.pythonhosted.org/packages/99/37/e8730c3587a65eb5645d4aba2d27aae48e8003614d6aaf15dda67f702f1f/bidict-0.23.1-py3-none-any.whl", hash = "sha256:5dae8d4d79b552a71cbabc7deb25dfe8ce710b17ff41711e13010ead2abfc3e5", size = 32764 },
|
83 |
+
]
|
84 |
+
|
85 |
+
[[package]]
|
86 |
+
name = "certifi"
|
87 |
+
version = "2024.12.14"
|
88 |
+
source = { registry = "https://pypi.org/simple" }
|
89 |
+
sdist = { url = "https://files.pythonhosted.org/packages/0f/bd/1d41ee578ce09523c81a15426705dd20969f5abf006d1afe8aeff0dd776a/certifi-2024.12.14.tar.gz", hash = "sha256:b650d30f370c2b724812bee08008be0c4163b163ddaec3f2546c1caf65f191db", size = 166010 }
|
90 |
+
wheels = [
|
91 |
+
{ url = "https://files.pythonhosted.org/packages/a5/32/8f6669fc4798494966bf446c8c4a162e0b5d893dff088afddf76414f70e1/certifi-2024.12.14-py3-none-any.whl", hash = "sha256:1275f7a45be9464efc1173084eaa30f866fe2e47d389406136d332ed4967ec56", size = 164927 },
|
92 |
+
]
|
93 |
+
|
94 |
+
[[package]]
|
95 |
+
name = "chainlit"
|
96 |
+
version = "2.0.5"
|
97 |
+
source = { registry = "https://pypi.org/simple" }
|
98 |
+
dependencies = [
|
99 |
+
{ name = "aiofiles" },
|
100 |
+
{ name = "asyncer" },
|
101 |
+
{ name = "click" },
|
102 |
+
{ name = "dataclasses-json" },
|
103 |
+
{ name = "fastapi" },
|
104 |
+
{ name = "filetype" },
|
105 |
+
{ name = "httpx" },
|
106 |
+
{ name = "lazify" },
|
107 |
+
{ name = "literalai" },
|
108 |
+
{ name = "nest-asyncio" },
|
109 |
+
{ name = "packaging" },
|
110 |
+
{ name = "pydantic" },
|
111 |
+
{ name = "pyjwt" },
|
112 |
+
{ name = "python-dotenv" },
|
113 |
+
{ name = "python-multipart" },
|
114 |
+
{ name = "python-socketio" },
|
115 |
+
{ name = "starlette" },
|
116 |
+
{ name = "syncer" },
|
117 |
+
{ name = "tomli" },
|
118 |
+
{ name = "uptrace" },
|
119 |
+
{ name = "uvicorn" },
|
120 |
+
{ name = "watchfiles" },
|
121 |
+
]
|
122 |
+
sdist = { url = "https://files.pythonhosted.org/packages/1e/d8/7173caf3ca0d7480b3614e3126da9c592692d353764326fc0e1702b9eddd/chainlit-2.0.5.tar.gz", hash = "sha256:8af7746999d6641c69c33b67e5325e2d018432dd0b3306926d7435b862b0bfe2", size = 4646512 }
|
123 |
+
wheels = [
|
124 |
+
{ url = "https://files.pythonhosted.org/packages/dc/01/8f02145330355e2802b95f835afb4cf11ea503b779cd6136892d4940abc5/chainlit-2.0.5-py3-none-any.whl", hash = "sha256:30cd2c39a9393de047b4e64b3dcf84ca4f691cb61445d59ae9a29f8e1f1af006", size = 4709971 },
|
125 |
+
]
|
126 |
+
|
127 |
+
[[package]]
|
128 |
+
name = "charset-normalizer"
|
129 |
+
version = "3.4.1"
|
130 |
+
source = { registry = "https://pypi.org/simple" }
|
131 |
+
sdist = { url = "https://files.pythonhosted.org/packages/16/b0/572805e227f01586461c80e0fd25d65a2115599cc9dad142fee4b747c357/charset_normalizer-3.4.1.tar.gz", hash = "sha256:44251f18cd68a75b56585dd00dae26183e102cd5e0f9f1466e6df5da2ed64ea3", size = 123188 }
|
132 |
+
wheels = [
|
133 |
+
{ url = "https://files.pythonhosted.org/packages/38/94/ce8e6f63d18049672c76d07d119304e1e2d7c6098f0841b51c666e9f44a0/charset_normalizer-3.4.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:aabfa34badd18f1da5ec1bc2715cadc8dca465868a4e73a0173466b688f29dda", size = 195698 },
|
134 |
+
{ url = "https://files.pythonhosted.org/packages/24/2e/dfdd9770664aae179a96561cc6952ff08f9a8cd09a908f259a9dfa063568/charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:22e14b5d70560b8dd51ec22863f370d1e595ac3d024cb8ad7d308b4cd95f8313", size = 140162 },
|
135 |
+
{ url = "https://files.pythonhosted.org/packages/24/4e/f646b9093cff8fc86f2d60af2de4dc17c759de9d554f130b140ea4738ca6/charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8436c508b408b82d87dc5f62496973a1805cd46727c34440b0d29d8a2f50a6c9", size = 150263 },
|
136 |
+
{ url = "https://files.pythonhosted.org/packages/5e/67/2937f8d548c3ef6e2f9aab0f6e21001056f692d43282b165e7c56023e6dd/charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2d074908e1aecee37a7635990b2c6d504cd4766c7bc9fc86d63f9c09af3fa11b", size = 142966 },
|
137 |
+
{ url = "https://files.pythonhosted.org/packages/52/ed/b7f4f07de100bdb95c1756d3a4d17b90c1a3c53715c1a476f8738058e0fa/charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:955f8851919303c92343d2f66165294848d57e9bba6cf6e3625485a70a038d11", size = 144992 },
|
138 |
+
{ url = "https://files.pythonhosted.org/packages/96/2c/d49710a6dbcd3776265f4c923bb73ebe83933dfbaa841c5da850fe0fd20b/charset_normalizer-3.4.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:44ecbf16649486d4aebafeaa7ec4c9fed8b88101f4dd612dcaf65d5e815f837f", size = 147162 },
|
139 |
+
{ url = "https://files.pythonhosted.org/packages/b4/41/35ff1f9a6bd380303dea55e44c4933b4cc3c4850988927d4082ada230273/charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:0924e81d3d5e70f8126529951dac65c1010cdf117bb75eb02dd12339b57749dd", size = 140972 },
|
140 |
+
{ url = "https://files.pythonhosted.org/packages/fb/43/c6a0b685fe6910d08ba971f62cd9c3e862a85770395ba5d9cad4fede33ab/charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:2967f74ad52c3b98de4c3b32e1a44e32975e008a9cd2a8cc8966d6a5218c5cb2", size = 149095 },
|
141 |
+
{ url = "https://files.pythonhosted.org/packages/4c/ff/a9a504662452e2d2878512115638966e75633519ec11f25fca3d2049a94a/charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:c75cb2a3e389853835e84a2d8fb2b81a10645b503eca9bcb98df6b5a43eb8886", size = 152668 },
|
142 |
+
{ url = "https://files.pythonhosted.org/packages/6c/71/189996b6d9a4b932564701628af5cee6716733e9165af1d5e1b285c530ed/charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:09b26ae6b1abf0d27570633b2b078a2a20419c99d66fb2823173d73f188ce601", size = 150073 },
|
143 |
+
{ url = "https://files.pythonhosted.org/packages/e4/93/946a86ce20790e11312c87c75ba68d5f6ad2208cfb52b2d6a2c32840d922/charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:fa88b843d6e211393a37219e6a1c1df99d35e8fd90446f1118f4216e307e48cd", size = 145732 },
|
144 |
+
{ url = "https://files.pythonhosted.org/packages/cd/e5/131d2fb1b0dddafc37be4f3a2fa79aa4c037368be9423061dccadfd90091/charset_normalizer-3.4.1-cp313-cp313-win32.whl", hash = "sha256:eb8178fe3dba6450a3e024e95ac49ed3400e506fd4e9e5c32d30adda88cbd407", size = 95391 },
|
145 |
+
{ url = "https://files.pythonhosted.org/packages/27/f2/4f9a69cc7712b9b5ad8fdb87039fd89abba997ad5cbe690d1835d40405b0/charset_normalizer-3.4.1-cp313-cp313-win_amd64.whl", hash = "sha256:b1ac5992a838106edb89654e0aebfc24f5848ae2547d22c2c3f66454daa11971", size = 102702 },
|
146 |
+
{ url = "https://files.pythonhosted.org/packages/0e/f6/65ecc6878a89bb1c23a086ea335ad4bf21a588990c3f535a227b9eea9108/charset_normalizer-3.4.1-py3-none-any.whl", hash = "sha256:d98b1668f06378c6dbefec3b92299716b931cd4e6061f3c875a71ced1780ab85", size = 49767 },
|
147 |
+
]
|
148 |
+
|
149 |
+
[[package]]
|
150 |
+
name = "chevron"
|
151 |
+
version = "0.14.0"
|
152 |
+
source = { registry = "https://pypi.org/simple" }
|
153 |
+
sdist = { url = "https://files.pythonhosted.org/packages/15/1f/ca74b65b19798895d63a6e92874162f44233467c9e7c1ed8afd19016ebe9/chevron-0.14.0.tar.gz", hash = "sha256:87613aafdf6d77b6a90ff073165a61ae5086e21ad49057aa0e53681601800ebf", size = 11440 }
|
154 |
+
wheels = [
|
155 |
+
{ url = "https://files.pythonhosted.org/packages/52/93/342cc62a70ab727e093ed98e02a725d85b746345f05d2b5e5034649f4ec8/chevron-0.14.0-py3-none-any.whl", hash = "sha256:fbf996a709f8da2e745ef763f482ce2d311aa817d287593a5b990d6d6e4f0443", size = 11595 },
|
156 |
+
]
|
157 |
+
|
158 |
+
[[package]]
|
159 |
+
name = "click"
|
160 |
+
version = "8.1.8"
|
161 |
+
source = { registry = "https://pypi.org/simple" }
|
162 |
+
dependencies = [
|
163 |
+
{ name = "colorama", marker = "sys_platform == 'win32'" },
|
164 |
+
]
|
165 |
+
sdist = { url = "https://files.pythonhosted.org/packages/b9/2e/0090cbf739cee7d23781ad4b89a9894a41538e4fcf4c31dcdd705b78eb8b/click-8.1.8.tar.gz", hash = "sha256:ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a", size = 226593 }
|
166 |
+
wheels = [
|
167 |
+
{ url = "https://files.pythonhosted.org/packages/7e/d4/7ebdbd03970677812aac39c869717059dbb71a4cfc033ca6e5221787892c/click-8.1.8-py3-none-any.whl", hash = "sha256:63c132bbbed01578a06712a2d1f497bb62d9c1c0d329b7903a866228027263b2", size = 98188 },
|
168 |
+
]
|
169 |
+
|
170 |
+
[[package]]
|
171 |
+
name = "colorama"
|
172 |
+
version = "0.4.6"
|
173 |
+
source = { registry = "https://pypi.org/simple" }
|
174 |
+
sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697 }
|
175 |
+
wheels = [
|
176 |
+
{ url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335 },
|
177 |
+
]
|
178 |
+
|
179 |
+
[[package]]
|
180 |
+
name = "dataclasses-json"
|
181 |
+
version = "0.6.7"
|
182 |
+
source = { registry = "https://pypi.org/simple" }
|
183 |
+
dependencies = [
|
184 |
+
{ name = "marshmallow" },
|
185 |
+
{ name = "typing-inspect" },
|
186 |
+
]
|
187 |
+
sdist = { url = "https://files.pythonhosted.org/packages/64/a4/f71d9cf3a5ac257c993b5ca3f93df5f7fb395c725e7f1e6479d2514173c3/dataclasses_json-0.6.7.tar.gz", hash = "sha256:b6b3e528266ea45b9535223bc53ca645f5208833c29229e847b3f26a1cc55fc0", size = 32227 }
|
188 |
+
wheels = [
|
189 |
+
{ url = "https://files.pythonhosted.org/packages/c3/be/d0d44e092656fe7a06b55e6103cbce807cdbdee17884a5367c68c9860853/dataclasses_json-0.6.7-py3-none-any.whl", hash = "sha256:0dbf33f26c8d5305befd61b39d2b3414e8a407bedc2834dea9b8d642666fb40a", size = 28686 },
|
190 |
+
]
|
191 |
+
|
192 |
+
[[package]]
|
193 |
+
name = "deprecated"
|
194 |
+
version = "1.2.15"
|
195 |
+
source = { registry = "https://pypi.org/simple" }
|
196 |
+
dependencies = [
|
197 |
+
{ name = "wrapt" },
|
198 |
+
]
|
199 |
+
sdist = { url = "https://files.pythonhosted.org/packages/2e/a3/53e7d78a6850ffdd394d7048a31a6f14e44900adedf190f9a165f6b69439/deprecated-1.2.15.tar.gz", hash = "sha256:683e561a90de76239796e6b6feac66b99030d2dd3fcf61ef996330f14bbb9b0d", size = 2977612 }
|
200 |
+
wheels = [
|
201 |
+
{ url = "https://files.pythonhosted.org/packages/1d/8f/c7f227eb42cfeaddce3eb0c96c60cbca37797fa7b34f8e1aeadf6c5c0983/Deprecated-1.2.15-py2.py3-none-any.whl", hash = "sha256:353bc4a8ac4bfc96800ddab349d89c25dec1079f65fd53acdcc1e0b975b21320", size = 9941 },
|
202 |
+
]
|
203 |
+
|
204 |
+
[[package]]
|
205 |
+
name = "distro"
|
206 |
+
version = "1.9.0"
|
207 |
+
source = { registry = "https://pypi.org/simple" }
|
208 |
+
sdist = { url = "https://files.pythonhosted.org/packages/fc/f8/98eea607f65de6527f8a2e8885fc8015d3e6f5775df186e443e0964a11c3/distro-1.9.0.tar.gz", hash = "sha256:2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed", size = 60722 }
|
209 |
+
wheels = [
|
210 |
+
{ url = "https://files.pythonhosted.org/packages/12/b3/231ffd4ab1fc9d679809f356cebee130ac7daa00d6d6f3206dd4fd137e9e/distro-1.9.0-py3-none-any.whl", hash = "sha256:7bffd925d65168f85027d8da9af6bddab658135b840670a223589bc0c8ef02b2", size = 20277 },
|
211 |
+
]
|
212 |
+
|
213 |
+
[[package]]
|
214 |
+
name = "fastapi"
|
215 |
+
version = "0.115.6"
|
216 |
+
source = { registry = "https://pypi.org/simple" }
|
217 |
+
dependencies = [
|
218 |
+
{ name = "pydantic" },
|
219 |
+
{ name = "starlette" },
|
220 |
+
{ name = "typing-extensions" },
|
221 |
+
]
|
222 |
+
sdist = { url = "https://files.pythonhosted.org/packages/93/72/d83b98cd106541e8f5e5bfab8ef2974ab45a62e8a6c5b5e6940f26d2ed4b/fastapi-0.115.6.tar.gz", hash = "sha256:9ec46f7addc14ea472958a96aae5b5de65f39721a46aaf5705c480d9a8b76654", size = 301336 }
|
223 |
+
wheels = [
|
224 |
+
{ url = "https://files.pythonhosted.org/packages/52/b3/7e4df40e585df024fac2f80d1a2d579c854ac37109675db2b0cc22c0bb9e/fastapi-0.115.6-py3-none-any.whl", hash = "sha256:e9240b29e36fa8f4bb7290316988e90c381e5092e0cbe84e7818cc3713bcf305", size = 94843 },
|
225 |
+
]
|
226 |
+
|
227 |
+
[[package]]
|
228 |
+
name = "filetype"
|
229 |
+
version = "1.2.0"
|
230 |
+
source = { registry = "https://pypi.org/simple" }
|
231 |
+
sdist = { url = "https://files.pythonhosted.org/packages/bb/29/745f7d30d47fe0f251d3ad3dc2978a23141917661998763bebb6da007eb1/filetype-1.2.0.tar.gz", hash = "sha256:66b56cd6474bf41d8c54660347d37afcc3f7d1970648de365c102ef77548aadb", size = 998020 }
|
232 |
+
wheels = [
|
233 |
+
{ url = "https://files.pythonhosted.org/packages/18/79/1b8fa1bb3568781e84c9200f951c735f3f157429f44be0495da55894d620/filetype-1.2.0-py2.py3-none-any.whl", hash = "sha256:7ce71b6880181241cf7ac8697a2f1eb6a8bd9b429f7ad6d27b8db9ba5f1c2d25", size = 19970 },
|
234 |
+
]
|
235 |
+
|
236 |
+
[[package]]
|
237 |
+
name = "googleapis-common-protos"
|
238 |
+
version = "1.66.0"
|
239 |
+
source = { registry = "https://pypi.org/simple" }
|
240 |
+
dependencies = [
|
241 |
+
{ name = "protobuf" },
|
242 |
+
]
|
243 |
+
sdist = { url = "https://files.pythonhosted.org/packages/ff/a7/8e9cccdb1c49870de6faea2a2764fa23f627dd290633103540209f03524c/googleapis_common_protos-1.66.0.tar.gz", hash = "sha256:c3e7b33d15fdca5374cc0a7346dd92ffa847425cc4ea941d970f13680052ec8c", size = 114376 }
|
244 |
+
wheels = [
|
245 |
+
{ url = "https://files.pythonhosted.org/packages/a0/0f/c0713fb2b3d28af4b2fded3291df1c4d4f79a00d15c2374a9e010870016c/googleapis_common_protos-1.66.0-py2.py3-none-any.whl", hash = "sha256:d7abcd75fabb2e0ec9f74466401f6c119a0b498e27370e9be4c94cb7e382b8ed", size = 221682 },
|
246 |
+
]
|
247 |
+
|
248 |
+
[[package]]
|
249 |
+
name = "grpcio"
|
250 |
+
version = "1.69.0"
|
251 |
+
source = { registry = "https://pypi.org/simple" }
|
252 |
+
sdist = { url = "https://files.pythonhosted.org/packages/e4/87/06a145284cbe86c91ca517fe6b57be5efbb733c0d6374b407f0992054d18/grpcio-1.69.0.tar.gz", hash = "sha256:936fa44241b5379c5afc344e1260d467bee495747eaf478de825bab2791da6f5", size = 12738244 }
|
253 |
+
wheels = [
|
254 |
+
{ url = "https://files.pythonhosted.org/packages/54/47/3ff4501365f56b7cc16617695dbd4fd838c5e362bc7fa9fee09d592f7d78/grpcio-1.69.0-cp313-cp313-linux_armv7l.whl", hash = "sha256:a78a06911d4081a24a1761d16215a08e9b6d4d29cdbb7e427e6c7e17b06bcc5d", size = 5162928 },
|
255 |
+
{ url = "https://files.pythonhosted.org/packages/c0/63/437174c5fa951052c9ecc5f373f62af6f3baf25f3f5ef35cbf561806b371/grpcio-1.69.0-cp313-cp313-macosx_10_14_universal2.whl", hash = "sha256:dc5a351927d605b2721cbb46158e431dd49ce66ffbacb03e709dc07a491dde35", size = 11103027 },
|
256 |
+
{ url = "https://files.pythonhosted.org/packages/53/df/53566a6fdc26b6d1f0585896e1cc4825961039bca5a6a314ff29d79b5d5b/grpcio-1.69.0-cp313-cp313-manylinux_2_17_aarch64.whl", hash = "sha256:3629d8a8185f5139869a6a17865d03113a260e311e78fbe313f1a71603617589", size = 5659277 },
|
257 |
+
{ url = "https://files.pythonhosted.org/packages/e6/4c/b8a0c4f71498b6f9be5ca6d290d576cf2af9d95fd9827c47364f023969ad/grpcio-1.69.0-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c9a281878feeb9ae26db0622a19add03922a028d4db684658f16d546601a4870", size = 6305255 },
|
258 |
+
{ url = "https://files.pythonhosted.org/packages/ef/55/d9aa05eb3dfcf6aa946aaf986740ec07fc5189f20e2cbeb8c5d278ffd00f/grpcio-1.69.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8cc614e895177ab7e4b70f154d1a7c97e152577ea101d76026d132b7aaba003b", size = 5920240 },
|
259 |
+
{ url = "https://files.pythonhosted.org/packages/ea/eb/774b27c51e3e386dfe6c491a710f6f87ffdb20d88ec6c3581e047d9354a2/grpcio-1.69.0-cp313-cp313-musllinux_1_1_i686.whl", hash = "sha256:1ee76cd7e2e49cf9264f6812d8c9ac1b85dda0eaea063af07292400f9191750e", size = 6652974 },
|
260 |
+
{ url = "https://files.pythonhosted.org/packages/59/98/96de14e6e7d89123813d58c246d9b0f1fbd24f9277f5295264e60861d9d6/grpcio-1.69.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:0470fa911c503af59ec8bc4c82b371ee4303ececbbdc055f55ce48e38b20fd67", size = 6215757 },
|
261 |
+
{ url = "https://files.pythonhosted.org/packages/7d/5b/ce922e0785910b10756fabc51fd294260384a44bea41651dadc4e47ddc82/grpcio-1.69.0-cp313-cp313-win32.whl", hash = "sha256:b650f34aceac8b2d08a4c8d7dc3e8a593f4d9e26d86751ebf74ebf5107d927de", size = 3642488 },
|
262 |
+
{ url = "https://files.pythonhosted.org/packages/5d/04/11329e6ca1ceeb276df2d9c316b5e170835a687a4d0f778dba8294657e36/grpcio-1.69.0-cp313-cp313-win_amd64.whl", hash = "sha256:028337786f11fecb5d7b7fa660475a06aabf7e5e52b5ac2df47414878c0ce7ea", size = 4399968 },
|
263 |
+
]
|
264 |
+
|
265 |
+
[[package]]
|
266 |
+
name = "h11"
|
267 |
+
version = "0.14.0"
|
268 |
+
source = { registry = "https://pypi.org/simple" }
|
269 |
+
sdist = { url = "https://files.pythonhosted.org/packages/f5/38/3af3d3633a34a3316095b39c8e8fb4853a28a536e55d347bd8d8e9a14b03/h11-0.14.0.tar.gz", hash = "sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d", size = 100418 }
|
270 |
+
wheels = [
|
271 |
+
{ url = "https://files.pythonhosted.org/packages/95/04/ff642e65ad6b90db43e668d70ffb6736436c7ce41fcc549f4e9472234127/h11-0.14.0-py3-none-any.whl", hash = "sha256:e3fe4ac4b851c468cc8363d500db52c2ead036020723024a109d37346efaa761", size = 58259 },
|
272 |
+
]
|
273 |
+
|
274 |
+
[[package]]
|
275 |
+
name = "httpcore"
|
276 |
+
version = "1.0.7"
|
277 |
+
source = { registry = "https://pypi.org/simple" }
|
278 |
+
dependencies = [
|
279 |
+
{ name = "certifi" },
|
280 |
+
{ name = "h11" },
|
281 |
+
]
|
282 |
+
sdist = { url = "https://files.pythonhosted.org/packages/6a/41/d7d0a89eb493922c37d343b607bc1b5da7f5be7e383740b4753ad8943e90/httpcore-1.0.7.tar.gz", hash = "sha256:8551cb62a169ec7162ac7be8d4817d561f60e08eaa485234898414bb5a8a0b4c", size = 85196 }
|
283 |
+
wheels = [
|
284 |
+
{ url = "https://files.pythonhosted.org/packages/87/f5/72347bc88306acb359581ac4d52f23c0ef445b57157adedb9aee0cd689d2/httpcore-1.0.7-py3-none-any.whl", hash = "sha256:a3fff8f43dc260d5bd363d9f9cf1830fa3a458b332856f34282de498ed420edd", size = 78551 },
|
285 |
+
]
|
286 |
+
|
287 |
+
[[package]]
|
288 |
+
name = "httpx"
|
289 |
+
version = "0.28.1"
|
290 |
+
source = { registry = "https://pypi.org/simple" }
|
291 |
+
dependencies = [
|
292 |
+
{ name = "anyio" },
|
293 |
+
{ name = "certifi" },
|
294 |
+
{ name = "httpcore" },
|
295 |
+
{ name = "idna" },
|
296 |
+
]
|
297 |
+
sdist = { url = "https://files.pythonhosted.org/packages/b1/df/48c586a5fe32a0f01324ee087459e112ebb7224f646c0b5023f5e79e9956/httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc", size = 141406 }
|
298 |
+
wheels = [
|
299 |
+
{ url = "https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad", size = 73517 },
|
300 |
+
]
|
301 |
+
|
302 |
+
[[package]]
|
303 |
+
name = "idna"
|
304 |
+
version = "3.10"
|
305 |
+
source = { registry = "https://pypi.org/simple" }
|
306 |
+
sdist = { url = "https://files.pythonhosted.org/packages/f1/70/7703c29685631f5a7590aa73f1f1d3fa9a380e654b86af429e0934a32f7d/idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9", size = 190490 }
|
307 |
+
wheels = [
|
308 |
+
{ url = "https://files.pythonhosted.org/packages/76/c6/c88e154df9c4e1a2a66ccf0005a88dfb2650c1dffb6f5ce603dfbd452ce3/idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3", size = 70442 },
|
309 |
+
]
|
310 |
+
|
311 |
+
[[package]]
|
312 |
+
name = "importlib-metadata"
|
313 |
+
version = "8.5.0"
|
314 |
+
source = { registry = "https://pypi.org/simple" }
|
315 |
+
dependencies = [
|
316 |
+
{ name = "zipp" },
|
317 |
+
]
|
318 |
+
sdist = { url = "https://files.pythonhosted.org/packages/cd/12/33e59336dca5be0c398a7482335911a33aa0e20776128f038019f1a95f1b/importlib_metadata-8.5.0.tar.gz", hash = "sha256:71522656f0abace1d072b9e5481a48f07c138e00f079c38c8f883823f9c26bd7", size = 55304 }
|
319 |
+
wheels = [
|
320 |
+
{ url = "https://files.pythonhosted.org/packages/a0/d9/a1e041c5e7caa9a05c925f4bdbdfb7f006d1f74996af53467bc394c97be7/importlib_metadata-8.5.0-py3-none-any.whl", hash = "sha256:45e54197d28b7a7f1559e60b95e7c567032b602131fbd588f1497f47880aa68b", size = 26514 },
|
321 |
+
]
|
322 |
+
|
323 |
+
[[package]]
|
324 |
+
name = "jiter"
|
325 |
+
version = "0.8.2"
|
326 |
+
source = { registry = "https://pypi.org/simple" }
|
327 |
+
sdist = { url = "https://files.pythonhosted.org/packages/f8/70/90bc7bd3932e651486861df5c8ffea4ca7c77d28e8532ddefe2abc561a53/jiter-0.8.2.tar.gz", hash = "sha256:cd73d3e740666d0e639f678adb176fad25c1bcbdae88d8d7b857e1783bb4212d", size = 163007 }
|
328 |
+
wheels = [
|
329 |
+
{ url = "https://files.pythonhosted.org/packages/6c/b0/bfa1f6f2c956b948802ef5a021281978bf53b7a6ca54bb126fd88a5d014e/jiter-0.8.2-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:ca1f08b8e43dc3bd0594c992fb1fd2f7ce87f7bf0d44358198d6da8034afdf84", size = 301190 },
|
330 |
+
{ url = "https://files.pythonhosted.org/packages/a4/8f/396ddb4e292b5ea57e45ade5dc48229556b9044bad29a3b4b2dddeaedd52/jiter-0.8.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:5672a86d55416ccd214c778efccf3266b84f87b89063b582167d803246354be4", size = 309334 },
|
331 |
+
{ url = "https://files.pythonhosted.org/packages/7f/68/805978f2f446fa6362ba0cc2e4489b945695940656edd844e110a61c98f8/jiter-0.8.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:58dc9bc9767a1101f4e5e22db1b652161a225874d66f0e5cb8e2c7d1c438b587", size = 333918 },
|
332 |
+
{ url = "https://files.pythonhosted.org/packages/b3/99/0f71f7be667c33403fa9706e5b50583ae5106d96fab997fa7e2f38ee8347/jiter-0.8.2-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:37b2998606d6dadbb5ccda959a33d6a5e853252d921fec1792fc902351bb4e2c", size = 356057 },
|
333 |
+
{ url = "https://files.pythonhosted.org/packages/8d/50/a82796e421a22b699ee4d2ce527e5bcb29471a2351cbdc931819d941a167/jiter-0.8.2-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4ab9a87f3784eb0e098f84a32670cfe4a79cb6512fd8f42ae3d0709f06405d18", size = 379790 },
|
334 |
+
{ url = "https://files.pythonhosted.org/packages/3c/31/10fb012b00f6d83342ca9e2c9618869ab449f1aa78c8f1b2193a6b49647c/jiter-0.8.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:79aec8172b9e3c6d05fd4b219d5de1ac616bd8da934107325a6c0d0e866a21b6", size = 388285 },
|
335 |
+
{ url = "https://files.pythonhosted.org/packages/c8/81/f15ebf7de57be488aa22944bf4274962aca8092e4f7817f92ffa50d3ee46/jiter-0.8.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:711e408732d4e9a0208008e5892c2966b485c783cd2d9a681f3eb147cf36c7ef", size = 344764 },
|
336 |
+
{ url = "https://files.pythonhosted.org/packages/b3/e8/0cae550d72b48829ba653eb348cdc25f3f06f8a62363723702ec18e7be9c/jiter-0.8.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:653cf462db4e8c41995e33d865965e79641ef45369d8a11f54cd30888b7e6ff1", size = 376620 },
|
337 |
+
{ url = "https://files.pythonhosted.org/packages/b8/50/e5478ff9d82534a944c03b63bc217c5f37019d4a34d288db0f079b13c10b/jiter-0.8.2-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:9c63eaef32b7bebac8ebebf4dabebdbc6769a09c127294db6babee38e9f405b9", size = 510402 },
|
338 |
+
{ url = "https://files.pythonhosted.org/packages/8e/1e/3de48bbebbc8f7025bd454cedc8c62378c0e32dd483dece5f4a814a5cb55/jiter-0.8.2-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:eb21aaa9a200d0a80dacc7a81038d2e476ffe473ffdd9c91eb745d623561de05", size = 503018 },
|
339 |
+
{ url = "https://files.pythonhosted.org/packages/d5/cd/d5a5501d72a11fe3e5fd65c78c884e5164eefe80077680533919be22d3a3/jiter-0.8.2-cp313-cp313-win32.whl", hash = "sha256:789361ed945d8d42850f919342a8665d2dc79e7e44ca1c97cc786966a21f627a", size = 203190 },
|
340 |
+
{ url = "https://files.pythonhosted.org/packages/51/bf/e5ca301245ba951447e3ad677a02a64a8845b185de2603dabd83e1e4b9c6/jiter-0.8.2-cp313-cp313-win_amd64.whl", hash = "sha256:ab7f43235d71e03b941c1630f4b6e3055d46b6cb8728a17663eaac9d8e83a865", size = 203551 },
|
341 |
+
{ url = "https://files.pythonhosted.org/packages/2f/3c/71a491952c37b87d127790dd7a0b1ebea0514c6b6ad30085b16bbe00aee6/jiter-0.8.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:b426f72cd77da3fec300ed3bc990895e2dd6b49e3bfe6c438592a3ba660e41ca", size = 308347 },
|
342 |
+
{ url = "https://files.pythonhosted.org/packages/a0/4c/c02408042e6a7605ec063daed138e07b982fdb98467deaaf1c90950cf2c6/jiter-0.8.2-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b2dd880785088ff2ad21ffee205e58a8c1ddabc63612444ae41e5e4b321b39c0", size = 342875 },
|
343 |
+
{ url = "https://files.pythonhosted.org/packages/91/61/c80ef80ed8a0a21158e289ef70dac01e351d929a1c30cb0f49be60772547/jiter-0.8.2-cp313-cp313t-win_amd64.whl", hash = "sha256:3ac9f578c46f22405ff7f8b1f5848fb753cc4b8377fbec8470a7dc3997ca7566", size = 202374 },
|
344 |
+
]
|
345 |
+
|
346 |
+
[[package]]
|
347 |
+
name = "lazify"
|
348 |
+
version = "0.4.0"
|
349 |
+
source = { registry = "https://pypi.org/simple" }
|
350 |
+
sdist = { url = "https://files.pythonhosted.org/packages/24/2c/b55c4a27a56dd9a00bb2812c404b57f8b7aec0cdbff9fdc61acdd73359bc/Lazify-0.4.0.tar.gz", hash = "sha256:7102bfe63e56de2ab62b3bc661a7190c4056771a8624f04a8b785275c3dd1f9b", size = 2968 }
|
351 |
+
wheels = [
|
352 |
+
{ url = "https://files.pythonhosted.org/packages/03/a5/866b44697cee47d1cae429ed370281d937ad4439f71af82a6baaa139d26a/Lazify-0.4.0-py2.py3-none-any.whl", hash = "sha256:c2c17a7a33e9406897e3f66fde4cd3f84716218d580330e5af10cfe5a0cd195a", size = 3107 },
|
353 |
+
]
|
354 |
+
|
355 |
+
[[package]]
|
356 |
+
name = "literalai"
|
357 |
+
version = "0.1.103"
|
358 |
+
source = { registry = "https://pypi.org/simple" }
|
359 |
+
dependencies = [
|
360 |
+
{ name = "chevron" },
|
361 |
+
{ name = "httpx" },
|
362 |
+
{ name = "packaging" },
|
363 |
+
{ name = "pydantic" },
|
364 |
+
]
|
365 |
+
sdist = { url = "https://files.pythonhosted.org/packages/fc/fc/628b39e31b368aacbca51721ba7a66a4d140e9be916a0c7396664fdaed7a/literalai-0.1.103.tar.gz", hash = "sha256:060e86e63c0f53041a737b2183354ac092ee8cd9faec817dc95df639bb263a7d", size = 62540 }
|
366 |
+
|
367 |
+
[[package]]
|
368 |
+
name = "marshmallow"
|
369 |
+
version = "3.25.1"
|
370 |
+
source = { registry = "https://pypi.org/simple" }
|
371 |
+
dependencies = [
|
372 |
+
{ name = "packaging" },
|
373 |
+
]
|
374 |
+
sdist = { url = "https://files.pythonhosted.org/packages/b8/85/43b8e95251312e8d0d3389263e87e368a5a015db475e140d5dd8cb8dcb47/marshmallow-3.25.1.tar.gz", hash = "sha256:f4debda3bb11153d81ac34b0d582bf23053055ee11e791b54b4b35493468040a", size = 217295 }
|
375 |
+
wheels = [
|
376 |
+
{ url = "https://files.pythonhosted.org/packages/8e/25/5b300f0400078d9783fbe44d30fedd849a130fc3aff01f18278c12342b6f/marshmallow-3.25.1-py3-none-any.whl", hash = "sha256:ec5d00d873ce473b7f2ffcb7104286a376c354cab0c2fa12f5573dab03e87210", size = 49624 },
|
377 |
+
]
|
378 |
+
|
379 |
+
[[package]]
|
380 |
+
name = "mypy-extensions"
|
381 |
+
version = "1.0.0"
|
382 |
+
source = { registry = "https://pypi.org/simple" }
|
383 |
+
sdist = { url = "https://files.pythonhosted.org/packages/98/a4/1ab47638b92648243faf97a5aeb6ea83059cc3624972ab6b8d2316078d3f/mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782", size = 4433 }
|
384 |
+
wheels = [
|
385 |
+
{ url = "https://files.pythonhosted.org/packages/2a/e2/5d3f6ada4297caebe1a2add3b126fe800c96f56dbe5d1988a2cbe0b267aa/mypy_extensions-1.0.0-py3-none-any.whl", hash = "sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d", size = 4695 },
|
386 |
+
]
|
387 |
+
|
388 |
+
[[package]]
|
389 |
+
name = "nest-asyncio"
|
390 |
+
version = "1.6.0"
|
391 |
+
source = { registry = "https://pypi.org/simple" }
|
392 |
+
sdist = { url = "https://files.pythonhosted.org/packages/83/f8/51569ac65d696c8ecbee95938f89d4abf00f47d58d48f6fbabfe8f0baefe/nest_asyncio-1.6.0.tar.gz", hash = "sha256:6f172d5449aca15afd6c646851f4e31e02c598d553a667e38cafa997cfec55fe", size = 7418 }
|
393 |
+
wheels = [
|
394 |
+
{ url = "https://files.pythonhosted.org/packages/a0/c4/c2971a3ba4c6103a3d10c4b0f24f461ddc027f0f09763220cf35ca1401b3/nest_asyncio-1.6.0-py3-none-any.whl", hash = "sha256:87af6efd6b5e897c81050477ef65c62e2b2f35d51703cae01aff2905b1852e1c", size = 5195 },
|
395 |
+
]
|
396 |
+
|
397 |
+
[[package]]
|
398 |
+
name = "numpy"
|
399 |
+
version = "2.2.2"
|
400 |
+
source = { registry = "https://pypi.org/simple" }
|
401 |
+
sdist = { url = "https://files.pythonhosted.org/packages/ec/d0/c12ddfd3a02274be06ffc71f3efc6d0e457b0409c4481596881e748cb264/numpy-2.2.2.tar.gz", hash = "sha256:ed6906f61834d687738d25988ae117683705636936cc605be0bb208b23df4d8f", size = 20233295 }
|
402 |
+
wheels = [
|
403 |
+
{ url = "https://files.pythonhosted.org/packages/e1/fe/df5624001f4f5c3e0b78e9017bfab7fdc18a8d3b3d3161da3d64924dd659/numpy-2.2.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:b208cfd4f5fe34e1535c08983a1a6803fdbc7a1e86cf13dd0c61de0b51a0aadc", size = 20899188 },
|
404 |
+
{ url = "https://files.pythonhosted.org/packages/a9/80/d349c3b5ed66bd3cb0214be60c27e32b90a506946857b866838adbe84040/numpy-2.2.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:d0bbe7dd86dca64854f4b6ce2ea5c60b51e36dfd597300057cf473d3615f2369", size = 14113972 },
|
405 |
+
{ url = "https://files.pythonhosted.org/packages/9d/50/949ec9cbb28c4b751edfa64503f0913cbfa8d795b4a251e7980f13a8a655/numpy-2.2.2-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:22ea3bb552ade325530e72a0c557cdf2dea8914d3a5e1fecf58fa5dbcc6f43cd", size = 5114294 },
|
406 |
+
{ url = "https://files.pythonhosted.org/packages/8d/f3/399c15629d5a0c68ef2aa7621d430b2be22034f01dd7f3c65a9c9666c445/numpy-2.2.2-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:128c41c085cab8a85dc29e66ed88c05613dccf6bc28b3866cd16050a2f5448be", size = 6648426 },
|
407 |
+
{ url = "https://files.pythonhosted.org/packages/2c/03/c72474c13772e30e1bc2e558cdffd9123c7872b731263d5648b5c49dd459/numpy-2.2.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:250c16b277e3b809ac20d1f590716597481061b514223c7badb7a0f9993c7f84", size = 14045990 },
|
408 |
+
{ url = "https://files.pythonhosted.org/packages/83/9c/96a9ab62274ffafb023f8ee08c88d3d31ee74ca58869f859db6845494fa6/numpy-2.2.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e0c8854b09bc4de7b041148d8550d3bd712b5c21ff6a8ed308085f190235d7ff", size = 16096614 },
|
409 |
+
{ url = "https://files.pythonhosted.org/packages/d5/34/cd0a735534c29bec7093544b3a509febc9b0df77718a9b41ffb0809c9f46/numpy-2.2.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:b6fb9c32a91ec32a689ec6410def76443e3c750e7cfc3fb2206b985ffb2b85f0", size = 15242123 },
|
410 |
+
{ url = "https://files.pythonhosted.org/packages/5e/6d/541717a554a8f56fa75e91886d9b79ade2e595918690eb5d0d3dbd3accb9/numpy-2.2.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:57b4012e04cc12b78590a334907e01b3a85efb2107df2b8733ff1ed05fce71de", size = 17859160 },
|
411 |
+
{ url = "https://files.pythonhosted.org/packages/b9/a5/fbf1f2b54adab31510728edd06a05c1b30839f37cf8c9747cb85831aaf1b/numpy-2.2.2-cp313-cp313-win32.whl", hash = "sha256:4dbd80e453bd34bd003b16bd802fac70ad76bd463f81f0c518d1245b1c55e3d9", size = 6273337 },
|
412 |
+
{ url = "https://files.pythonhosted.org/packages/56/e5/01106b9291ef1d680f82bc47d0c5b5e26dfed15b0754928e8f856c82c881/numpy-2.2.2-cp313-cp313-win_amd64.whl", hash = "sha256:5a8c863ceacae696aff37d1fd636121f1a512117652e5dfb86031c8d84836369", size = 12609010 },
|
413 |
+
{ url = "https://files.pythonhosted.org/packages/9f/30/f23d9876de0f08dceb707c4dcf7f8dd7588266745029debb12a3cdd40be6/numpy-2.2.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:b3482cb7b3325faa5f6bc179649406058253d91ceda359c104dac0ad320e1391", size = 20924451 },
|
414 |
+
{ url = "https://files.pythonhosted.org/packages/6a/ec/6ea85b2da9d5dfa1dbb4cb3c76587fc8ddcae580cb1262303ab21c0926c4/numpy-2.2.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:9491100aba630910489c1d0158034e1c9a6546f0b1340f716d522dc103788e39", size = 14122390 },
|
415 |
+
{ url = "https://files.pythonhosted.org/packages/68/05/bfbdf490414a7dbaf65b10c78bc243f312c4553234b6d91c94eb7c4b53c2/numpy-2.2.2-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:41184c416143defa34cc8eb9d070b0a5ba4f13a0fa96a709e20584638254b317", size = 5156590 },
|
416 |
+
{ url = "https://files.pythonhosted.org/packages/f7/ec/fe2e91b2642b9d6544518388a441bcd65c904cea38d9ff998e2e8ebf808e/numpy-2.2.2-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:7dca87ca328f5ea7dafc907c5ec100d187911f94825f8700caac0b3f4c384b49", size = 6671958 },
|
417 |
+
{ url = "https://files.pythonhosted.org/packages/b1/6f/6531a78e182f194d33ee17e59d67d03d0d5a1ce7f6be7343787828d1bd4a/numpy-2.2.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0bc61b307655d1a7f9f4b043628b9f2b721e80839914ede634e3d485913e1fb2", size = 14019950 },
|
418 |
+
{ url = "https://files.pythonhosted.org/packages/e1/fb/13c58591d0b6294a08cc40fcc6b9552d239d773d520858ae27f39997f2ae/numpy-2.2.2-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9fad446ad0bc886855ddf5909cbf8cb5d0faa637aaa6277fb4b19ade134ab3c7", size = 16079759 },
|
419 |
+
{ url = "https://files.pythonhosted.org/packages/2c/f2/f2f8edd62abb4b289f65a7f6d1f3650273af00b91b7267a2431be7f1aec6/numpy-2.2.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:149d1113ac15005652e8d0d3f6fd599360e1a708a4f98e43c9c77834a28238cb", size = 15226139 },
|
420 |
+
{ url = "https://files.pythonhosted.org/packages/aa/29/14a177f1a90b8ad8a592ca32124ac06af5eff32889874e53a308f850290f/numpy-2.2.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:106397dbbb1896f99e044efc90360d098b3335060375c26aa89c0d8a97c5f648", size = 17856316 },
|
421 |
+
{ url = "https://files.pythonhosted.org/packages/95/03/242ae8d7b97f4e0e4ab8dd51231465fb23ed5e802680d629149722e3faf1/numpy-2.2.2-cp313-cp313t-win32.whl", hash = "sha256:0eec19f8af947a61e968d5429f0bd92fec46d92b0008d0a6685b40d6adf8a4f4", size = 6329134 },
|
422 |
+
{ url = "https://files.pythonhosted.org/packages/80/94/cd9e9b04012c015cb6320ab3bf43bc615e248dddfeb163728e800a5d96f0/numpy-2.2.2-cp313-cp313t-win_amd64.whl", hash = "sha256:97b974d3ba0fb4612b77ed35d7627490e8e3dff56ab41454d9e8b23448940576", size = 12696208 },
|
423 |
+
]
|
424 |
+
|
425 |
+
[[package]]
|
426 |
+
name = "openai"
|
427 |
+
version = "1.59.9"
|
428 |
+
source = { registry = "https://pypi.org/simple" }
|
429 |
+
dependencies = [
|
430 |
+
{ name = "anyio" },
|
431 |
+
{ name = "distro" },
|
432 |
+
{ name = "httpx" },
|
433 |
+
{ name = "jiter" },
|
434 |
+
{ name = "pydantic" },
|
435 |
+
{ name = "sniffio" },
|
436 |
+
{ name = "tqdm" },
|
437 |
+
{ name = "typing-extensions" },
|
438 |
+
]
|
439 |
+
sdist = { url = "https://files.pythonhosted.org/packages/ec/2d/04faa92bac0341649223398503db4415d2f658a757d9d32bb68f3378ddd0/openai-1.59.9.tar.gz", hash = "sha256:ec1a20b0351b4c3e65c6292db71d8233515437c6065efd4fd50edeb55df5f5d2", size = 347134 }
|
440 |
+
wheels = [
|
441 |
+
{ url = "https://files.pythonhosted.org/packages/07/b4/57f1954a4560092ad8c45f07ad183eab9c8e093e0a1db829f9b506b2d5d1/openai-1.59.9-py3-none-any.whl", hash = "sha256:61a0608a1313c08ddf92fe793b6dbd1630675a1fe3866b2f96447ce30050c448", size = 455527 },
|
442 |
+
]
|
443 |
+
|
444 |
+
[[package]]
|
445 |
+
name = "opentelemetry-api"
|
446 |
+
version = "1.28.2"
|
447 |
+
source = { registry = "https://pypi.org/simple" }
|
448 |
+
dependencies = [
|
449 |
+
{ name = "deprecated" },
|
450 |
+
{ name = "importlib-metadata" },
|
451 |
+
]
|
452 |
+
sdist = { url = "https://files.pythonhosted.org/packages/51/34/e4e9245c868c6490a46ffedf6bd5b0f512bbc0a848b19e3a51f6bbad648c/opentelemetry_api-1.28.2.tar.gz", hash = "sha256:ecdc70c7139f17f9b0cf3742d57d7020e3e8315d6cffcdf1a12a905d45b19cc0", size = 62796 }
|
453 |
+
wheels = [
|
454 |
+
{ url = "https://files.pythonhosted.org/packages/4d/58/b17393cdfc149e14ee84c662abf921993dcce8058628359ef1f49e2abb97/opentelemetry_api-1.28.2-py3-none-any.whl", hash = "sha256:6fcec89e265beb258fe6b1acaaa3c8c705a934bd977b9f534a2b7c0d2d4275a6", size = 64302 },
|
455 |
+
]
|
456 |
+
|
457 |
+
[[package]]
|
458 |
+
name = "opentelemetry-exporter-otlp"
|
459 |
+
version = "1.28.2"
|
460 |
+
source = { registry = "https://pypi.org/simple" }
|
461 |
+
dependencies = [
|
462 |
+
{ name = "opentelemetry-exporter-otlp-proto-grpc" },
|
463 |
+
{ name = "opentelemetry-exporter-otlp-proto-http" },
|
464 |
+
]
|
465 |
+
sdist = { url = "https://files.pythonhosted.org/packages/8a/eb/ad88c61b4e51cdd294ad4ae7c45b35120fb381eb019675954c4fc15b6c4c/opentelemetry_exporter_otlp-1.28.2.tar.gz", hash = "sha256:45f8d7fe4cdd41526464b542ce91b1fd1ae661be92d2c6cba71a3d948b2bdf70", size = 6155 }
|
466 |
+
wheels = [
|
467 |
+
{ url = "https://files.pythonhosted.org/packages/b8/16/65b0f0f9a85e6c0e1ce30e0ea96e0174ca4db85301883d1d6a9702700946/opentelemetry_exporter_otlp-1.28.2-py3-none-any.whl", hash = "sha256:b50f6d4a80e6bcd329e36f360ac486ecfa106ea704d6226ceea05d3a48455f70", size = 7010 },
|
468 |
+
]
|
469 |
+
|
470 |
+
[[package]]
|
471 |
+
name = "opentelemetry-exporter-otlp-proto-common"
|
472 |
+
version = "1.28.2"
|
473 |
+
source = { registry = "https://pypi.org/simple" }
|
474 |
+
dependencies = [
|
475 |
+
{ name = "opentelemetry-proto" },
|
476 |
+
]
|
477 |
+
sdist = { url = "https://files.pythonhosted.org/packages/60/cd/cd990f891b64e7698b8a6b6ab90dfac7f957db5a3d06788acd52f73ad4c0/opentelemetry_exporter_otlp_proto_common-1.28.2.tar.gz", hash = "sha256:7aebaa5fc9ff6029374546df1f3a62616fda07fccd9c6a8b7892ec130dd8baca", size = 19136 }
|
478 |
+
wheels = [
|
479 |
+
{ url = "https://files.pythonhosted.org/packages/2a/4d/769f3b1b1c6af5e603da50349ba31af757897540a75d666de22d39461055/opentelemetry_exporter_otlp_proto_common-1.28.2-py3-none-any.whl", hash = "sha256:545b1943b574f666c35b3d6cc67cb0b111060727e93a1e2866e346b33bff2a12", size = 18460 },
|
480 |
+
]
|
481 |
+
|
482 |
+
[[package]]
|
483 |
+
name = "opentelemetry-exporter-otlp-proto-grpc"
|
484 |
+
version = "1.28.2"
|
485 |
+
source = { registry = "https://pypi.org/simple" }
|
486 |
+
dependencies = [
|
487 |
+
{ name = "deprecated" },
|
488 |
+
{ name = "googleapis-common-protos" },
|
489 |
+
{ name = "grpcio" },
|
490 |
+
{ name = "opentelemetry-api" },
|
491 |
+
{ name = "opentelemetry-exporter-otlp-proto-common" },
|
492 |
+
{ name = "opentelemetry-proto" },
|
493 |
+
{ name = "opentelemetry-sdk" },
|
494 |
+
]
|
495 |
+
sdist = { url = "https://files.pythonhosted.org/packages/f7/4c/b5374467e97f2b290611de746d0e6cab3a07aec865d6b99d11535cd60059/opentelemetry_exporter_otlp_proto_grpc-1.28.2.tar.gz", hash = "sha256:07c10378380bbb01a7f621a5ce833fc1fab816e971140cd3ea1cd587840bc0e6", size = 26227 }
|
496 |
+
wheels = [
|
497 |
+
{ url = "https://files.pythonhosted.org/packages/dd/7e/6af5a7de87988cfc951db86f7fd0ecaabc20bc112fd9cfe06b8a01f11400/opentelemetry_exporter_otlp_proto_grpc-1.28.2-py3-none-any.whl", hash = "sha256:6083d9300863aab35bfce7c172d5fc1007686e6f8dff366eae460cd9a21592e2", size = 18518 },
|
498 |
+
]
|
499 |
+
|
500 |
+
[[package]]
|
501 |
+
name = "opentelemetry-exporter-otlp-proto-http"
|
502 |
+
version = "1.28.2"
|
503 |
+
source = { registry = "https://pypi.org/simple" }
|
504 |
+
dependencies = [
|
505 |
+
{ name = "deprecated" },
|
506 |
+
{ name = "googleapis-common-protos" },
|
507 |
+
{ name = "opentelemetry-api" },
|
508 |
+
{ name = "opentelemetry-exporter-otlp-proto-common" },
|
509 |
+
{ name = "opentelemetry-proto" },
|
510 |
+
{ name = "opentelemetry-sdk" },
|
511 |
+
{ name = "requests" },
|
512 |
+
]
|
513 |
+
sdist = { url = "https://files.pythonhosted.org/packages/b1/91/4e32e52d13dbdf9560bc095dfe66a2c09e0034a886f7725fcda8fe10a052/opentelemetry_exporter_otlp_proto_http-1.28.2.tar.gz", hash = "sha256:d9b353d67217f091aaf4cfe8693c170973bb3e90a558992570d97020618fda79", size = 15043 }
|
514 |
+
wheels = [
|
515 |
+
{ url = "https://files.pythonhosted.org/packages/19/23/802b889cf8bf3e235f30fbcbaa2b3fd484fe8c76b5b4db00f00c0e9af20f/opentelemetry_exporter_otlp_proto_http-1.28.2-py3-none-any.whl", hash = "sha256:af921c18212a56ef4be68458ba475791c0517ebfd8a2ff04669c9cd477d90ff2", size = 17218 },
|
516 |
+
]
|
517 |
+
|
518 |
+
[[package]]
|
519 |
+
name = "opentelemetry-instrumentation"
|
520 |
+
version = "0.49b2"
|
521 |
+
source = { registry = "https://pypi.org/simple" }
|
522 |
+
dependencies = [
|
523 |
+
{ name = "opentelemetry-api" },
|
524 |
+
{ name = "opentelemetry-semantic-conventions" },
|
525 |
+
{ name = "packaging" },
|
526 |
+
{ name = "wrapt" },
|
527 |
+
]
|
528 |
+
sdist = { url = "https://files.pythonhosted.org/packages/6f/1f/9fa51f6f64f4d179f4e3370eb042176ff7717682428552f5e1f4c5efcc09/opentelemetry_instrumentation-0.49b2.tar.gz", hash = "sha256:8cf00cc8d9d479e4b72adb9bd267ec544308c602b7188598db5a687e77b298e2", size = 26480 }
|
529 |
+
wheels = [
|
530 |
+
{ url = "https://files.pythonhosted.org/packages/ef/e3/ad23372525653b0221212d5e2a71bd97aae64cc35f90cbf0c70de57dfa4e/opentelemetry_instrumentation-0.49b2-py3-none-any.whl", hash = "sha256:f6d782b0ef9fef4a4c745298651c65f5c532c34cd4c40d230ab5b9f3b3b4d151", size = 30693 },
|
531 |
+
]
|
532 |
+
|
533 |
+
[[package]]
|
534 |
+
name = "opentelemetry-proto"
|
535 |
+
version = "1.28.2"
|
536 |
+
source = { registry = "https://pypi.org/simple" }
|
537 |
+
dependencies = [
|
538 |
+
{ name = "protobuf" },
|
539 |
+
]
|
540 |
+
sdist = { url = "https://files.pythonhosted.org/packages/d0/45/96c4f34c79fd87dc8a1c0c432f23a5a202729f21e4e63c8b36fc8e57767a/opentelemetry_proto-1.28.2.tar.gz", hash = "sha256:7c0d125a6b71af88bfeeda16bfdd0ff63dc2cf0039baf6f49fa133b203e3f566", size = 34316 }
|
541 |
+
wheels = [
|
542 |
+
{ url = "https://files.pythonhosted.org/packages/1d/12/646f48d6d698a6df0437a22b591387440dc4888c8752d1a1300f730da710/opentelemetry_proto-1.28.2-py3-none-any.whl", hash = "sha256:0837498f59db55086462915e5898d0b1a18c1392f6db4d7e937143072a72370c", size = 55818 },
|
543 |
+
]
|
544 |
+
|
545 |
+
[[package]]
|
546 |
+
name = "opentelemetry-sdk"
|
547 |
+
version = "1.28.2"
|
548 |
+
source = { registry = "https://pypi.org/simple" }
|
549 |
+
dependencies = [
|
550 |
+
{ name = "opentelemetry-api" },
|
551 |
+
{ name = "opentelemetry-semantic-conventions" },
|
552 |
+
{ name = "typing-extensions" },
|
553 |
+
]
|
554 |
+
sdist = { url = "https://files.pythonhosted.org/packages/4b/f4/840a5af4efe48d7fb4c456ad60fd624673e871a60d6494f7ff8a934755d4/opentelemetry_sdk-1.28.2.tar.gz", hash = "sha256:5fed24c5497e10df30282456fe2910f83377797511de07d14cec0d3e0a1a3110", size = 157272 }
|
555 |
+
wheels = [
|
556 |
+
{ url = "https://files.pythonhosted.org/packages/da/8b/4f2b418496c08016d4384f9b1c4725a8af7faafa248d624be4bb95993ce1/opentelemetry_sdk-1.28.2-py3-none-any.whl", hash = "sha256:93336c129556f1e3ccd21442b94d3521759541521861b2214c499571b85cb71b", size = 118757 },
|
557 |
+
]
|
558 |
+
|
559 |
+
[[package]]
|
560 |
+
name = "opentelemetry-semantic-conventions"
|
561 |
+
version = "0.49b2"
|
562 |
+
source = { registry = "https://pypi.org/simple" }
|
563 |
+
dependencies = [
|
564 |
+
{ name = "deprecated" },
|
565 |
+
{ name = "opentelemetry-api" },
|
566 |
+
]
|
567 |
+
sdist = { url = "https://files.pythonhosted.org/packages/7d/0a/e3b93f94aa3223c6fd8e743502a1fefd4fb3a753d8f501ce2a418f7c0bd4/opentelemetry_semantic_conventions-0.49b2.tar.gz", hash = "sha256:44e32ce6a5bb8d7c0c617f84b9dc1c8deda1045a07dc16a688cc7cbeab679997", size = 95213 }
|
568 |
+
wheels = [
|
569 |
+
{ url = "https://files.pythonhosted.org/packages/b1/be/6661c8f76708bb3ba38c90be8fa8d7ffe17ccbc5cbbc229334f5535f6448/opentelemetry_semantic_conventions-0.49b2-py3-none-any.whl", hash = "sha256:51e7e1d0daa958782b6c2a8ed05e5f0e7dd0716fc327ac058777b8659649ee54", size = 159199 },
|
570 |
+
]
|
571 |
+
|
572 |
+
[[package]]
|
573 |
+
name = "packaging"
|
574 |
+
version = "24.2"
|
575 |
+
source = { registry = "https://pypi.org/simple" }
|
576 |
+
sdist = { url = "https://files.pythonhosted.org/packages/d0/63/68dbb6eb2de9cb10ee4c9c14a0148804425e13c4fb20d61cce69f53106da/packaging-24.2.tar.gz", hash = "sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f", size = 163950 }
|
577 |
+
wheels = [
|
578 |
+
{ url = "https://files.pythonhosted.org/packages/88/ef/eb23f262cca3c0c4eb7ab1933c3b1f03d021f2c48f54763065b6f0e321be/packaging-24.2-py3-none-any.whl", hash = "sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759", size = 65451 },
|
579 |
+
]
|
580 |
+
|
581 |
+
[[package]]
|
582 |
+
name = "protobuf"
|
583 |
+
version = "5.29.3"
|
584 |
+
source = { registry = "https://pypi.org/simple" }
|
585 |
+
sdist = { url = "https://files.pythonhosted.org/packages/f7/d1/e0a911544ca9993e0f17ce6d3cc0932752356c1b0a834397f28e63479344/protobuf-5.29.3.tar.gz", hash = "sha256:5da0f41edaf117bde316404bad1a486cb4ededf8e4a54891296f648e8e076620", size = 424945 }
|
586 |
+
wheels = [
|
587 |
+
{ url = "https://files.pythonhosted.org/packages/dc/7a/1e38f3cafa022f477ca0f57a1f49962f21ad25850c3ca0acd3b9d0091518/protobuf-5.29.3-cp310-abi3-win32.whl", hash = "sha256:3ea51771449e1035f26069c4c7fd51fba990d07bc55ba80701c78f886bf9c888", size = 422708 },
|
588 |
+
{ url = "https://files.pythonhosted.org/packages/61/fa/aae8e10512b83de633f2646506a6d835b151edf4b30d18d73afd01447253/protobuf-5.29.3-cp310-abi3-win_amd64.whl", hash = "sha256:a4fa6f80816a9a0678429e84973f2f98cbc218cca434abe8db2ad0bffc98503a", size = 434508 },
|
589 |
+
{ url = "https://files.pythonhosted.org/packages/dd/04/3eaedc2ba17a088961d0e3bd396eac764450f431621b58a04ce898acd126/protobuf-5.29.3-cp38-abi3-macosx_10_9_universal2.whl", hash = "sha256:a8434404bbf139aa9e1300dbf989667a83d42ddda9153d8ab76e0d5dcaca484e", size = 417825 },
|
590 |
+
{ url = "https://files.pythonhosted.org/packages/4f/06/7c467744d23c3979ce250397e26d8ad8eeb2bea7b18ca12ad58313c1b8d5/protobuf-5.29.3-cp38-abi3-manylinux2014_aarch64.whl", hash = "sha256:daaf63f70f25e8689c072cfad4334ca0ac1d1e05a92fc15c54eb9cf23c3efd84", size = 319573 },
|
591 |
+
{ url = "https://files.pythonhosted.org/packages/a8/45/2ebbde52ad2be18d3675b6bee50e68cd73c9e0654de77d595540b5129df8/protobuf-5.29.3-cp38-abi3-manylinux2014_x86_64.whl", hash = "sha256:c027e08a08be10b67c06bf2370b99c811c466398c357e615ca88c91c07f0910f", size = 319672 },
|
592 |
+
{ url = "https://files.pythonhosted.org/packages/fd/b2/ab07b09e0f6d143dfb839693aa05765257bceaa13d03bf1a696b78323e7a/protobuf-5.29.3-py3-none-any.whl", hash = "sha256:0a18ed4a24198528f2333802eb075e59dea9d679ab7a6c5efb017a59004d849f", size = 172550 },
|
593 |
+
]
|
594 |
+
|
595 |
+
[[package]]
|
596 |
+
name = "pydantic"
|
597 |
+
version = "2.10.1"
|
598 |
+
source = { registry = "https://pypi.org/simple" }
|
599 |
+
dependencies = [
|
600 |
+
{ name = "annotated-types" },
|
601 |
+
{ name = "pydantic-core" },
|
602 |
+
{ name = "typing-extensions" },
|
603 |
+
]
|
604 |
+
sdist = { url = "https://files.pythonhosted.org/packages/c4/bd/7fc610993f616d2398958d0028d15eaf53bde5f80cb2edb7aa4f1feaf3a7/pydantic-2.10.1.tar.gz", hash = "sha256:a4daca2dc0aa429555e0656d6bf94873a7dc5f54ee42b1f5873d666fb3f35560", size = 783717 }
|
605 |
+
wheels = [
|
606 |
+
{ url = "https://files.pythonhosted.org/packages/e0/fc/fda48d347bd50a788dd2a0f318a52160f911b86fc2d8b4c86f4d7c9bceea/pydantic-2.10.1-py3-none-any.whl", hash = "sha256:a8d20db84de64cf4a7d59e899c2caf0fe9d660c7cfc482528e7020d7dd189a7e", size = 455329 },
|
607 |
+
]
|
608 |
+
|
609 |
+
[[package]]
|
610 |
+
name = "pydantic-core"
|
611 |
+
version = "2.27.1"
|
612 |
+
source = { registry = "https://pypi.org/simple" }
|
613 |
+
dependencies = [
|
614 |
+
{ name = "typing-extensions" },
|
615 |
+
]
|
616 |
+
sdist = { url = "https://files.pythonhosted.org/packages/a6/9f/7de1f19b6aea45aeb441838782d68352e71bfa98ee6fa048d5041991b33e/pydantic_core-2.27.1.tar.gz", hash = "sha256:62a763352879b84aa31058fc931884055fd75089cccbd9d58bb6afd01141b235", size = 412785 }
|
617 |
+
wheels = [
|
618 |
+
{ url = "https://files.pythonhosted.org/packages/0f/d6/91cb99a3c59d7b072bded9959fbeab0a9613d5a4935773c0801f1764c156/pydantic_core-2.27.1-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:f216dbce0e60e4d03e0c4353c7023b202d95cbaeff12e5fd2e82ea0a66905073", size = 1895033 },
|
619 |
+
{ url = "https://files.pythonhosted.org/packages/07/42/d35033f81a28b27dedcade9e967e8a40981a765795c9ebae2045bcef05d3/pydantic_core-2.27.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:a2e02889071850bbfd36b56fd6bc98945e23670773bc7a76657e90e6b6603c08", size = 1807542 },
|
620 |
+
{ url = "https://files.pythonhosted.org/packages/41/c2/491b59e222ec7e72236e512108ecad532c7f4391a14e971c963f624f7569/pydantic_core-2.27.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:42b0e23f119b2b456d07ca91b307ae167cc3f6c846a7b169fca5326e32fdc6cf", size = 1827854 },
|
621 |
+
{ url = "https://files.pythonhosted.org/packages/e3/f3/363652651779113189cefdbbb619b7b07b7a67ebb6840325117cc8cc3460/pydantic_core-2.27.1-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:764be71193f87d460a03f1f7385a82e226639732214b402f9aa61f0d025f0737", size = 1857389 },
|
622 |
+
{ url = "https://files.pythonhosted.org/packages/5f/97/be804aed6b479af5a945daec7538d8bf358d668bdadde4c7888a2506bdfb/pydantic_core-2.27.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1c00666a3bd2f84920a4e94434f5974d7bbc57e461318d6bb34ce9cdbbc1f6b2", size = 2037934 },
|
623 |
+
{ url = "https://files.pythonhosted.org/packages/42/01/295f0bd4abf58902917e342ddfe5f76cf66ffabfc57c2e23c7681a1a1197/pydantic_core-2.27.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3ccaa88b24eebc0f849ce0a4d09e8a408ec5a94afff395eb69baf868f5183107", size = 2735176 },
|
624 |
+
{ url = "https://files.pythonhosted.org/packages/9d/a0/cd8e9c940ead89cc37812a1a9f310fef59ba2f0b22b4e417d84ab09fa970/pydantic_core-2.27.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c65af9088ac534313e1963443d0ec360bb2b9cba6c2909478d22c2e363d98a51", size = 2160720 },
|
625 |
+
{ url = "https://files.pythonhosted.org/packages/73/ae/9d0980e286627e0aeca4c352a60bd760331622c12d576e5ea4441ac7e15e/pydantic_core-2.27.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:206b5cf6f0c513baffaeae7bd817717140770c74528f3e4c3e1cec7871ddd61a", size = 1992972 },
|
626 |
+
{ url = "https://files.pythonhosted.org/packages/bf/ba/ae4480bc0292d54b85cfb954e9d6bd226982949f8316338677d56541b85f/pydantic_core-2.27.1-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:062f60e512fc7fff8b8a9d680ff0ddaaef0193dba9fa83e679c0c5f5fbd018bc", size = 2001477 },
|
627 |
+
{ url = "https://files.pythonhosted.org/packages/55/b7/e26adf48c2f943092ce54ae14c3c08d0d221ad34ce80b18a50de8ed2cba8/pydantic_core-2.27.1-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:a0697803ed7d4af5e4c1adf1670af078f8fcab7a86350e969f454daf598c4960", size = 2091186 },
|
628 |
+
{ url = "https://files.pythonhosted.org/packages/ba/cc/8491fff5b608b3862eb36e7d29d36a1af1c945463ca4c5040bf46cc73f40/pydantic_core-2.27.1-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:58ca98a950171f3151c603aeea9303ef6c235f692fe555e883591103da709b23", size = 2154429 },
|
629 |
+
{ url = "https://files.pythonhosted.org/packages/78/d8/c080592d80edd3441ab7f88f865f51dae94a157fc64283c680e9f32cf6da/pydantic_core-2.27.1-cp313-none-win32.whl", hash = "sha256:8065914ff79f7eab1599bd80406681f0ad08f8e47c880f17b416c9f8f7a26d05", size = 1833713 },
|
630 |
+
{ url = "https://files.pythonhosted.org/packages/83/84/5ab82a9ee2538ac95a66e51f6838d6aba6e0a03a42aa185ad2fe404a4e8f/pydantic_core-2.27.1-cp313-none-win_amd64.whl", hash = "sha256:ba630d5e3db74c79300d9a5bdaaf6200172b107f263c98a0539eeecb857b2337", size = 1987897 },
|
631 |
+
{ url = "https://files.pythonhosted.org/packages/df/c3/b15fb833926d91d982fde29c0624c9f225da743c7af801dace0d4e187e71/pydantic_core-2.27.1-cp313-none-win_arm64.whl", hash = "sha256:45cf8588c066860b623cd11c4ba687f8d7175d5f7ef65f7129df8a394c502de5", size = 1882983 },
|
632 |
+
]
|
633 |
+
|
634 |
+
[[package]]
|
635 |
+
name = "pyjwt"
|
636 |
+
version = "2.10.1"
|
637 |
+
source = { registry = "https://pypi.org/simple" }
|
638 |
+
sdist = { url = "https://files.pythonhosted.org/packages/e7/46/bd74733ff231675599650d3e47f361794b22ef3e3770998dda30d3b63726/pyjwt-2.10.1.tar.gz", hash = "sha256:3cc5772eb20009233caf06e9d8a0577824723b44e6648ee0a2aedb6cf9381953", size = 87785 }
|
639 |
+
wheels = [
|
640 |
+
{ url = "https://files.pythonhosted.org/packages/61/ad/689f02752eeec26aed679477e80e632ef1b682313be70793d798c1d5fc8f/PyJWT-2.10.1-py3-none-any.whl", hash = "sha256:dcdd193e30abefd5debf142f9adfcdd2b58004e644f25406ffaebd50bd98dacb", size = 22997 },
|
641 |
+
]
|
642 |
+
|
643 |
+
[[package]]
|
644 |
+
name = "pypdf2"
|
645 |
+
version = "3.0.1"
|
646 |
+
source = { registry = "https://pypi.org/simple" }
|
647 |
+
sdist = { url = "https://files.pythonhosted.org/packages/9f/bb/18dc3062d37db6c491392007dfd1a7f524bb95886eb956569ac38a23a784/PyPDF2-3.0.1.tar.gz", hash = "sha256:a74408f69ba6271f71b9352ef4ed03dc53a31aa404d29b5d31f53bfecfee1440", size = 227419 }
|
648 |
+
wheels = [
|
649 |
+
{ url = "https://files.pythonhosted.org/packages/8e/5e/c86a5643653825d3c913719e788e41386bee415c2b87b4f955432f2de6b2/pypdf2-3.0.1-py3-none-any.whl", hash = "sha256:d16e4205cfee272fbdc0568b68d82be796540b1537508cef59388f839c191928", size = 232572 },
|
650 |
+
]
|
651 |
+
|
652 |
+
[[package]]
|
653 |
+
name = "python-dotenv"
|
654 |
+
version = "1.0.1"
|
655 |
+
source = { registry = "https://pypi.org/simple" }
|
656 |
+
sdist = { url = "https://files.pythonhosted.org/packages/bc/57/e84d88dfe0aec03b7a2d4327012c1627ab5f03652216c63d49846d7a6c58/python-dotenv-1.0.1.tar.gz", hash = "sha256:e324ee90a023d808f1959c46bcbc04446a10ced277783dc6ee09987c37ec10ca", size = 39115 }
|
657 |
+
wheels = [
|
658 |
+
{ url = "https://files.pythonhosted.org/packages/6a/3e/b68c118422ec867fa7ab88444e1274aa40681c606d59ac27de5a5588f082/python_dotenv-1.0.1-py3-none-any.whl", hash = "sha256:f7b63ef50f1b690dddf550d03497b66d609393b40b564ed0d674909a68ebf16a", size = 19863 },
|
659 |
+
]
|
660 |
+
|
661 |
+
[[package]]
|
662 |
+
name = "python-engineio"
|
663 |
+
version = "4.11.2"
|
664 |
+
source = { registry = "https://pypi.org/simple" }
|
665 |
+
dependencies = [
|
666 |
+
{ name = "simple-websocket" },
|
667 |
+
]
|
668 |
+
sdist = { url = "https://files.pythonhosted.org/packages/52/e0/a9e0fe427ce7f1b7dbf9531fa00ffe4b557c4a7bc8e71891c115af123170/python_engineio-4.11.2.tar.gz", hash = "sha256:145bb0daceb904b4bb2d3eb2d93f7dbb7bb87a6a0c4f20a94cc8654dec977129", size = 91381 }
|
669 |
+
wheels = [
|
670 |
+
{ url = "https://files.pythonhosted.org/packages/07/8f/978a0b913e3f8ad33a9a2fe204d32efe3d1ee34ecb1f2829c1cfbdd92082/python_engineio-4.11.2-py3-none-any.whl", hash = "sha256:f0971ac4c65accc489154fe12efd88f53ca8caf04754c46a66e85f5102ef22ad", size = 59239 },
|
671 |
+
]
|
672 |
+
|
673 |
+
[[package]]
|
674 |
+
name = "python-multipart"
|
675 |
+
version = "0.0.18"
|
676 |
+
source = { registry = "https://pypi.org/simple" }
|
677 |
+
sdist = { url = "https://files.pythonhosted.org/packages/b4/86/b6b38677dec2e2e7898fc5b6f7e42c2d011919a92d25339451892f27b89c/python_multipart-0.0.18.tar.gz", hash = "sha256:7a68db60c8bfb82e460637fa4750727b45af1d5e2ed215593f917f64694d34fe", size = 36622 }
|
678 |
+
wheels = [
|
679 |
+
{ url = "https://files.pythonhosted.org/packages/13/6b/b60f47101ba2cac66b4a83246630e68ae9bbe2e614cbae5f4465f46dee13/python_multipart-0.0.18-py3-none-any.whl", hash = "sha256:efe91480f485f6a361427a541db4796f9e1591afc0fb8e7a4ba06bfbc6708996", size = 24389 },
|
680 |
+
]
|
681 |
+
|
682 |
+
[[package]]
|
683 |
+
name = "python-socketio"
|
684 |
+
version = "5.12.1"
|
685 |
+
source = { registry = "https://pypi.org/simple" }
|
686 |
+
dependencies = [
|
687 |
+
{ name = "bidict" },
|
688 |
+
{ name = "python-engineio" },
|
689 |
+
]
|
690 |
+
sdist = { url = "https://files.pythonhosted.org/packages/ce/d0/40ed38076e8aee94785d546d3e3a1cae393da5806a8530be877187e2875f/python_socketio-5.12.1.tar.gz", hash = "sha256:0299ff1f470b676c09c1bfab1dead25405077d227b2c13cf217a34dadc68ba9c", size = 119991 }
|
691 |
+
wheels = [
|
692 |
+
{ url = "https://files.pythonhosted.org/packages/8a/a3/c69806f30dd81df5a99d592e7db4c930c3a9b098555aa97b0eb866b20b11/python_socketio-5.12.1-py3-none-any.whl", hash = "sha256:24a0ea7cfff0e021eb28c68edbf7914ee4111bdf030b95e4d250c4dc9af7a386", size = 76947 },
|
693 |
+
]
|
694 |
+
|
695 |
+
[[package]]
|
696 |
+
name = "requests"
|
697 |
+
version = "2.32.3"
|
698 |
+
source = { registry = "https://pypi.org/simple" }
|
699 |
+
dependencies = [
|
700 |
+
{ name = "certifi" },
|
701 |
+
{ name = "charset-normalizer" },
|
702 |
+
{ name = "idna" },
|
703 |
+
{ name = "urllib3" },
|
704 |
+
]
|
705 |
+
sdist = { url = "https://files.pythonhosted.org/packages/63/70/2bf7780ad2d390a8d301ad0b550f1581eadbd9a20f896afe06353c2a2913/requests-2.32.3.tar.gz", hash = "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760", size = 131218 }
|
706 |
+
wheels = [
|
707 |
+
{ url = "https://files.pythonhosted.org/packages/f9/9b/335f9764261e915ed497fcdeb11df5dfd6f7bf257d4a6a2a686d80da4d54/requests-2.32.3-py3-none-any.whl", hash = "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6", size = 64928 },
|
708 |
+
]
|
709 |
+
|
710 |
+
[[package]]
|
711 |
+
name = "simple-websocket"
|
712 |
+
version = "1.1.0"
|
713 |
+
source = { registry = "https://pypi.org/simple" }
|
714 |
+
dependencies = [
|
715 |
+
{ name = "wsproto" },
|
716 |
+
]
|
717 |
+
sdist = { url = "https://files.pythonhosted.org/packages/b0/d4/bfa032f961103eba93de583b161f0e6a5b63cebb8f2c7d0c6e6efe1e3d2e/simple_websocket-1.1.0.tar.gz", hash = "sha256:7939234e7aa067c534abdab3a9ed933ec9ce4691b0713c78acb195560aa52ae4", size = 17300 }
|
718 |
+
wheels = [
|
719 |
+
{ url = "https://files.pythonhosted.org/packages/52/59/0782e51887ac6b07ffd1570e0364cf901ebc36345fea669969d2084baebb/simple_websocket-1.1.0-py3-none-any.whl", hash = "sha256:4af6069630a38ed6c561010f0e11a5bc0d4ca569b36306eb257cd9a192497c8c", size = 13842 },
|
720 |
+
]
|
721 |
+
|
722 |
+
[[package]]
|
723 |
+
name = "sniffio"
|
724 |
+
version = "1.3.1"
|
725 |
+
source = { registry = "https://pypi.org/simple" }
|
726 |
+
sdist = { url = "https://files.pythonhosted.org/packages/a2/87/a6771e1546d97e7e041b6ae58d80074f81b7d5121207425c964ddf5cfdbd/sniffio-1.3.1.tar.gz", hash = "sha256:f4324edc670a0f49750a81b895f35c3adb843cca46f0530f79fc1babb23789dc", size = 20372 }
|
727 |
+
wheels = [
|
728 |
+
{ url = "https://files.pythonhosted.org/packages/e9/44/75a9c9421471a6c4805dbf2356f7c181a29c1879239abab1ea2cc8f38b40/sniffio-1.3.1-py3-none-any.whl", hash = "sha256:2f6da418d1f1e0fddd844478f41680e794e6051915791a034ff65e5f100525a2", size = 10235 },
|
729 |
+
]
|
730 |
+
|
731 |
+
[[package]]
|
732 |
+
name = "starlette"
|
733 |
+
version = "0.41.3"
|
734 |
+
source = { registry = "https://pypi.org/simple" }
|
735 |
+
dependencies = [
|
736 |
+
{ name = "anyio" },
|
737 |
+
]
|
738 |
+
sdist = { url = "https://files.pythonhosted.org/packages/1a/4c/9b5764bd22eec91c4039ef4c55334e9187085da2d8a2df7bd570869aae18/starlette-0.41.3.tar.gz", hash = "sha256:0e4ab3d16522a255be6b28260b938eae2482f98ce5cc934cb08dce8dc3ba5835", size = 2574159 }
|
739 |
+
wheels = [
|
740 |
+
{ url = "https://files.pythonhosted.org/packages/96/00/2b325970b3060c7cecebab6d295afe763365822b1306a12eeab198f74323/starlette-0.41.3-py3-none-any.whl", hash = "sha256:44cedb2b7c77a9de33a8b74b2b90e9f50d11fcf25d8270ea525ad71a25374ff7", size = 73225 },
|
741 |
+
]
|
742 |
+
|
743 |
+
[[package]]
|
744 |
+
name = "syncer"
|
745 |
+
version = "2.0.3"
|
746 |
+
source = { registry = "https://pypi.org/simple" }
|
747 |
+
sdist = { url = "https://files.pythonhosted.org/packages/8d/dd/d4dd75843692690d81f0a4b929212a1614b25d4896aa7c72f4c3546c7e3d/syncer-2.0.3.tar.gz", hash = "sha256:4340eb54b54368724a78c5c0763824470201804fe9180129daf3635cb500550f", size = 11512 }
|
748 |
+
|
749 |
+
[[package]]
|
750 |
+
name = "tomli"
|
751 |
+
version = "2.2.1"
|
752 |
+
source = { registry = "https://pypi.org/simple" }
|
753 |
+
sdist = { url = "https://files.pythonhosted.org/packages/18/87/302344fed471e44a87289cf4967697d07e532f2421fdaf868a303cbae4ff/tomli-2.2.1.tar.gz", hash = "sha256:cd45e1dc79c835ce60f7404ec8119f2eb06d38b1deba146f07ced3bbc44505ff", size = 17175 }
|
754 |
+
wheels = [
|
755 |
+
{ url = "https://files.pythonhosted.org/packages/04/90/2ee5f2e0362cb8a0b6499dc44f4d7d48f8fff06d28ba46e6f1eaa61a1388/tomli-2.2.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f4039b9cbc3048b2416cc57ab3bda989a6fcf9b36cf8937f01a6e731b64f80d7", size = 132708 },
|
756 |
+
{ url = "https://files.pythonhosted.org/packages/c0/ec/46b4108816de6b385141f082ba99e315501ccd0a2ea23db4a100dd3990ea/tomli-2.2.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:286f0ca2ffeeb5b9bd4fcc8d6c330534323ec51b2f52da063b11c502da16f30c", size = 123582 },
|
757 |
+
{ url = "https://files.pythonhosted.org/packages/a0/bd/b470466d0137b37b68d24556c38a0cc819e8febe392d5b199dcd7f578365/tomli-2.2.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a92ef1a44547e894e2a17d24e7557a5e85a9e1d0048b0b5e7541f76c5032cb13", size = 232543 },
|
758 |
+
{ url = "https://files.pythonhosted.org/packages/d9/e5/82e80ff3b751373f7cead2815bcbe2d51c895b3c990686741a8e56ec42ab/tomli-2.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9316dc65bed1684c9a98ee68759ceaed29d229e985297003e494aa825ebb0281", size = 241691 },
|
759 |
+
{ url = "https://files.pythonhosted.org/packages/05/7e/2a110bc2713557d6a1bfb06af23dd01e7dde52b6ee7dadc589868f9abfac/tomli-2.2.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e85e99945e688e32d5a35c1ff38ed0b3f41f43fad8df0bdf79f72b2ba7bc5272", size = 251170 },
|
760 |
+
{ url = "https://files.pythonhosted.org/packages/64/7b/22d713946efe00e0adbcdfd6d1aa119ae03fd0b60ebed51ebb3fa9f5a2e5/tomli-2.2.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ac065718db92ca818f8d6141b5f66369833d4a80a9d74435a268c52bdfa73140", size = 236530 },
|
761 |
+
{ url = "https://files.pythonhosted.org/packages/38/31/3a76f67da4b0cf37b742ca76beaf819dca0ebef26d78fc794a576e08accf/tomli-2.2.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:d920f33822747519673ee656a4b6ac33e382eca9d331c87770faa3eef562aeb2", size = 258666 },
|
762 |
+
{ url = "https://files.pythonhosted.org/packages/07/10/5af1293da642aded87e8a988753945d0cf7e00a9452d3911dd3bb354c9e2/tomli-2.2.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a198f10c4d1b1375d7687bc25294306e551bf1abfa4eace6650070a5c1ae2744", size = 243954 },
|
763 |
+
{ url = "https://files.pythonhosted.org/packages/5b/b9/1ed31d167be802da0fc95020d04cd27b7d7065cc6fbefdd2f9186f60d7bd/tomli-2.2.1-cp313-cp313-win32.whl", hash = "sha256:d3f5614314d758649ab2ab3a62d4f2004c825922f9e370b29416484086b264ec", size = 98724 },
|
764 |
+
{ url = "https://files.pythonhosted.org/packages/c7/32/b0963458706accd9afcfeb867c0f9175a741bf7b19cd424230714d722198/tomli-2.2.1-cp313-cp313-win_amd64.whl", hash = "sha256:a38aa0308e754b0e3c67e344754dff64999ff9b513e691d0e786265c93583c69", size = 109383 },
|
765 |
+
{ url = "https://files.pythonhosted.org/packages/6e/c2/61d3e0f47e2b74ef40a68b9e6ad5984f6241a942f7cd3bbfbdbd03861ea9/tomli-2.2.1-py3-none-any.whl", hash = "sha256:cb55c73c5f4408779d0cf3eef9f762b9c9f147a77de7b258bef0a5628adc85cc", size = 14257 },
|
766 |
+
]
|
767 |
+
|
768 |
+
[[package]]
|
769 |
+
name = "tqdm"
|
770 |
+
version = "4.67.1"
|
771 |
+
source = { registry = "https://pypi.org/simple" }
|
772 |
+
dependencies = [
|
773 |
+
{ name = "colorama", marker = "sys_platform == 'win32'" },
|
774 |
+
]
|
775 |
+
sdist = { url = "https://files.pythonhosted.org/packages/a8/4b/29b4ef32e036bb34e4ab51796dd745cdba7ed47ad142a9f4a1eb8e0c744d/tqdm-4.67.1.tar.gz", hash = "sha256:f8aef9c52c08c13a65f30ea34f4e5aac3fd1a34959879d7e59e63027286627f2", size = 169737 }
|
776 |
+
wheels = [
|
777 |
+
{ url = "https://files.pythonhosted.org/packages/d0/30/dc54f88dd4a2b5dc8a0279bdd7270e735851848b762aeb1c1184ed1f6b14/tqdm-4.67.1-py3-none-any.whl", hash = "sha256:26445eca388f82e72884e0d580d5464cd801a3ea01e63e5601bdff9ba6a48de2", size = 78540 },
|
778 |
+
]
|
779 |
+
|
780 |
+
[[package]]
|
781 |
+
name = "typing-extensions"
|
782 |
+
version = "4.12.2"
|
783 |
+
source = { registry = "https://pypi.org/simple" }
|
784 |
+
sdist = { url = "https://files.pythonhosted.org/packages/df/db/f35a00659bc03fec321ba8bce9420de607a1d37f8342eee1863174c69557/typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8", size = 85321 }
|
785 |
+
wheels = [
|
786 |
+
{ url = "https://files.pythonhosted.org/packages/26/9f/ad63fc0248c5379346306f8668cda6e2e2e9c95e01216d2b8ffd9ff037d0/typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d", size = 37438 },
|
787 |
+
]
|
788 |
+
|
789 |
+
[[package]]
|
790 |
+
name = "typing-inspect"
|
791 |
+
version = "0.9.0"
|
792 |
+
source = { registry = "https://pypi.org/simple" }
|
793 |
+
dependencies = [
|
794 |
+
{ name = "mypy-extensions" },
|
795 |
+
{ name = "typing-extensions" },
|
796 |
+
]
|
797 |
+
sdist = { url = "https://files.pythonhosted.org/packages/dc/74/1789779d91f1961fa9438e9a8710cdae6bd138c80d7303996933d117264a/typing_inspect-0.9.0.tar.gz", hash = "sha256:b23fc42ff6f6ef6954e4852c1fb512cdd18dbea03134f91f856a95ccc9461f78", size = 13825 }
|
798 |
+
wheels = [
|
799 |
+
{ url = "https://files.pythonhosted.org/packages/65/f3/107a22063bf27bdccf2024833d3445f4eea42b2e598abfbd46f6a63b6cb0/typing_inspect-0.9.0-py3-none-any.whl", hash = "sha256:9ee6fc59062311ef8547596ab6b955e1b8aa46242d854bfc78f4f6b0eff35f9f", size = 8827 },
|
800 |
+
]
|
801 |
+
|
802 |
+
[[package]]
|
803 |
+
name = "uptrace"
|
804 |
+
version = "1.28.2"
|
805 |
+
source = { registry = "https://pypi.org/simple" }
|
806 |
+
dependencies = [
|
807 |
+
{ name = "opentelemetry-api" },
|
808 |
+
{ name = "opentelemetry-exporter-otlp" },
|
809 |
+
{ name = "opentelemetry-instrumentation" },
|
810 |
+
{ name = "opentelemetry-sdk" },
|
811 |
+
]
|
812 |
+
sdist = { url = "https://files.pythonhosted.org/packages/71/a3/9236f08b4d15a4dbc72d8281ca80642e02aeabf649d15de73d9cafde6e31/uptrace-1.28.2.tar.gz", hash = "sha256:8858345a8eee04482b175ae899ddefc1030e0490588ae486abfe0de27e6f6e8e", size = 7629 }
|
813 |
+
wheels = [
|
814 |
+
{ url = "https://files.pythonhosted.org/packages/d2/d8/1362c475f9bc7709abd55c9914c0dc6d5f636f39a801cf251bc26122c6f5/uptrace-1.28.2-py3-none-any.whl", hash = "sha256:6eba00edd82f42b9f87833f3cf9c9775caf31d8fa892a4ce956ec710eabbe4b0", size = 8620 },
|
815 |
+
]
|
816 |
+
|
817 |
+
[[package]]
|
818 |
+
name = "urllib3"
|
819 |
+
version = "2.3.0"
|
820 |
+
source = { registry = "https://pypi.org/simple" }
|
821 |
+
sdist = { url = "https://files.pythonhosted.org/packages/aa/63/e53da845320b757bf29ef6a9062f5c669fe997973f966045cb019c3f4b66/urllib3-2.3.0.tar.gz", hash = "sha256:f8c5449b3cf0861679ce7e0503c7b44b5ec981bec0d1d3795a07f1ba96f0204d", size = 307268 }
|
822 |
+
wheels = [
|
823 |
+
{ url = "https://files.pythonhosted.org/packages/c8/19/4ec628951a74043532ca2cf5d97b7b14863931476d117c471e8e2b1eb39f/urllib3-2.3.0-py3-none-any.whl", hash = "sha256:1cee9ad369867bfdbbb48b7dd50374c0967a0bb7710050facf0dd6911440e3df", size = 128369 },
|
824 |
+
]
|
825 |
+
|
826 |
+
[[package]]
|
827 |
+
name = "uvicorn"
|
828 |
+
version = "0.34.0"
|
829 |
+
source = { registry = "https://pypi.org/simple" }
|
830 |
+
dependencies = [
|
831 |
+
{ name = "click" },
|
832 |
+
{ name = "h11" },
|
833 |
+
]
|
834 |
+
sdist = { url = "https://files.pythonhosted.org/packages/4b/4d/938bd85e5bf2edeec766267a5015ad969730bb91e31b44021dfe8b22df6c/uvicorn-0.34.0.tar.gz", hash = "sha256:404051050cd7e905de2c9a7e61790943440b3416f49cb409f965d9dcd0fa73e9", size = 76568 }
|
835 |
+
wheels = [
|
836 |
+
{ url = "https://files.pythonhosted.org/packages/61/14/33a3a1352cfa71812a3a21e8c9bfb83f60b0011f5e36f2b1399d51928209/uvicorn-0.34.0-py3-none-any.whl", hash = "sha256:023dc038422502fa28a09c7a30bf2b6991512da7dcdb8fd35fe57cfc154126f4", size = 62315 },
|
837 |
+
]
|
838 |
+
|
839 |
+
[[package]]
|
840 |
+
name = "watchfiles"
|
841 |
+
version = "0.20.0"
|
842 |
+
source = { registry = "https://pypi.org/simple" }
|
843 |
+
dependencies = [
|
844 |
+
{ name = "anyio" },
|
845 |
+
]
|
846 |
+
sdist = { url = "https://files.pythonhosted.org/packages/ef/48/02d2d2cbf54e134810b2cb40ac79fdb8ce08476184536a4764717a7bc9f4/watchfiles-0.20.0.tar.gz", hash = "sha256:728575b6b94c90dd531514677201e8851708e6e4b5fe7028ac506a200b622019", size = 37041 }
|
847 |
+
wheels = [
|
848 |
+
{ url = "https://files.pythonhosted.org/packages/4d/db/899832e11fef2d468bf8b3c1c13289b1db4cb7c3410bb2a9612a52fc8b22/watchfiles-0.20.0-cp37-abi3-macosx_10_7_x86_64.whl", hash = "sha256:3796312bd3587e14926013612b23066912cf45a14af71cf2b20db1c12dadf4e9", size = 417357 },
|
849 |
+
{ url = "https://files.pythonhosted.org/packages/9f/1a/85c914e4db62a3f8197daa98a271ea380a5d200a8d3058bd9f417752bc26/watchfiles-0.20.0-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:d0002d81c89a662b595645fb684a371b98ff90a9c7d8f8630c82f0fde8310458", size = 407258 },
|
850 |
+
{ url = "https://files.pythonhosted.org/packages/25/ae/b7bddad421af5e33079a2ce639aa58837b715a2da98df16e25ecd310af52/watchfiles-0.20.0-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:570848706440373b4cd8017f3e850ae17f76dbdf1e9045fc79023b11e1afe490", size = 1331327 },
|
851 |
+
{ url = "https://files.pythonhosted.org/packages/21/e5/b080cec4e841b1cf338ccbd958cf3232ad1691a590653b2d124b5c79cf6b/watchfiles-0.20.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9a0351d20d03c6f7ad6b2e8a226a5efafb924c7755ee1e34f04c77c3682417fa", size = 1301371 },
|
852 |
+
{ url = "https://files.pythonhosted.org/packages/05/a0/2fb2c36730995a6b3f060187195dc08ad9ceee67426bdca8a4296024071c/watchfiles-0.20.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:007dcc4a401093010b389c044e81172c8a2520dba257c88f8828b3d460c6bb38", size = 1302438 },
|
853 |
+
{ url = "https://files.pythonhosted.org/packages/13/ea/d11971958ae703cfe443b21f672169cb8bc12dbec5781b910633fa2186ec/watchfiles-0.20.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0d82dbc1832da83e441d112069833eedd4cf583d983fb8dd666fbefbea9d99c0", size = 1410655 },
|
854 |
+
{ url = "https://files.pythonhosted.org/packages/6b/81/3f922f3ede53ca9c0b4095f63688ffeea19a49592d0ac62db1eb9632b1e3/watchfiles-0.20.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:99f4c65fd2fce61a571b2a6fcf747d6868db0bef8a934e8ca235cc8533944d95", size = 1494222 },
|
855 |
+
{ url = "https://files.pythonhosted.org/packages/e1/46/c9d5ee4871b187d291d62e61c41f9a4d67d4866a89704b0ad16b6949e9bd/watchfiles-0.20.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5392dd327a05f538c56edb1c6ebba6af91afc81b40822452342f6da54907bbdf", size = 1294171 },
|
856 |
+
{ url = "https://files.pythonhosted.org/packages/59/5e/6b64e3bf9fd4422250f3c716d992dd76dbe55e6fa1e7ebaf2bf88f389707/watchfiles-0.20.0-cp37-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:08dc702529bb06a2b23859110c214db245455532da5eaea602921687cfcd23db", size = 1462256 },
|
857 |
+
{ url = "https://files.pythonhosted.org/packages/11/c0/75f5a71ac24118ab11bd898e0114cedc72b25924ff2d960d473bddb4ec6e/watchfiles-0.20.0-cp37-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:7d4e66a857621584869cfbad87039e65dadd7119f0d9bb9dbc957e089e32c164", size = 1461725 },
|
858 |
+
{ url = "https://files.pythonhosted.org/packages/91/d4/0c0fdcc4293ad1b73db54896fa0de4b37439ae4f25971b5eb1708dd04f9a/watchfiles-0.20.0-cp37-abi3-win32.whl", hash = "sha256:a03d1e6feb7966b417f43c3e3783188167fd69c2063e86bad31e62c4ea794cc5", size = 268193 },
|
859 |
+
{ url = "https://files.pythonhosted.org/packages/87/79/098b1b1fcb6de16149d23283a2ab5dadce6a06b864e7a182d231f57a1f9e/watchfiles-0.20.0-cp37-abi3-win_amd64.whl", hash = "sha256:eccc8942bcdc7d638a01435d915b913255bbd66f018f1af051cd8afddb339ea3", size = 276723 },
|
860 |
+
{ url = "https://files.pythonhosted.org/packages/3f/82/45dddf4f5bf8b73ba27382cebb2bb3c0ee922c7ef77d936b86276aa39dca/watchfiles-0.20.0-cp37-abi3-win_arm64.whl", hash = "sha256:b17d4176c49d207865630da5b59a91779468dd3e08692fe943064da260de2c7c", size = 265344 },
|
861 |
+
]
|
862 |
+
|
863 |
+
[[package]]
|
864 |
+
name = "websockets"
|
865 |
+
version = "14.2"
|
866 |
+
source = { registry = "https://pypi.org/simple" }
|
867 |
+
sdist = { url = "https://files.pythonhosted.org/packages/94/54/8359678c726243d19fae38ca14a334e740782336c9f19700858c4eb64a1e/websockets-14.2.tar.gz", hash = "sha256:5059ed9c54945efb321f097084b4c7e52c246f2c869815876a69d1efc4ad6eb5", size = 164394 }
|
868 |
+
wheels = [
|
869 |
+
{ url = "https://files.pythonhosted.org/packages/82/94/4f9b55099a4603ac53c2912e1f043d6c49d23e94dd82a9ce1eb554a90215/websockets-14.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:6f1372e511c7409a542291bce92d6c83320e02c9cf392223272287ce55bc224e", size = 163102 },
|
870 |
+
{ url = "https://files.pythonhosted.org/packages/8e/b7/7484905215627909d9a79ae07070057afe477433fdacb59bf608ce86365a/websockets-14.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:4da98b72009836179bb596a92297b1a61bb5a830c0e483a7d0766d45070a08ad", size = 160766 },
|
871 |
+
{ url = "https://files.pythonhosted.org/packages/a3/a4/edb62efc84adb61883c7d2c6ad65181cb087c64252138e12d655989eec05/websockets-14.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f8a86a269759026d2bde227652b87be79f8a734e582debf64c9d302faa1e9f03", size = 160998 },
|
872 |
+
{ url = "https://files.pythonhosted.org/packages/f5/79/036d320dc894b96af14eac2529967a6fc8b74f03b83c487e7a0e9043d842/websockets-14.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:86cf1aaeca909bf6815ea714d5c5736c8d6dd3a13770e885aafe062ecbd04f1f", size = 170780 },
|
873 |
+
{ url = "https://files.pythonhosted.org/packages/63/75/5737d21ee4dd7e4b9d487ee044af24a935e36a9ff1e1419d684feedcba71/websockets-14.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a9b0f6c3ba3b1240f602ebb3971d45b02cc12bd1845466dd783496b3b05783a5", size = 169717 },
|
874 |
+
{ url = "https://files.pythonhosted.org/packages/2c/3c/bf9b2c396ed86a0b4a92ff4cdaee09753d3ee389be738e92b9bbd0330b64/websockets-14.2-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:669c3e101c246aa85bc8534e495952e2ca208bd87994650b90a23d745902db9a", size = 170155 },
|
875 |
+
{ url = "https://files.pythonhosted.org/packages/75/2d/83a5aca7247a655b1da5eb0ee73413abd5c3a57fc8b92915805e6033359d/websockets-14.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:eabdb28b972f3729348e632ab08f2a7b616c7e53d5414c12108c29972e655b20", size = 170495 },
|
876 |
+
{ url = "https://files.pythonhosted.org/packages/79/dd/699238a92761e2f943885e091486378813ac8f43e3c84990bc394c2be93e/websockets-14.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:2066dc4cbcc19f32c12a5a0e8cc1b7ac734e5b64ac0a325ff8353451c4b15ef2", size = 169880 },
|
877 |
+
{ url = "https://files.pythonhosted.org/packages/c8/c9/67a8f08923cf55ce61aadda72089e3ed4353a95a3a4bc8bf42082810e580/websockets-14.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:ab95d357cd471df61873dadf66dd05dd4709cae001dd6342edafc8dc6382f307", size = 169856 },
|
878 |
+
{ url = "https://files.pythonhosted.org/packages/17/b1/1ffdb2680c64e9c3921d99db460546194c40d4acbef999a18c37aa4d58a3/websockets-14.2-cp313-cp313-win32.whl", hash = "sha256:a9e72fb63e5f3feacdcf5b4ff53199ec8c18d66e325c34ee4c551ca748623bbc", size = 163974 },
|
879 |
+
{ url = "https://files.pythonhosted.org/packages/14/13/8b7fc4cb551b9cfd9890f0fd66e53c18a06240319915533b033a56a3d520/websockets-14.2-cp313-cp313-win_amd64.whl", hash = "sha256:b439ea828c4ba99bb3176dc8d9b933392a2413c0f6b149fdcba48393f573377f", size = 164420 },
|
880 |
+
{ url = "https://files.pythonhosted.org/packages/7b/c8/d529f8a32ce40d98309f4470780631e971a5a842b60aec864833b3615786/websockets-14.2-py3-none-any.whl", hash = "sha256:7a6ceec4ea84469f15cf15807a747e9efe57e369c384fa86e022b3bea679b79b", size = 157416 },
|
881 |
+
]
|
882 |
+
|
883 |
+
[[package]]
|
884 |
+
name = "wrapt"
|
885 |
+
version = "1.17.2"
|
886 |
+
source = { registry = "https://pypi.org/simple" }
|
887 |
+
sdist = { url = "https://files.pythonhosted.org/packages/c3/fc/e91cc220803d7bc4db93fb02facd8461c37364151b8494762cc88b0fbcef/wrapt-1.17.2.tar.gz", hash = "sha256:41388e9d4d1522446fe79d3213196bd9e3b301a336965b9e27ca2788ebd122f3", size = 55531 }
|
888 |
+
wheels = [
|
889 |
+
{ url = "https://files.pythonhosted.org/packages/ce/b9/0ffd557a92f3b11d4c5d5e0c5e4ad057bd9eb8586615cdaf901409920b14/wrapt-1.17.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:6ed6ffac43aecfe6d86ec5b74b06a5be33d5bb9243d055141e8cabb12aa08125", size = 53800 },
|
890 |
+
{ url = "https://files.pythonhosted.org/packages/c0/ef/8be90a0b7e73c32e550c73cfb2fa09db62234227ece47b0e80a05073b375/wrapt-1.17.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:35621ae4c00e056adb0009f8e86e28eb4a41a4bfa8f9bfa9fca7d343fe94f998", size = 38824 },
|
891 |
+
{ url = "https://files.pythonhosted.org/packages/36/89/0aae34c10fe524cce30fe5fc433210376bce94cf74d05b0d68344c8ba46e/wrapt-1.17.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:a604bf7a053f8362d27eb9fefd2097f82600b856d5abe996d623babd067b1ab5", size = 38920 },
|
892 |
+
{ url = "https://files.pythonhosted.org/packages/3b/24/11c4510de906d77e0cfb5197f1b1445d4fec42c9a39ea853d482698ac681/wrapt-1.17.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5cbabee4f083b6b4cd282f5b817a867cf0b1028c54d445b7ec7cfe6505057cf8", size = 88690 },
|
893 |
+
{ url = "https://files.pythonhosted.org/packages/71/d7/cfcf842291267bf455b3e266c0c29dcb675b5540ee8b50ba1699abf3af45/wrapt-1.17.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:49703ce2ddc220df165bd2962f8e03b84c89fee2d65e1c24a7defff6f988f4d6", size = 80861 },
|
894 |
+
{ url = "https://files.pythonhosted.org/packages/d5/66/5d973e9f3e7370fd686fb47a9af3319418ed925c27d72ce16b791231576d/wrapt-1.17.2-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8112e52c5822fc4253f3901b676c55ddf288614dc7011634e2719718eaa187dc", size = 89174 },
|
895 |
+
{ url = "https://files.pythonhosted.org/packages/a7/d3/8e17bb70f6ae25dabc1aaf990f86824e4fd98ee9cadf197054e068500d27/wrapt-1.17.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:9fee687dce376205d9a494e9c121e27183b2a3df18037f89d69bd7b35bcf59e2", size = 86721 },
|
896 |
+
{ url = "https://files.pythonhosted.org/packages/6f/54/f170dfb278fe1c30d0ff864513cff526d624ab8de3254b20abb9cffedc24/wrapt-1.17.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:18983c537e04d11cf027fbb60a1e8dfd5190e2b60cc27bc0808e653e7b218d1b", size = 79763 },
|
897 |
+
{ url = "https://files.pythonhosted.org/packages/4a/98/de07243751f1c4a9b15c76019250210dd3486ce098c3d80d5f729cba029c/wrapt-1.17.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:703919b1633412ab54bcf920ab388735832fdcb9f9a00ae49387f0fe67dad504", size = 87585 },
|
898 |
+
{ url = "https://files.pythonhosted.org/packages/f9/f0/13925f4bd6548013038cdeb11ee2cbd4e37c30f8bfd5db9e5a2a370d6e20/wrapt-1.17.2-cp313-cp313-win32.whl", hash = "sha256:abbb9e76177c35d4e8568e58650aa6926040d6a9f6f03435b7a522bf1c487f9a", size = 36676 },
|
899 |
+
{ url = "https://files.pythonhosted.org/packages/bf/ae/743f16ef8c2e3628df3ddfd652b7d4c555d12c84b53f3d8218498f4ade9b/wrapt-1.17.2-cp313-cp313-win_amd64.whl", hash = "sha256:69606d7bb691b50a4240ce6b22ebb319c1cfb164e5f6569835058196e0f3a845", size = 38871 },
|
900 |
+
{ url = "https://files.pythonhosted.org/packages/3d/bc/30f903f891a82d402ffb5fda27ec1d621cc97cb74c16fea0b6141f1d4e87/wrapt-1.17.2-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:4a721d3c943dae44f8e243b380cb645a709ba5bd35d3ad27bc2ed947e9c68192", size = 56312 },
|
901 |
+
{ url = "https://files.pythonhosted.org/packages/8a/04/c97273eb491b5f1c918857cd26f314b74fc9b29224521f5b83f872253725/wrapt-1.17.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:766d8bbefcb9e00c3ac3b000d9acc51f1b399513f44d77dfe0eb026ad7c9a19b", size = 40062 },
|
902 |
+
{ url = "https://files.pythonhosted.org/packages/4e/ca/3b7afa1eae3a9e7fefe499db9b96813f41828b9fdb016ee836c4c379dadb/wrapt-1.17.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:e496a8ce2c256da1eb98bd15803a79bee00fc351f5dfb9ea82594a3f058309e0", size = 40155 },
|
903 |
+
{ url = "https://files.pythonhosted.org/packages/89/be/7c1baed43290775cb9030c774bc53c860db140397047cc49aedaf0a15477/wrapt-1.17.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:40d615e4fe22f4ad3528448c193b218e077656ca9ccb22ce2cb20db730f8d306", size = 113471 },
|
904 |
+
{ url = "https://files.pythonhosted.org/packages/32/98/4ed894cf012b6d6aae5f5cc974006bdeb92f0241775addad3f8cd6ab71c8/wrapt-1.17.2-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a5aaeff38654462bc4b09023918b7f21790efb807f54c000a39d41d69cf552cb", size = 101208 },
|
905 |
+
{ url = "https://files.pythonhosted.org/packages/ea/fd/0c30f2301ca94e655e5e057012e83284ce8c545df7661a78d8bfca2fac7a/wrapt-1.17.2-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9a7d15bbd2bc99e92e39f49a04653062ee6085c0e18b3b7512a4f2fe91f2d681", size = 109339 },
|
906 |
+
{ url = "https://files.pythonhosted.org/packages/75/56/05d000de894c4cfcb84bcd6b1df6214297b8089a7bd324c21a4765e49b14/wrapt-1.17.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:e3890b508a23299083e065f435a492b5435eba6e304a7114d2f919d400888cc6", size = 110232 },
|
907 |
+
{ url = "https://files.pythonhosted.org/packages/53/f8/c3f6b2cf9b9277fb0813418e1503e68414cd036b3b099c823379c9575e6d/wrapt-1.17.2-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:8c8b293cd65ad716d13d8dd3624e42e5a19cc2a2f1acc74b30c2c13f15cb61a6", size = 100476 },
|
908 |
+
{ url = "https://files.pythonhosted.org/packages/a7/b1/0bb11e29aa5139d90b770ebbfa167267b1fc548d2302c30c8f7572851738/wrapt-1.17.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:4c82b8785d98cdd9fed4cac84d765d234ed3251bd6afe34cb7ac523cb93e8b4f", size = 106377 },
|
909 |
+
{ url = "https://files.pythonhosted.org/packages/6a/e1/0122853035b40b3f333bbb25f1939fc1045e21dd518f7f0922b60c156f7c/wrapt-1.17.2-cp313-cp313t-win32.whl", hash = "sha256:13e6afb7fe71fe7485a4550a8844cc9ffbe263c0f1a1eea569bc7091d4898555", size = 37986 },
|
910 |
+
{ url = "https://files.pythonhosted.org/packages/09/5e/1655cf481e079c1f22d0cabdd4e51733679932718dc23bf2db175f329b76/wrapt-1.17.2-cp313-cp313t-win_amd64.whl", hash = "sha256:eaf675418ed6b3b31c7a989fd007fa7c3be66ce14e5c3b27336383604c9da85c", size = 40750 },
|
911 |
+
{ url = "https://files.pythonhosted.org/packages/2d/82/f56956041adef78f849db6b289b282e72b55ab8045a75abad81898c28d19/wrapt-1.17.2-py3-none-any.whl", hash = "sha256:b18f2d1533a71f069c7f82d524a52599053d4c7166e9dd374ae2136b7f40f7c8", size = 23594 },
|
912 |
+
]
|
913 |
+
|
914 |
+
[[package]]
|
915 |
+
name = "wsproto"
|
916 |
+
version = "1.2.0"
|
917 |
+
source = { registry = "https://pypi.org/simple" }
|
918 |
+
dependencies = [
|
919 |
+
{ name = "h11" },
|
920 |
+
]
|
921 |
+
sdist = { url = "https://files.pythonhosted.org/packages/c9/4a/44d3c295350d776427904d73c189e10aeae66d7f555bb2feee16d1e4ba5a/wsproto-1.2.0.tar.gz", hash = "sha256:ad565f26ecb92588a3e43bc3d96164de84cd9902482b130d0ddbaa9664a85065", size = 53425 }
|
922 |
+
wheels = [
|
923 |
+
{ url = "https://files.pythonhosted.org/packages/78/58/e860788190eba3bcce367f74d29c4675466ce8dddfba85f7827588416f01/wsproto-1.2.0-py3-none-any.whl", hash = "sha256:b9acddd652b585d75b20477888c56642fdade28bdfd3579aa24a4d2c037dd736", size = 24226 },
|
924 |
+
]
|
925 |
+
|
926 |
+
[[package]]
|
927 |
+
name = "zipp"
|
928 |
+
version = "3.21.0"
|
929 |
+
source = { registry = "https://pypi.org/simple" }
|
930 |
+
sdist = { url = "https://files.pythonhosted.org/packages/3f/50/bad581df71744867e9468ebd0bcd6505de3b275e06f202c2cb016e3ff56f/zipp-3.21.0.tar.gz", hash = "sha256:2c9958f6430a2040341a52eb608ed6dd93ef4392e02ffe219417c1b28b5dd1f4", size = 24545 }
|
931 |
+
wheels = [
|
932 |
+
{ url = "https://files.pythonhosted.org/packages/b7/1a/7e4798e9339adc931158c9d69ecc34f5e6791489d469f5e50ec15e35f458/zipp-3.21.0-py3-none-any.whl", hash = "sha256:ac1bbe05fd2991f160ebce24ffbac5f6d11d83dc90891255885223d42b3cd931", size = 9630 },
|
933 |
+
]
|