nya-proxy 0.3.4__tar.gz → 0.3.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/PKG-INFO +1 -1
- nya_proxy-0.3.5/nya/_version.py +1 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/server/app.py +6 -10
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya_proxy.egg-info/PKG-INFO +1 -1
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/pyproject.toml +1 -1
- nya_proxy-0.3.4/nya/_version.py +0 -1
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/LICENSE +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/README.md +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/__init__.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/common/__init__.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/common/constants.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/common/exceptions.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/common/models.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/config/__init__.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/config/manager.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/config.yaml +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/core/__init__.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/core/handler.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/core/proxy.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/core/queue.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/core/request.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/core/streaming.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/dashboard/__init__.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/dashboard/api.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/html/favicon.ico +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/html/index.html +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/html/login.html +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/html/static/css/styles.css +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/html/static/js/dashboard.js +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/html/static/logo.svg +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/schema.json +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/server/__init__.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/server/auth.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/services/__init__.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/services/control.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/services/lb.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/services/limit.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/services/metrics.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/utils/__init__.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/utils/header.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya/utils/helper.py +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya_proxy.egg-info/SOURCES.txt +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya_proxy.egg-info/dependency_links.txt +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya_proxy.egg-info/entry_points.txt +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya_proxy.egg-info/requires.txt +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/nya_proxy.egg-info/top_level.txt +0 -0
- {nya_proxy-0.3.4 → nya_proxy-0.3.5}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nya-proxy
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.5
|
|
4
4
|
Summary: A lightweight, flexible API proxy with dynamic token rotation, load balancing, and rate limiting capabilities.
|
|
5
5
|
Author-email: "Nya Foundation Team (k3scat)" <k3scat@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.3.5"
|
|
@@ -4,20 +4,19 @@ NyaProxy - A simple low-level API proxy with dynamic token rotation.
|
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
import argparse
|
|
8
|
+
import contextlib
|
|
9
|
+
import logging
|
|
7
10
|
import os
|
|
8
11
|
import sys
|
|
9
|
-
|
|
10
|
-
import logging
|
|
11
|
-
import uvicorn
|
|
12
|
-
import argparse
|
|
13
12
|
import traceback
|
|
14
|
-
import contextlib
|
|
15
13
|
|
|
16
|
-
|
|
14
|
+
import uvicorn
|
|
17
15
|
from fastapi import FastAPI, Request, Response
|
|
18
|
-
from
|
|
16
|
+
from loguru import logger
|
|
19
17
|
from starlette.middleware.base import BaseHTTPMiddleware
|
|
20
18
|
from starlette.middleware.cors import CORSMiddleware
|
|
19
|
+
from starlette.responses import JSONResponse
|
|
21
20
|
|
|
22
21
|
from .. import __version__
|
|
23
22
|
from ..common.constants import (
|
|
@@ -553,9 +552,6 @@ def main():
|
|
|
553
552
|
reload=True,
|
|
554
553
|
reload_includes=[WATCH_FILE],
|
|
555
554
|
timeout_keep_alive=30,
|
|
556
|
-
limit_concurrency=1000,
|
|
557
|
-
limit_max_requests=5000,
|
|
558
|
-
backlog=2048,
|
|
559
555
|
server_header=False,
|
|
560
556
|
)
|
|
561
557
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nya-proxy
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.5
|
|
4
4
|
Summary: A lightweight, flexible API proxy with dynamic token rotation, load balancing, and rate limiting capabilities.
|
|
5
5
|
Author-email: "Nya Foundation Team (k3scat)" <k3scat@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "nya-proxy"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.5"
|
|
8
8
|
description = "A lightweight, flexible API proxy with dynamic token rotation, load balancing, and rate limiting capabilities."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [
|
nya_proxy-0.3.4/nya/_version.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.3.4"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|