piholelongtermstats 0.2.3__tar.gz → 0.2.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. {piholelongtermstats-0.2.3 → piholelongtermstats-0.2.4}/PKG-INFO +27 -5
  2. {piholelongtermstats-0.2.3 → piholelongtermstats-0.2.4}/README.md +23 -1
  3. piholelongtermstats-0.2.4/piholelongtermstats/__init__.py +3 -0
  4. {piholelongtermstats-0.2.3 → piholelongtermstats-0.2.4}/piholelongtermstats/app.py +2 -2
  5. {piholelongtermstats-0.2.3 → piholelongtermstats-0.2.4}/piholelongtermstats/assets/style.css +36 -30
  6. {piholelongtermstats-0.2.3 → piholelongtermstats-0.2.4}/piholelongtermstats/db.py +1 -1
  7. {piholelongtermstats-0.2.3 → piholelongtermstats-0.2.4}/piholelongtermstats/plot.py +3 -2
  8. {piholelongtermstats-0.2.3 → piholelongtermstats-0.2.4}/piholelongtermstats/process.py +1 -1
  9. {piholelongtermstats-0.2.3 → piholelongtermstats-0.2.4}/piholelongtermstats/stats.py +1 -1
  10. {piholelongtermstats-0.2.3 → piholelongtermstats-0.2.4}/piholelongtermstats.egg-info/PKG-INFO +27 -5
  11. {piholelongtermstats-0.2.3 → piholelongtermstats-0.2.4}/piholelongtermstats.egg-info/requires.txt +3 -3
  12. {piholelongtermstats-0.2.3 → piholelongtermstats-0.2.4}/pyproject.toml +4 -4
  13. piholelongtermstats-0.2.3/piholelongtermstats/__init__.py +0 -3
  14. {piholelongtermstats-0.2.3 → piholelongtermstats-0.2.4}/LICENSE +0 -0
  15. {piholelongtermstats-0.2.3 → piholelongtermstats-0.2.4}/piholelongtermstats/assets/favicon.ico +0 -0
  16. {piholelongtermstats-0.2.3 → piholelongtermstats-0.2.4}/piholelongtermstats/assets/logo_phlts.png +0 -0
  17. {piholelongtermstats-0.2.3 → piholelongtermstats-0.2.4}/piholelongtermstats.egg-info/SOURCES.txt +0 -0
  18. {piholelongtermstats-0.2.3 → piholelongtermstats-0.2.4}/piholelongtermstats.egg-info/dependency_links.txt +0 -0
  19. {piholelongtermstats-0.2.3 → piholelongtermstats-0.2.4}/piholelongtermstats.egg-info/entry_points.txt +0 -0
  20. {piholelongtermstats-0.2.3 → piholelongtermstats-0.2.4}/piholelongtermstats.egg-info/top_level.txt +0 -0
  21. {piholelongtermstats-0.2.3 → piholelongtermstats-0.2.4}/setup.cfg +0 -0
  22. {piholelongtermstats-0.2.3 → piholelongtermstats-0.2.4}/tests/test_db.py +0 -0
  23. {piholelongtermstats-0.2.3 → piholelongtermstats-0.2.4}/tests/test_plot.py +0 -0
  24. {piholelongtermstats-0.2.3 → piholelongtermstats-0.2.4}/tests/test_process.py +0 -0
  25. {piholelongtermstats-0.2.3 → piholelongtermstats-0.2.4}/tests/test_stats.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: piholelongtermstats
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: A dashboard to explore long-term DNS query data from Pi-hole FTL database files.
5
5
  Author-email: Davis Thomas Daniel <davisthomasdaniel@gmail.com>
6
6
  Maintainer-email: Davis Thomas Daniel <davisthomasdaniel@gmail.com>
@@ -14,10 +14,10 @@ Classifier: Programming Language :: Python
14
14
  Requires-Python: >=3.11
15
15
  Description-Content-Type: text/markdown
16
16
  License-File: LICENSE
