Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
117 lines (106 loc) · 3.48 KB
/
Copy pathpyproject.toml
File metadata and controls
117 lines (106 loc) · 3.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
[project]
name = "perplexity-web-mcp-cli"
version = "0.10.7"
description = "CLI, MCP server, and Anthropic/OpenAI API-compatible interface for Perplexity AI."
authors = [{ name = "Jacob BD" }]
license = "MIT"
readme = "README.md"
requires-python = ">=3.10,<3.14"
keywords = ["perplexity", "ai", "mcp", "anthropic", "api", "client"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
"curl-cffi>=0.14.0,<1.0",
"loguru>=0.7.3,<1.0",
"orjson>=3.11.6,<4.0",
"pydantic>=2.12.5,<3.0",
"tenacity>=9.1.2,<10.0",
"python-dotenv>=1.0.0,<2.0",
"rich>=13.0.0,<15.0",
"rich-click>=1.8",
"fastmcp>=2.14.4,<3.0",
"fastapi>=0.115.0,<1.0",
"uvicorn>=0.30.0,<1.0",
"httpx>=0.27.0,<1.0",
]
[dependency-groups]
dev = [
"beautifulsoup4>=4.14.3",
"jsbeautifier>=1.15.4",
"lxml>=6.0.2",
"prek>=0.3.0",
]
lint = [
"ruff>=0.14.14",
"ty>=0.0.14",
]
tests = [
"pytest>=9.0.2",
"pytest-cov>=6.0.0",
"pytest-mock>=3.14.0",
]
[project.urls]
Homepage = "https://github.com/jacob-bd/perplexity-web-mcp"
Repository = "https://github.com/jacob-bd/perplexity-web-mcp.git"
Issues = "https://github.com/jacob-bd/perplexity-web-mcp/issues"
[tool.ruff]
line-length = 120
indent-width = 4
[tool.ruff.lint]
select = [
"F", # Pyflakes: unused imports/variables, undefined names
"E", # pycodestyle errors: basic PEP 8 style violations
"W", # pycodestyle warnings: whitespace issues, blank lines
"I", # isort: import sorting and organization
"UP", # pyupgrade: upgrade syntax for newer Python versions
"B", # flake8-bugbear: common bugs and design problems
"SIM", # flake8-simplify: simplify complex code patterns
"C4", # flake8-comprehensions: better list/dict/set comprehensions
"PIE", # flake8-pie: misc. lints (unnecessary pass, duplicate keys)
"RUF", # Ruff-specific: modern Python best practices
"PERF", # Perflint: performance anti-patterns
"FURB", # refurb: modernize legacy Python idioms
"PTH", # flake8-use-pathlib: prefer pathlib over os.path
"PL", # Pylint: broad set of code quality checks
]
ignore = [
"PLR0912", # Too many branches (complex validation logic is acceptable)
"PLR0913", # Too many arguments in function definition (common in APIs)
"PLR2004", # Magic value used in comparison (too strict for general use)
]
fixable = ["ALL"]
dummy-variable-rgx = "^_$"
[tool.ruff.lint.isort]
lines-after-imports = 2
force-sort-within-sections = true
split-on-trailing-comma = true
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
docstring-code-format = true
skip-magic-trailing-comma = false
[project.scripts]
pwm = "perplexity_web_mcp.cli.main:main"
pwm-mcp = "perplexity_web_mcp.mcp:run_server"
[tool.uv.build-backend]
module-name = "perplexity_web_mcp"
[build-system]
requires = ["uv_build"]
build-backend = "uv_build"