mirror of
https://github.com/bohd4nx/FragmentAPI.git
synced 2026-07-25 06:14:29 +00:00
d2d046a2b9
- Rename app/ → fragmentapi/ for proper package naming - Add FragmentClient class with gift_premium, gift_stars, topup_ton methods - Restructure core/ → types/ (exceptions, results, constants) - Merge utils/hash.py into utils/client.py - Replace _version.py with importlib.metadata - Add input validation with min/max bounds - Add unit tests: decode, client init/cookies - Rename 002_test_hash → 003_test_hash - Clean up pyproject.toml: pin deps, production classifiers
60 lines
1.7 KiB
TOML
60 lines
1.7 KiB
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "fragmentapi"
|
|
version = "2026.1.0"
|
|
description = "Python library for the Fragment.com API — gift Telegram Stars, Premium, and top up TON Ads balance."
|
|
readme = "README.md"
|
|
license = { text = "MIT" }
|
|
requires-python = ">=3.12"
|
|
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.12",
|
|
"Framework :: AsyncIO",
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
"Topic :: Internet",
|
|
"Topic :: Office/Business :: Financial",
|
|
"Typing :: Typed",
|
|
]
|
|
dependencies = [
|
|
"httpx==0.28.1",
|
|
"tonutils[pytoniq]==2.0.0",
|
|
]
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/bohd4nx/FragmentAPI"
|
|
Repository = "https://github.com/bohd4nx/FragmentAPI"
|
|
Issues = "https://github.com/bohd4nx/FragmentAPI/issues"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["fragmentapi"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
python_files = ["[0-9][0-9][0-9]_test_*.py"]
|
|
asyncio_mode = "auto"
|
|
addopts = "-v --tb=short"
|
|
|
|
[tool.black]
|
|
line-length = 128
|
|
target-version = ["py312"]
|
|
|
|
[tool.ruff]
|
|
target-version = "py312"
|
|
line-length = 128
|
|
|
|
[tool.ruff.lint]
|
|
# E — pycodestyle errors, F — pyflakes, W — warnings, I — isort
|
|
select = ["E", "F", "W", "I"]
|
|
# E501 — line too long (covered by line-length above)
|
|
ignore = ["E501"]
|