17
- Requires-Dist: dash==3.0.4
18
- Requires-Dist: pandas==2.2.3
17
+ Requires-Dist: dash==4.1.0
18
+ Requires-Dist: pandas==3.0.3
19
19
  Requires-Dist: plotly==6.0.1
20
- Requires-Dist: psutil==7.1.2
20
+ Requires-Dist: psutil==7.2.2
21
21
  Provides-Extra: develop
22
22
  Requires-Dist: pytest==9.0.1; extra == "develop"
23
23
  Requires-Dist: ruff; extra == "develop"
@@ -26,7 +26,7 @@ Requires-Dist: twine==6.2.0; extra == "develop"
26
26
  Requires-Dist: pytest-cov==7.0.0; extra == "develop"
27
27
  Dynamic: license-file
28
28
 
29
- # Pi Hole Long Term Statistics v.0.2.3
29
+ # Pi Hole Long Term Statistics v.0.2.4
30
30
 
31
31
  <div align="center">
32
32
 
@@ -285,6 +285,28 @@ You can configure the application using command-line arguments or environment va
285
285
  ## 🧑‍💻 Contributing
286
286
 
287
287
  Any contribution, feature ideas or bug fixes are always welcome.
288
+ This project uses uv for dependency management.
289
+
290
+ ### Development workflow
291
+ * Clone the repository.
292
+
293
+ ```bash
294
+ git clone https://github.com/davistdaniel/PiHoleLongTermStats.git
295
+ cd PiHoleLongTermStats
296
+ ```
297
+
298
+ * From the project directory (with uv already installed), install dependencies:
299
+
300
+ ```bash
301
+ uv sync --extra develop
302
+ ```
303
+ * Run the test suite:
304
+
305
+ ```bash
306
+ uv run python -m pytest tests/ -v -s --cov=piholelongtermstats --cov-report term-missing
307
+ ```
308
+ * Make your changes.
309
+ * Submit a pull request.
288
310
 
289
311
  ## Star History
290
312
 
@@ -1,4 +1,4 @@
1
- # Pi Hole Long Term Statistics v.0.2.3
1
+ # Pi Hole Long Term Statistics v.0.2.4
2
2
 
3
3
  <div align="center">
4
4
 
@@ -257,6 +257,28 @@ You can configure the application using command-line arguments or environment va
257
257
  ## 🧑‍💻 Contributing
258
258
 
259
259
  Any contribution, feature ideas or bug fixes are always welcome.
260
+ This project uses uv for dependency management.
261
+
262
+ ### Development workflow
263
+ * Clone the repository.
264
+
265
+ ```bash
266
+ git clone https://github.com/davistdaniel/PiHoleLongTermStats.git
267
+ cd PiHoleLongTermStats
268
+ ```
269
+
270
+ * From the project directory (with uv already installed), install dependencies:
271
+
272
+ ```bash
273
+ uv sync --extra develop
274
+ ```
275
+ * Run the test suite:
276
+
277
+ ```bash
278
+ uv run python -m pytest tests/ -v -s --cov=piholelongtermstats --cov-report term-missing
279
+ ```
280
+ * Make your changes.
281
+ * Submit a pull request.
260
282
 
261
283
  ## Star History
262
284
 
@@ -0,0 +1,3 @@
1
+ ## Author : Davis T. Daniel
2
+ ## PiHoleLongTermStats v.0.2.4
3
+ ## License : MIT
@@ -1,5 +1,5 @@
1
1
  ## Author : Davis T. Daniel
2
- ## PiHoleLongTermStats v.0.2.3
2
+ ## PiHoleLongTermStats v.0.2.4
3
3
  ## License : MIT
4
4
 
5
5
  import os
@@ -25,7 +25,7 @@ from piholelongtermstats.plot import (
25
25
  generate_queries_over_time,
26
26
  )
27
27
 
28
- __version__ = "0.2.3"
28
+ __version__ = "0.2.4"
29
29
 
30
30
  # logging setup
