mirror of
https://github.com/rightup/pyMC_Repeater.git
synced 2026-03-28 17:43:06 +01:00
- Refactored main.py to import HTTPStatsServer from the new path. - Introduced storage.py to handle SQLite database for packets and adverts. - Implemented methods for initializing SQLite, RRD, and MQTT. - Added functionality to record packets and adverts, including storage and metrics updates. - Created methods for retrieving packet statistics, recent packets, and filtered packets. - Implemented RRD data fetching and packet type statistics. - Added cleanup method for old data in the database.
66 lines
1.4 KiB
TOML
66 lines
1.4 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=61.0", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "pymc_repeater"
|
|
version = "1.0.3"
|
|
authors = [
|
|
{name = "Lloyd", email = "lloyd@rightup.co.uk"},
|
|
]
|
|
description = "PyMC Repeater Daemon"
|
|
readme = "README.md"
|
|
license = {text = "MIT"}
|
|
requires-python = ">=3.8"
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Operating System :: POSIX :: Linux",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.8",
|
|
"Programming Language :: Python :: 3.9",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Topic :: Communications",
|
|
"Topic :: System :: Networking",
|
|
]
|
|
keywords = ["mesh", "networking", "lora", "repeater", "daemon", "iot"]
|
|
|
|
|
|
|
|
dependencies = [
|
|
"pymc_core[hardware]>=1.0.4",
|
|
"pyyaml>=6.0.0",
|
|
"cherrypy>=18.0.0",
|
|
"rrdtool>=0.1.16",
|
|
"paho-mqtt>=1.6.0",
|
|
]
|
|
|
|
|
|
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=7.4.0",
|
|
"pytest-asyncio>=0.21.0",
|
|
"black>=23.0.0",
|
|
"isort>=5.12.0",
|
|
"mypy>=1.7.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
pymc-repeater = "repeater.main:main"
|
|
|
|
[tool.setuptools]
|
|
packages = ["repeater"]
|
|
|
|
[tool.black]
|
|
line-length = 100
|
|
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
|
|
|
|
[tool.isort]
|
|
profile = "black"
|
|
line_length = 100
|