mirror of
https://github.com/bohd4nx/FragmentAPI.git
synced 2026-07-25 14:24:31 +00:00
78 lines
2.3 KiB
TOML
78 lines
2.3 KiB
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "pyfragment"
|
|
version = "2026.2.0"
|
|
description = "Async Python client for the Fragment API — a unified toolkit to manage Telegram assets: purchase Stars and Premium, top up TON and Ads balances, run giveaways, manage anonymous numbers, and explore the marketplace for usernames, numbers, and gifts."
|
|
readme = "README.md"
|
|
license = { text = "MIT" }
|
|
requires-python = ">=3.10"
|
|
authors = [{ name = "bohd4nx", url = "https://github.com/bohd4nx" }]
|
|
keywords = ["fragment", "telegram", "ton", "stars", "premium", "crypto", "blockchain"]
|
|
classifiers = [
|
|
"Development Status :: 5 - Production/Stable",
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Natural Language :: English",
|
|
"Operating System :: OS Independent",
|
|
"Programming Language :: Python :: 3 :: Only",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Framework :: AsyncIO",
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
"Topic :: Internet",
|
|
"Topic :: Office/Business :: Financial",
|
|
"Typing :: Typed",
|
|
]
|
|
dependencies = [
|
|
"httpx>=0.25",
|
|
"rookiepy>=0.5.6",
|
|
"tonutils>=2.0.1",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest",
|
|
"pytest-asyncio",
|
|
"pytest-mock",
|
|
"mypy",
|
|
"ruff",
|
|
]
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/bohd4nx/pyfragment"
|
|
Repository = "https://github.com/bohd4nx/pyfragment"
|
|
Issues = "https://github.com/bohd4nx/pyfragment/issues"
|
|
Changelog = "https://github.com/bohd4nx/pyfragment/blob/master/CHANGELOG.md"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["pyfragment"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
python_files = ["[0-9][0-9][0-9]_test_*.py"]
|
|
asyncio_mode = "auto"
|
|
addopts = "-v --tb=short"
|
|
|
|
[tool.ruff]
|
|
line-length = 128
|
|
target-version = "py312"
|
|
|
|
[tool.ruff.lint]
|
|
# E — pycodestyle errors, F — pyflakes, W — warnings, I — isort, UP — pyupgrade
|
|
select = ["E", "F", "W", "I", "UP"]
|
|
# E501 — line too long (covered by line-length above)
|
|
# UP017 — use datetime.UTC (only available in Python 3.11+, we support 3.10)
|
|
ignore = ["E501", "UP017"]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"tests/*" = ["E402"]
|
|
"systests/*" = ["E402"]
|
|
|
|
[tool.mypy]
|
|
python_version = "3.10"
|
|
strict = true
|