31
31
  logging.basicConfig(
@@ -302,40 +302,46 @@ h3 {
302
302
  transform: scale(1.03);
303
303
  }
304
304
 
305
- .date-picker-btn .DateRangePickerInput {
306
- background-color: transparent;
307
- border: none;
308
- display: flex;
309
- align-items: center;
310
- gap: 6px;
311
- height: 36px;
305
+ .dash-datepicker {
306
+ background: transparent !important;
307
+ border: none !important;
308
+ box-shadow: none !important;
312
309
  }
313
310
 
314
- .date-picker-btn .DateInput_input {
315
- -webkit-appearance: none;
316
- -moz-appearance: none;
317
- appearance: none;
311
+ .date-picker-btn.dash-datepicker-input-wrapper {
312
+ background: transparent !important;
313
+ border: none !important;
314
+ box-shadow: none !important;
318
315
  display: flex;
319
316
  align-items: center;
320
- justify-content: center;
321
- background: #24292e;
322
- color: #f7f9fb;
323
- border: none;
324
- border-radius: 50px;
325
- padding: 0 20px;
326
- height: 46px;
327
- font-size: 16px;
328
- font-weight: 200;
329
- text-align: center;
330
- cursor: pointer;
331
- line-height: normal;
317
+ gap: 10px;
318
+ padding: 0;
332
319
  }
333
320
 
334
- .date-picker-btn .DateRangePickerArrow {
335
- color: #f7f9fb;
336
- font-size: 16px;
337
- display: flex;
338
- align-items: center;
339
- justify-content: center;
340
- height: 100%;
321
+ .date-picker-btn .dash-datepicker-start-date,
322
+ .date-picker-btn .dash-datepicker-end-date {
323
+ background-color: #24292e !important;
324
+ color: white !important;
325
+ border: none !important;
326
+ outline: none !important;
327
+ padding: 8px 20px !important;
328
+ border-radius: 50px !important;
329
+ font-size: 16px !important;
330
+ font-weight: 100 !important;
331
+ cursor: pointer !important;
332
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
333
+ transition: all 0.2s ease-in-out !important;
334
+ text-align: center !important;
335
+ width: auto !important;
336
+ }
337
+
338
+ .date-picker-btn .dash-datepicker-start-date::placeholder,
339
+ .date-picker-btn .dash-datepicker-end-date::placeholder {
340
+ color: rgba(255, 255, 255, 0.6) !important;
341
+ }
342
+
343
+ .date-picker-btn .dash-datepicker-range-arrow,
344
+ .date-picker-btn .dash-datepicker-caret-icon {
345
+ fill: #f7f9fb !important;
346
+ flex-shrink: 0;
341
347
  }
@@ -1,5 +1,5 @@
1
1
  ## Author : Davis T. Daniel
2
- ## PiHoleLongTermStats v.0.2.3
2
+ ## PiHoleLongTermStats v.0.2.4
3
3
  ## License : MIT
4
4
 
5
5
  import sqlite3
@@ -1,5 +1,5 @@
1
1
  ## Author : Davis T. Daniel
2
- ## PiHoleLongTermStats v.0.2.3
2
+ ## PiHoleLongTermStats v.0.2.4
3
3
  ## License : MIT
4
4
 
5
5
  import logging
@@ -218,7 +218,8 @@ def generate_queries_over_time(callback_data, client=None):
218
218
  [all_times, status_types], names=["timestamp", "status_type"]
219
219
  )
220
220
  dff_grouped = (
221
- dff_grouped.set_index(["timestamp", "status_type"])
221
+ dff_grouped[["timestamp", "status_type", "count"]]
222
+ .set_index(["timestamp", "status_type"])
222
223
  .reindex(full_index, fill_value=0)
223
224
  .reset_index()
224
225
  )
@@ -1,5 +1,5 @@
1
1
  ## Author : Davis T. Daniel
2
- ## PiHoleLongTermStats v.0.2.3
2
+ ## PiHoleLongTermStats v.0.2.4
3
3
  ## License : MIT
4
4
 
5
5
  import re
@@ -1,5 +1,5 @@
1
1
  ## Author : Davis T. Daniel
2
- ## PiHoleLongTermStats v.0.2.3
2
+ ## PiHoleLongTermStats v.0.2.4
3
3
  ## License : MIT
4
4
 
5
5
  import logging
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: piholelongtermstats
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: A dashboard to explore long-term DNS query data from Pi-hole FTL database files.
5
5
  Author-email: Davis Thomas Daniel <davisthomasdaniel@gmail.com>
6
6
  Maintainer-email: Davis Thomas Daniel <davisthomasdaniel@gmail.com>
@@ -14,10 +14,10 @@ Classifier: Programming Language :: Python
14
14
  Requires-Python: >=3.11
15
15
  Description-Content-Type: text/markdown
16
16
  License-File: LICENSE
17
- Requires-Dist: dash==3.0.4
18
- Requires-Dist: pandas==2.2.3
17
+ Requires-Dist: dash==4.1.0
18
+ Requires-Dist: pandas==3.0.3
19
19
  Requires-Dist: plotly==6.0.1
20
- Requires-Dist: psutil==7.1.2
20
+ Requires-Dist: psutil==7.2.2
21
21
  Provides-Extra: develop
22
22
  Requires-Dist: pytest==9.0.1; extra == "develop"
23
23
  Requires-Dist: ruff; extra == "develop"
@@ -26,7 +26,7 @@ Requires-Dist: twine==6.2.0; extra == "develop"
26
26
  Requires-Dist: pytest-cov==7.0.0; extra == "develop"
27
27
  Dynamic: license-file
28
28
 
29
- # Pi Hole Long Term Statistics v.0.2.3
29
+ # Pi Hole Long Term Statistics v.0.2.4
30
30
 
31
31
  <div align="center">
32
32
 
@@ -285,6 +285,28 @@ You can configure the application using command-line arguments or environment va
285
285
  ## 🧑‍💻 Contributing
286
286
 
287
287
  Any contribution, feature ideas or bug fixes are always welcome.
288
+ This project uses uv for dependency management.
289
+
290
+ ### Development workflow
291
+ * Clone the repository.
292
+
293
+ ```bash
294
+ git clone https://github.com/davistdaniel/PiHoleLongTermStats.git
295
+ cd PiHoleLongTermStats
296
+ ```
297
+
298
+ * From the project directory (with uv already installed), install dependencies:
299
+
300
+ ```bash
301
+ uv sync --extra develop
302
+ ```
303
+ * Run the test suite:
304
+
305
+ ```bash
306
+ uv run python -m pytest tests/ -v -s --cov=piholelongtermstats --cov-report term-missing
307
+ ```
308
+ * Make your changes.
309
+ * Submit a pull request.
288
310
 
289
311
  ## Star History
290
312
 
@@ -1,7 +1,7 @@
1
- dash==3.0.4
2
- pandas==2.2.3
1
+ dash==4.1.0
2
+ pandas==3.0.3
3
3
  plotly==6.0.1
4
- psutil==7.1.2
4
+ psutil==7.2.2
5
5
 
6
6
  [develop]
7
7
  pytest==9.0.1
@@ -4,12 +4,12 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "piholelongtermstats"
7
- version = "0.2.3"
7
+ version = "0.2.4"
8
8
  dependencies = [
9
- "dash==3.0.4",
10
- "pandas==2.2.3",
9
+ "dash==4.1.0",
10
+ "pandas==3.0.3",
11
11
  "plotly==6.0.1",
12
- "psutil==7.1.2"
12
+ "psutil==7.2.2",
13
13
  ]
14
14
  requires-python = ">=3.11"
15
15
  authors = [
@@ -1,3 +0,0 @@
1
- ## Author : Davis T. Daniel
2
- ## PiHoleLongTermStats v.0.2.3
3
- ## License : MIT