cevheri commited on
Commit
931a672
·
1 Parent(s): eb24f01

script: add api-key installation and usage

Browse files
.gitignore CHANGED
@@ -15,3 +15,6 @@ app.log
15
  # Environment variables
16
  .env
17
 
 
 
 
 
15
  # Environment variables
16
  .env
17
 
18
+ # API key
19
+ api_key.txt
20
+
README.md CHANGED
@@ -8,7 +8,7 @@ pinned: false
8
  short_description: OpenAI compatible Chatbot API
9
  ---
10
 
11
- # OpenAI Compatible Chatbot API
12
 
13
  A FastAPI based OpenAI compatible Chatbot API with Visualization.
14
 
@@ -54,4 +54,31 @@ uv sync
54
  3. Run the server:
55
  ```bash
56
  uv run uvicorn app:app --reload
57
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  short_description: OpenAI compatible Chatbot API
9
  ---
10
 
11
+ # OpenAI Compatible Chatbot API Template
12
 
13
  A FastAPI based OpenAI compatible Chatbot API with Visualization.
14
 
 
54
  3. Run the server:
55
  ```bash
56
  uv run uvicorn app:app --reload
57
+ ```
58
+
59
+ ## Usage
60
+
61
+ ### 🔑 API Key Generation
62
+
63
+ ```bash
64
+ ./scripts/api_key_generator.sh <username> <secret_key>
65
+ ```
66
+
67
+ ```text
68
+ API Key generated:
69
+ Username: template
70
+ API Key: sk-template-token
71
+
72
+ API Key saved to api_key.txt
73
+ ```
74
+
75
+ ### 🔑 API Key Authentication
76
+
77
+ ```bash
78
+ curl -X POST "http://localhost:8000/v1/chat/completions" \
79
+ -H "Authorization: Bearer sk-template-token" \
80
+ -H "Content-Type: application/json" \
81
+ -d '{"model": "gpt-3.5-turbo", "messages": [{"role": "user", "content": "Hello!"}]}'
82
+ ```
83
+
84
+
pyproject.toml CHANGED
@@ -12,5 +12,6 @@ dependencies = [
12
  "pydantic>=2.11.4",
13
  "pydantic-settings>=2.9.1",
14
  "pymongo>=4.13.0",
 
15
  "uvicorn>=0.34.2",
16
  ]
 
12
  "pydantic>=2.11.4",
13
  "pydantic-settings>=2.9.1",
14
  "pymongo>=4.13.0",
15
+ "requests>=2.32.3",
16
  "uvicorn>=0.34.2",
17
  ]
scripts/api_key_genenerator.py ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ API Key Generator Script
3
+
4
+ This script is used to generate API keys for new users.
5
+ API keys are generated in the format sk-{username}-{base64_encoded_data}.
6
+ The encoded data includes username, creation timestamp, and HMAC signature.
7
+
8
+ Usage:
9
+ python generate_api_key.py <username> <secret_key>
10
+
11
+ Example:
12
+ python generate_api_key.py new_user mock-secret-key-123456789
13
+ """
14
+
15
+ import base64
16
+ import json
17
+ import sys
18
+ import argparse
19
+ import hmac
20
+ import hashlib
21
+ from datetime import datetime
22
+
23
+ def generate_api_key(username: str, secret_key: str) -> str:
24
+ """
25
+ Generates an API key for the given username using a secret key.
26
+
27
+ Args:
28
+ username (str): Username to generate API key for
29
+ secret_key (str): Secret key for API key generation
30
+
31
+ Returns:
32
+ str: Generated API_KEY (ACCESS_KEY, ACCESS_TOKEN)
33
+ """
34
+ # Create encoded API key with timestamp
35
+ data = {
36
+ "username": username,
37
+ "created_at": int(datetime.now().timestamp())
38
+ }
39
+
40
+ # Add HMAC signature for additional security
41
+ signature = hmac.new(
42
+ secret_key.encode(),
43
+ json.dumps(data).encode(),
44
+ hashlib.sha256
45
+ ).hexdigest()
46
+
47
+ data["signature"] = signature
48
+
49
+ # Create API key
50
+ api_key = f"sk-{username}-" + base64.b64encode(
51
+ json.dumps(data).encode()
52
+ ).decode()
53
+
54
+ return api_key
55
+
56
+ def main():
57
+ parser = argparse.ArgumentParser(description="API Key Generator")
58
+ parser.add_argument("username", help="Username to generate API key for")
59
+ parser.add_argument("secret_key", help="Secret key for API key generation")
60
+ args = parser.parse_args()
61
+
62
+ try:
63
+ api_key = generate_api_key(args.username, args.secret_key)
64
+ print("\nAPI Key generated:")
65
+ print(f"Username: {args.username}")
66
+ print(f"API Key: {api_key}")
67
+ print("\nUsage example:")
68
+ print('curl -X POST "http://localhost:8000/v1/chat/completions" \\')
69
+ print(f' -H "Authorization: Bearer {api_key}" \\')
70
+ print(' -H "Content-Type: application/json" \\')
71
+ print(' -d \'{"model": "gpt-3.5-turbo", "messages": [{"role": "user", "content": "Hello!"}]}\'')
72
+
73
+ # Save the API key to a file
74
+ with open("api_key.txt", "w") as f:
75
+ f.write(api_key)
76
+ print("\nAPI Key saved to api_key.txt")
77
+ except argparse.ArgumentError as e:
78
+ print("Please provide a username and secret key", file=sys.stderr)
79
+ sys.exit(1)
80
+ except Exception as e:
81
+ print(f"Error: {str(e)}", file=sys.stderr)
82
+ sys.exit(1)
83
+
84
+ if __name__ == "__main__":
85
+ main()
scripts/api_key_generator.sh ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # sudo apt install jq
4
+ # chmod +x scripts/api_key_generator.sh
5
+ # ./scripts/api_key_generator.sh admin
6
+
7
+ # Usage: ./generate_api_key.sh <username> <secret_key>
8
+
9
+ # Check arguments
10
+ if [ "$#" -ne 2 ]; then
11
+ echo "Please provide a username and secret key."
12
+ echo "Example usage: ./generate_api_key.sh admin your-secret-key"
13
+ exit 1
14
+ fi
15
+
16
+ USERNAME="$1"
17
+ SECRET_KEY="$2"
18
+ TIMESTAMP=$(date +%s)
19
+
20
+ # Create JSON payload
21
+ JSON_PAYLOAD=$(jq -n \
22
+ --arg username "$USERNAME" \
23
+ --arg created_at "$TIMESTAMP" \
24
+ '{username: $username, created_at: ($created_at | tonumber)}'
25
+ )
26
+
27
+ # Generate HMAC signature
28
+ SIGNATURE=$(echo -n "$JSON_PAYLOAD" | openssl dgst -sha256 -hmac "$SECRET_KEY" | sed 's/^.* //')
29
+
30
+ # Add signature to JSON
31
+ JSON_WITH_SIG=$(echo "$JSON_PAYLOAD" | jq --arg sig "$SIGNATURE" '. + {signature: $sig}')
32
+
33
+ # Base64 encode the JSON
34
+ ENCODED=$(echo -n "$JSON_WITH_SIG" | base64 | tr -d '\n')
35
+
36
+ # Build the API key
37
+ API_KEY="sk-${USERNAME}-${ENCODED}"
38
+
39
+ # Output
40
+ echo
41
+ echo "API Key generated:"
42
+ echo "Username: $USERNAME"
43
+ echo "API Key: $API_KEY"
44
+
45
+ # Save to file
46
+ echo "Username: $USERNAME" >> api_key.txt
47
+ echo "API Key: $API_KEY" >> api_key.txt
48
+ echo "Timestamp: $TIMESTAMP" >> api_key.txt
49
+ echo "--------------------------------" >> api_key.txt
50
+ echo
51
+ echo "API Key saved to api_key.txt"
52
+
53
+ # Usage example
54
+ cat <<EOF
55
+
56
+ Usage example:
57
+ curl -X POST "http://localhost:8000/v1/chat/completions" \\
58
+ -H "Authorization: Bearer $API_KEY" \\
59
+ -H "Content-Type: application/json" \\
60
+ -d '{"model": "gpt-3.5-turbo", "messages": [{"role": "user", "content": "Hello!"}]}'
61
+
62
+ EOF
uv.lock CHANGED
@@ -25,6 +25,50 @@ wheels = [
25
  { url = "https://files.pythonhosted.org/packages/a1/ee/48ca1a7c89ffec8b6a0c5d02b89c305671d5ffd8d3c94acf8b8c408575bb/anyio-4.9.0-py3-none-any.whl", hash = "sha256:9f76d541cad6e36af7beb62e978876f3b41e3e04f2c1fbf0884604c0a9c4d93c", size = 100916 },
26
  ]
27
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  [[package]]
29
  name = "click"
30
  version = "8.2.1"
@@ -146,6 +190,7 @@ dependencies = [
146
  { name = "pydantic" },
147
  { name = "pydantic-settings" },
148
  { name = "pymongo" },
 
149
  { name = "uvicorn" },
150
  ]
151
 
@@ -158,6 +203,7 @@ requires-dist = [
158
  { name = "pydantic", specifier = ">=2.11.4" },
159
  { name = "pydantic-settings", specifier = ">=2.9.1" },
160
  { name = "pymongo", specifier = ">=4.13.0" },
 
161
  { name = "uvicorn", specifier = ">=0.34.2" },
162
  ]
163
 
@@ -279,6 +325,21 @@ wheels = [
279
  { url = "https://files.pythonhosted.org/packages/1e/18/98a99ad95133c6a6e2005fe89faedf294a748bd5dc803008059409ac9b1e/python_dotenv-1.1.0-py3-none-any.whl", hash = "sha256:d7c01d9e2293916c18baf562d95698754b0dbbb5e74d457c45d4f6561fb9d55d", size = 20256 },
280
  ]
281
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
282
  [[package]]
283
  name = "sniffio"
284
  version = "1.3.1"
@@ -321,6 +382,15 @@ wheels = [
321
  { url = "https://files.pythonhosted.org/packages/31/08/aa4fdfb71f7de5176385bd9e90852eaf6b5d622735020ad600f2bab54385/typing_inspection-0.4.0-py3-none-any.whl", hash = "sha256:50e72559fcd2a6367a19f7a7e610e6afcb9fac940c650290eed893d61386832f", size = 14125 },
322
  ]
323
 
 
 
 
 
 
 
 
 
 
324
  [[package]]
325
  name = "uvicorn"
326
  version = "0.34.2"
 
25
  { url = "https://files.pythonhosted.org/packages/a1/ee/48ca1a7c89ffec8b6a0c5d02b89c305671d5ffd8d3c94acf8b8c408575bb/anyio-4.9.0-py3-none-any.whl", hash = "sha256:9f76d541cad6e36af7beb62e978876f3b41e3e04f2c1fbf0884604c0a9c4d93c", size = 100916 },
26
  ]
27
 
28
+ [[package]]
29
+ name = "certifi"
30
+ version = "2025.4.26"
31
+ source = { registry = "https://pypi.org/simple" }
32
+ sdist = { url = "https://files.pythonhosted.org/packages/e8/9e/c05b3920a3b7d20d3d3310465f50348e5b3694f4f88c6daf736eef3024c4/certifi-2025.4.26.tar.gz", hash = "sha256:0a816057ea3cdefcef70270d2c515e4506bbc954f417fa5ade2021213bb8f0c6", size = 160705 }
33
+ wheels = [
34
+ { url = "https://files.pythonhosted.org/packages/4a/7e/3db2bd1b1f9e95f7cddca6d6e75e2f2bd9f51b1246e546d88addca0106bd/certifi-2025.4.26-py3-none-any.whl", hash = "sha256:30350364dfe371162649852c63336a15c70c6510c2ad5015b21c2345311805f3", size = 159618 },
35
+ ]
36
+
37
+ [[package]]
38
+ name = "charset-normalizer"
39
+ version = "3.4.2"
40
+ source = { registry = "https://pypi.org/simple" }
41
+ sdist = { url = "https://files.pythonhosted.org/packages/e4/33/89c2ced2b67d1c2a61c19c6751aa8902d46ce3dacb23600a283619f5a12d/charset_normalizer-3.4.2.tar.gz", hash = "sha256:5baececa9ecba31eff645232d59845c07aa030f0c81ee70184a90d35099a0e63", size = 126367 }
42
+ wheels = [
43
+ { url = "https://files.pythonhosted.org/packages/d7/a4/37f4d6035c89cac7930395a35cc0f1b872e652eaafb76a6075943754f095/charset_normalizer-3.4.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:0c29de6a1a95f24b9a1aa7aefd27d2487263f00dfd55a77719b530788f75cff7", size = 199936 },
44
+ { url = "https://files.pythonhosted.org/packages/ee/8a/1a5e33b73e0d9287274f899d967907cd0bf9c343e651755d9307e0dbf2b3/charset_normalizer-3.4.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cddf7bd982eaa998934a91f69d182aec997c6c468898efe6679af88283b498d3", size = 143790 },
45
+ { url = "https://files.pythonhosted.org/packages/66/52/59521f1d8e6ab1482164fa21409c5ef44da3e9f653c13ba71becdd98dec3/charset_normalizer-3.4.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:fcbe676a55d7445b22c10967bceaaf0ee69407fbe0ece4d032b6eb8d4565982a", size = 153924 },
46
+ { url = "https://files.pythonhosted.org/packages/86/2d/fb55fdf41964ec782febbf33cb64be480a6b8f16ded2dbe8db27a405c09f/charset_normalizer-3.4.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d41c4d287cfc69060fa91cae9683eacffad989f1a10811995fa309df656ec214", size = 146626 },
47
+ { url = "https://files.pythonhosted.org/packages/8c/73/6ede2ec59bce19b3edf4209d70004253ec5f4e319f9a2e3f2f15601ed5f7/charset_normalizer-3.4.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4e594135de17ab3866138f496755f302b72157d115086d100c3f19370839dd3a", size = 148567 },
48
+ { url = "https://files.pythonhosted.org/packages/09/14/957d03c6dc343c04904530b6bef4e5efae5ec7d7990a7cbb868e4595ee30/charset_normalizer-3.4.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:cf713fe9a71ef6fd5adf7a79670135081cd4431c2943864757f0fa3a65b1fafd", size = 150957 },
49
+ { url = "https://files.pythonhosted.org/packages/0d/c8/8174d0e5c10ccebdcb1b53cc959591c4c722a3ad92461a273e86b9f5a302/charset_normalizer-3.4.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:a370b3e078e418187da8c3674eddb9d983ec09445c99a3a263c2011993522981", size = 145408 },
50
+ { url = "https://files.pythonhosted.org/packages/58/aa/8904b84bc8084ac19dc52feb4f5952c6df03ffb460a887b42615ee1382e8/charset_normalizer-3.4.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:a955b438e62efdf7e0b7b52a64dc5c3396e2634baa62471768a64bc2adb73d5c", size = 153399 },
51
+ { url = "https://files.pythonhosted.org/packages/c2/26/89ee1f0e264d201cb65cf054aca6038c03b1a0c6b4ae998070392a3ce605/charset_normalizer-3.4.2-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:7222ffd5e4de8e57e03ce2cef95a4c43c98fcb72ad86909abdfc2c17d227fc1b", size = 156815 },
52
+ { url = "https://files.pythonhosted.org/packages/fd/07/68e95b4b345bad3dbbd3a8681737b4338ff2c9df29856a6d6d23ac4c73cb/charset_normalizer-3.4.2-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:bee093bf902e1d8fc0ac143c88902c3dfc8941f7ea1d6a8dd2bcb786d33db03d", size = 154537 },
53
+ { url = "https://files.pythonhosted.org/packages/77/1a/5eefc0ce04affb98af07bc05f3bac9094513c0e23b0562d64af46a06aae4/charset_normalizer-3.4.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:dedb8adb91d11846ee08bec4c8236c8549ac721c245678282dcb06b221aab59f", size = 149565 },
54
+ { url = "https://files.pythonhosted.org/packages/37/a0/2410e5e6032a174c95e0806b1a6585eb21e12f445ebe239fac441995226a/charset_normalizer-3.4.2-cp312-cp312-win32.whl", hash = "sha256:db4c7bf0e07fc3b7d89ac2a5880a6a8062056801b83ff56d8464b70f65482b6c", size = 98357 },
55
+ { url = "https://files.pythonhosted.org/packages/6c/4f/c02d5c493967af3eda9c771ad4d2bbc8df6f99ddbeb37ceea6e8716a32bc/charset_normalizer-3.4.2-cp312-cp312-win_amd64.whl", hash = "sha256:5a9979887252a82fefd3d3ed2a8e3b937a7a809f65dcb1e068b090e165bbe99e", size = 105776 },
56
+ { url = "https://files.pythonhosted.org/packages/ea/12/a93df3366ed32db1d907d7593a94f1fe6293903e3e92967bebd6950ed12c/charset_normalizer-3.4.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:926ca93accd5d36ccdabd803392ddc3e03e6d4cd1cf17deff3b989ab8e9dbcf0", size = 199622 },
57
+ { url = "https://files.pythonhosted.org/packages/04/93/bf204e6f344c39d9937d3c13c8cd5bbfc266472e51fc8c07cb7f64fcd2de/charset_normalizer-3.4.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:eba9904b0f38a143592d9fc0e19e2df0fa2e41c3c3745554761c5f6447eedabf", size = 143435 },
58
+ { url = "https://files.pythonhosted.org/packages/22/2a/ea8a2095b0bafa6c5b5a55ffdc2f924455233ee7b91c69b7edfcc9e02284/charset_normalizer-3.4.2-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3fddb7e2c84ac87ac3a947cb4e66d143ca5863ef48e4a5ecb83bd48619e4634e", size = 153653 },
59
+ { url = "https://files.pythonhosted.org/packages/b6/57/1b090ff183d13cef485dfbe272e2fe57622a76694061353c59da52c9a659/charset_normalizer-3.4.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:98f862da73774290f251b9df8d11161b6cf25b599a66baf087c1ffe340e9bfd1", size = 146231 },
60
+ { url = "https://files.pythonhosted.org/packages/e2/28/ffc026b26f441fc67bd21ab7f03b313ab3fe46714a14b516f931abe1a2d8/charset_normalizer-3.4.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c9379d65defcab82d07b2a9dfbfc2e95bc8fe0ebb1b176a3190230a3ef0e07c", size = 148243 },
61
+ { url = "https://files.pythonhosted.org/packages/c0/0f/9abe9bd191629c33e69e47c6ef45ef99773320e9ad8e9cb08b8ab4a8d4cb/charset_normalizer-3.4.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e635b87f01ebc977342e2697d05b56632f5f879a4f15955dfe8cef2448b51691", size = 150442 },
62
+ { url = "https://files.pythonhosted.org/packages/67/7c/a123bbcedca91d5916c056407f89a7f5e8fdfce12ba825d7d6b9954a1a3c/charset_normalizer-3.4.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:1c95a1e2902a8b722868587c0e1184ad5c55631de5afc0eb96bc4b0d738092c0", size = 145147 },
63
+ { url = "https://files.pythonhosted.org/packages/ec/fe/1ac556fa4899d967b83e9893788e86b6af4d83e4726511eaaad035e36595/charset_normalizer-3.4.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:ef8de666d6179b009dce7bcb2ad4c4a779f113f12caf8dc77f0162c29d20490b", size = 153057 },
64
+ { url = "https://files.pythonhosted.org/packages/2b/ff/acfc0b0a70b19e3e54febdd5301a98b72fa07635e56f24f60502e954c461/charset_normalizer-3.4.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:32fc0341d72e0f73f80acb0a2c94216bd704f4f0bce10aedea38f30502b271ff", size = 156454 },
65
+ { url = "https://files.pythonhosted.org/packages/92/08/95b458ce9c740d0645feb0e96cea1f5ec946ea9c580a94adfe0b617f3573/charset_normalizer-3.4.2-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:289200a18fa698949d2b39c671c2cc7a24d44096784e76614899a7ccf2574b7b", size = 154174 },
66
+ { url = "https://files.pythonhosted.org/packages/78/be/8392efc43487ac051eee6c36d5fbd63032d78f7728cb37aebcc98191f1ff/charset_normalizer-3.4.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4a476b06fbcf359ad25d34a057b7219281286ae2477cc5ff5e3f70a246971148", size = 149166 },
67
+ { url = "https://files.pythonhosted.org/packages/44/96/392abd49b094d30b91d9fbda6a69519e95802250b777841cf3bda8fe136c/charset_normalizer-3.4.2-cp313-cp313-win32.whl", hash = "sha256:aaeeb6a479c7667fbe1099af9617c83aaca22182d6cf8c53966491a0f1b7ffb7", size = 98064 },
68
+ { url = "https://files.pythonhosted.org/packages/e9/b0/0200da600134e001d91851ddc797809e2fe0ea72de90e09bec5a2fbdaccb/charset_normalizer-3.4.2-cp313-cp313-win_amd64.whl", hash = "sha256:aa6af9e7d59f9c12b33ae4e9450619cf2488e2bbe9b44030905877f0b2324980", size = 105641 },
69
+ { url = "https://files.pythonhosted.org/packages/20/94/c5790835a017658cbfabd07f3bfb549140c3ac458cfc196323996b10095a/charset_normalizer-3.4.2-py3-none-any.whl", hash = "sha256:7f56930ab0abd1c45cd15be65cc741c28b1c9a34876ce8c17a2fa107810c0af0", size = 52626 },
70
+ ]
71
+
72
  [[package]]
73
  name = "click"
74
  version = "8.2.1"
 
190
  { name = "pydantic" },
191
  { name = "pydantic-settings" },
192
  { name = "pymongo" },
193
+ { name = "requests" },
194
  { name = "uvicorn" },
195
  ]
196
 
 
203
  { name = "pydantic", specifier = ">=2.11.4" },
204
  { name = "pydantic-settings", specifier = ">=2.9.1" },
205
  { name = "pymongo", specifier = ">=4.13.0" },
206
+ { name = "requests", specifier = ">=2.32.3" },
207
  { name = "uvicorn", specifier = ">=0.34.2" },
208
  ]
209
 
 
325
  { url = "https://files.pythonhosted.org/packages/1e/18/98a99ad95133c6a6e2005fe89faedf294a748bd5dc803008059409ac9b1e/python_dotenv-1.1.0-py3-none-any.whl", hash = "sha256:d7c01d9e2293916c18baf562d95698754b0dbbb5e74d457c45d4f6561fb9d55d", size = 20256 },
326
  ]
327
 
328
+ [[package]]
329
+ name = "requests"
330
+ version = "2.32.3"
331
+ source = { registry = "https://pypi.org/simple" }
332
+ dependencies = [
333
+ { name = "certifi" },
334
+ { name = "charset-normalizer" },
335
+ { name = "idna" },
336
+ { name = "urllib3" },
337
+ ]
338
+ sdist = { url = "https://files.pythonhosted.org/packages/63/70/2bf7780ad2d390a8d301ad0b550f1581eadbd9a20f896afe06353c2a2913/requests-2.32.3.tar.gz", hash = "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760", size = 131218 }
339
+ wheels = [
340
+ { url = "https://files.pythonhosted.org/packages/f9/9b/335f9764261e915ed497fcdeb11df5dfd6f7bf257d4a6a2a686d80da4d54/requests-2.32.3-py3-none-any.whl", hash = "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6", size = 64928 },
341
+ ]
342
+
343
  [[package]]
344
  name = "sniffio"
345
  version = "1.3.1"
 
382
  { url = "https://files.pythonhosted.org/packages/31/08/aa4fdfb71f7de5176385bd9e90852eaf6b5d622735020ad600f2bab54385/typing_inspection-0.4.0-py3-none-any.whl", hash = "sha256:50e72559fcd2a6367a19f7a7e610e6afcb9fac940c650290eed893d61386832f", size = 14125 },
383
  ]
384
 
385
+ [[package]]
386
+ name = "urllib3"
387
+ version = "2.4.0"
388
+ source = { registry = "https://pypi.org/simple" }
389
+ sdist = { url = "https://files.pythonhosted.org/packages/8a/78/16493d9c386d8e60e442a35feac5e00f0913c0f4b7c217c11e8ec2ff53e0/urllib3-2.4.0.tar.gz", hash = "sha256:414bc6535b787febd7567804cc015fee39daab8ad86268f1310a9250697de466", size = 390672 }
390
+ wheels = [
391
+ { url = "https://files.pythonhosted.org/packages/6b/11/cc635220681e93a0183390e26485430ca2c7b5f9d33b15c74c2861cb8091/urllib3-2.4.0-py3-none-any.whl", hash = "sha256:4e16665048960a0900c702d4a66415956a584919c03361cac9f1df5c5dd7e813", size = 128680 },
392
+ ]
393
+
394
  [[package]]
395
  name = "uvicorn"
396
  version = "0.34.2"