-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
113 lines (100 loc) · 3.17 KB
/
pyproject.toml
File metadata and controls
113 lines (100 loc) · 3.17 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
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pxcli"
version = "0.5.0"
description = "CLI for Perplexity.ai with persistent authentication, encrypted tokens, streaming responses, multiple output formats, source references, thread export with date filtering, configurable URLs, logging, and automatic retry logic"
readme = "README.md"
requires-python = ">=3.12"
license = {text = "MIT"}
authors = [
{name = "Jamie Mills", email = "jamie.mills@gmail.com"},
]
keywords = ["cli", "perplexity", "ai", "query", "command-line"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
]
dependencies = [
"click>=8.0",
"cryptography>=46.0.5",
"curl-cffi>=0.14.0",
"httpx>=0.25",
"websockets>=12.0",
"rich>=13.0",
"tenacity>=8.0",
"python-dateutil>=2.8.0",
"pydantic>=2.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-mock>=3.0",
"pytest-cov>=7.0",
"pytest-asyncio>=1.2.0",
"ruff>=0.1",
"mypy>=1.0",
"pre-commit>=3.0",
]
[project.urls]
Homepage = "https://github.com/jamiemills/perplexity-cli"
Repository = "https://github.com/jamiemills/perplexity-cli"
"Bug Tracker" = "https://github.com/jamiemills/perplexity-cli/issues"
"Source Code" = "https://github.com/jamiemills/perplexity-cli"
[project.scripts]
pxcli = "perplexity_cli.cli:main"
perplexity-cli = "perplexity_cli.cli:main"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages]
find = {where = ["src"]}
[tool.setuptools.package-data]
perplexity_cli = ["resources/skill.md"]
[tool.ruff]
target-version = "py312"
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "--strict-markers -v --cov=perplexity_cli --cov-report=term-missing"
markers = [
"integration: marks tests as integration tests",
"security: marks tests as security tests",
"slow: marks tests as slow-running",
"unit: marks tests as unit tests",
"real_api: marks tests that call the real Perplexity API (skipped in CI)",
"manual: marks tests that require interactive input (run with pytest -m manual -s)",
]
filterwarnings = [
"ignore::RuntimeWarning:.*coroutine.*authenticate_with_browser.*was never awaited",
]
[tool.bandit]
exclude_dirs = ["tests"]
skips = [
"B101", # assert_used (required for pytest)
"B110", # try_except_pass (acceptable error handling pattern)
"B310", # urllib_urlopen (false positive on requests library)
]