gitlytics 0.6.3__tar.gz → 0.7.0__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 (76) hide show
  1. {gitlytics-0.6.3 → gitlytics-0.7.0}/PKG-INFO +24 -23
  2. {gitlytics-0.6.3 → gitlytics-0.7.0}/README.md +8 -8
  3. {gitlytics-0.6.3 → gitlytics-0.7.0}/pyproject.toml +17 -15
  4. {gitlytics-0.6.3 → gitlytics-0.7.0}/src/gitlytics/__init__.py +1 -1
  5. {gitlytics-0.6.3 → gitlytics-0.7.0}/src/gitlytics/api.py +11 -2
  6. {gitlytics-0.6.3 → gitlytics-0.7.0}/src/gitlytics/cli.py +7 -1
  7. {gitlytics-0.6.3 → gitlytics-0.7.0}/src/gitlytics/static/_headers +3 -3
  8. gitlytics-0.7.0/src/gitlytics/static/android-chrome-192x192.png +0 -0
  9. gitlytics-0.7.0/src/gitlytics/static/android-chrome-512x512.png +0 -0
  10. gitlytics-0.7.0/src/gitlytics/static/apple-touch-icon.png +0 -0
  11. gitlytics-0.7.0/src/gitlytics/static/assets/ExportModal-CqawRJQe.js +1 -0
  12. gitlytics-0.7.0/src/gitlytics/static/assets/html2canvas-Bw0OShmD.js +5 -0
  13. gitlytics-0.7.0/src/gitlytics/static/assets/html2canvas-pro.esm-R_8Rc3By.js +7 -0
  14. gitlytics-0.7.0/src/gitlytics/static/assets/index-B3YVZMEg.js +165 -0
  15. gitlytics-0.7.0/src/gitlytics/static/assets/index-CvFzI4Pz.css +1 -0
  16. gitlytics-0.7.0/src/gitlytics/static/assets/index.es-zEcWcC3I.js +5 -0
  17. gitlytics-0.7.0/src/gitlytics/static/assets/jspdf.es.min-DZc1ww8w.js +79 -0
  18. gitlytics-0.7.0/src/gitlytics/static/assets/purify.es-Dqk5qvad.js +3 -0
  19. gitlytics-0.7.0/src/gitlytics/static/assets/rolldown-runtime-XKyaHtl9.js +1 -0
  20. gitlytics-0.7.0/src/gitlytics/static/favicon-16x16.png +0 -0
  21. gitlytics-0.7.0/src/gitlytics/static/favicon-32x32.png +0 -0
  22. gitlytics-0.7.0/src/gitlytics/static/favicon-48x48.png +0 -0
  23. gitlytics-0.7.0/src/gitlytics/static/favicon.ico +0 -0
  24. gitlytics-0.7.0/src/gitlytics/static/favicon.png +0 -0
  25. gitlytics-0.7.0/src/gitlytics/static/gitlytics-logo.png +0 -0
  26. gitlytics-0.7.0/src/gitlytics/static/google-search-icon-48x48.png +0 -0
  27. gitlytics-0.7.0/src/gitlytics/static/google-search-icon.png +0 -0
  28. {gitlytics-0.6.3 → gitlytics-0.7.0}/src/gitlytics/static/index.html +24 -37
  29. gitlytics-0.7.0/src/gitlytics/static/llms-full.txt +125 -0
  30. gitlytics-0.7.0/src/gitlytics/static/llms.txt +19 -0
  31. {gitlytics-0.6.3 → gitlytics-0.7.0}/src/gitlytics.egg-info/PKG-INFO +24 -23
  32. {gitlytics-0.6.3 → gitlytics-0.7.0}/src/gitlytics.egg-info/SOURCES.txt +11 -9
  33. gitlytics-0.7.0/src/gitlytics.egg-info/requires.txt +17 -0
  34. {gitlytics-0.6.3 → gitlytics-0.7.0}/tests/test_api.py +7 -7
  35. {gitlytics-0.6.3 → gitlytics-0.7.0}/tests/test_core.py +4 -4
  36. gitlytics-0.7.0/tests/test_init.py +208 -0
  37. {gitlytics-0.6.3 → gitlytics-0.7.0}/tests/test_username.py +48 -25
  38. gitlytics-0.6.3/src/gitlytics/static/android-chrome-192x192.png +0 -0
  39. gitlytics-0.6.3/src/gitlytics/static/android-chrome-512x512.png +0 -0
  40. gitlytics-0.6.3/src/gitlytics/static/apple-touch-icon.png +0 -0
  41. gitlytics-0.6.3/src/gitlytics/static/assets/CardModal-9oHMecdc.js +0 -1
  42. gitlytics-0.6.3/src/gitlytics/static/assets/ExportModal-M_KmGZ_C.js +0 -1
  43. gitlytics-0.6.3/src/gitlytics/static/assets/html2canvas-pro.esm-9xys3ejh.js +0 -6
  44. gitlytics-0.6.3/src/gitlytics/static/assets/html2canvas.esm-DXEQVQnt.js +0 -5
  45. gitlytics-0.6.3/src/gitlytics/static/assets/index-Bro5YaCJ.css +0 -1
  46. gitlytics-0.6.3/src/gitlytics/static/assets/index-wOhawfKi.js +0 -154
  47. gitlytics-0.6.3/src/gitlytics/static/assets/index.es-tlOthHFQ.js +0 -5
  48. gitlytics-0.6.3/src/gitlytics/static/assets/jspdf.es.min-DD49TTEi.js +0 -79
  49. gitlytics-0.6.3/src/gitlytics/static/assets/purify.es-CC4Brkr_.js +0 -3
  50. gitlytics-0.6.3/src/gitlytics/static/favicon-16x16.png +0 -0
  51. gitlytics-0.6.3/src/gitlytics/static/favicon-32x32.png +0 -0
  52. gitlytics-0.6.3/src/gitlytics/static/favicon-48x48.png +0 -0
  53. gitlytics-0.6.3/src/gitlytics/static/favicon.ico +0 -0
  54. gitlytics-0.6.3/src/gitlytics/static/gitlytics-logo.png +0 -0
  55. gitlytics-0.6.3/src/gitlytics/static/google-search-icon-48x48.png +0 -0
  56. gitlytics-0.6.3/src/gitlytics/static/google-search-icon.png +0 -0
  57. gitlytics-0.6.3/src/gitlytics/static/llms-full.txt +0 -114
  58. gitlytics-0.6.3/src/gitlytics/static/llms.txt +0 -20
  59. gitlytics-0.6.3/src/gitlytics.egg-info/requires.txt +0 -16
  60. {gitlytics-0.6.3 → gitlytics-0.7.0}/LICENSE +0 -0
  61. {gitlytics-0.6.3 → gitlytics-0.7.0}/setup.cfg +0 -0
  62. {gitlytics-0.6.3 → gitlytics-0.7.0}/src/gitlytics/__main__.py +0 -0
  63. {gitlytics-0.6.3 → gitlytics-0.7.0}/src/gitlytics/automation.py +0 -0
  64. {gitlytics-0.6.3 → gitlytics-0.7.0}/src/gitlytics/core.py +0 -0
  65. {gitlytics-0.6.3 → gitlytics-0.7.0}/src/gitlytics/process.py +0 -0
  66. {gitlytics-0.6.3 → gitlytics-0.7.0}/src/gitlytics/static/_redirects +0 -0
  67. {gitlytics-0.6.3 → gitlytics-0.7.0}/src/gitlytics/static/robots.txt +0 -0
  68. {gitlytics-0.6.3 → gitlytics-0.7.0}/src/gitlytics/static/site.webmanifest +0 -0
  69. {gitlytics-0.6.3 → gitlytics-0.7.0}/src/gitlytics/static/sitemap.xml +0 -0
  70. {gitlytics-0.6.3 → gitlytics-0.7.0}/src/gitlytics.egg-info/dependency_links.txt +0 -0
  71. {gitlytics-0.6.3 → gitlytics-0.7.0}/src/gitlytics.egg-info/entry_points.txt +0 -0
  72. {gitlytics-0.6.3 → gitlytics-0.7.0}/src/gitlytics.egg-info/top_level.txt +0 -0
  73. {gitlytics-0.6.3 → gitlytics-0.7.0}/tests/test_automation.py +0 -0
  74. {gitlytics-0.6.3 → gitlytics-0.7.0}/tests/test_cli.py +0 -0
  75. {gitlytics-0.6.3 → gitlytics-0.7.0}/tests/test_process.py +0 -0
  76. {gitlytics-0.6.3 → gitlytics-0.7.0}/tests/test_star_history.py +0 -0
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitlytics
3
- Version: 0.6.3
3
+ Version: 0.7.0
4
4
  Summary: Monitor and automate your GitHub repository traffic analytics.
5
5
  Author-email: Ameya Chopade <ameyaccod171@gmail.com>
6
6
  License: Apache-2.0
7
7
  Project-URL: Homepage, https://gitlytics.dev
8
8
  Project-URL: Documentation, https://docs.gitlytics.dev
9
- Project-URL: Repository, https://github.com/ameyac11/gitlytics
10
- Project-URL: Bug Tracker, https://github.com/ameyac11/gitlytics/issues
9
+ Project-URL: Repository, https://github.com/ameyachopade/gitlytics
10
+ Project-URL: Bug Tracker, https://github.com/ameyachopade/gitlytics/issues
11
11
  Keywords: github,traffic,analytics,automation,cli
12
12
  Classifier: Programming Language :: Python :: 3
13
13
  Classifier: License :: OSI Approved :: Apache Software License
@@ -15,27 +15,28 @@ Classifier: Operating System :: OS Independent
15
15
  Requires-Python: >=3.9
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
- Requires-Dist: requests>=2.32.0
19
- Requires-Dist: pandas>=2.2.0
20
- Requires-Dist: numpy>=1.26.0
21
- Requires-Dist: croniter>=2.0.0
18
+ Requires-Dist: requests>=2.34.2
19
+ Requires-Dist: certifi>=2026.10.23
20
+ Requires-Dist: pandas>=2.2.3
21
+ Requires-Dist: numpy>=1.26.4
22
+ Requires-Dist: croniter>=6.2.4
22
23
  Provides-Extra: dashboard
23
- Requires-Dist: fastapi>=0.111.0; extra == "dashboard"
24
- Requires-Dist: uvicorn>=0.30.0; extra == "dashboard"
25
- Requires-Dist: python-multipart>=0.0.9; extra == "dashboard"
24
+ Requires-Dist: fastapi>=0.162.0; extra == "dashboard"
25
+ Requires-Dist: uvicorn>=0.54.0; extra == "dashboard"
26
+ Requires-Dist: python-multipart>=0.0.33; extra == "dashboard"
26
27
  Provides-Extra: dev
27
- Requires-Dist: pytest>=8.0.0; extra == "dev"
28
- Requires-Dist: pytest-cov>=5.0.0; extra == "dev"
29
- Requires-Dist: httpx>=0.27.0; extra == "dev"
30
- Requires-Dist: anyio[trio]>=4.0.0; extra == "dev"
31
- Requires-Dist: python-dotenv>=1.0.1; extra == "dev"
28
+ Requires-Dist: pytest>=9.2.0; extra == "dev"
29
+ Requires-Dist: pytest-cov>=7.1.0; extra == "dev"
30
+ Requires-Dist: httpx>=0.28.1; extra == "dev"
31
+ Requires-Dist: anyio[trio]>=4.16.0; extra == "dev"
32
+ Requires-Dist: python-dotenv>=1.2.4; extra == "dev"
32
33
  Dynamic: license-file
33
34
 
34
35
  <div align="center">
35
36
 
36
- <img src="https://raw.githubusercontent.com/ameyac11/gitlytics/main/assets/logo.png" alt="Gitlytics Logo" width="150" />
37
+ <img src="https://raw.githubusercontent.com/ameyachopade/gitlytics/main/assets/logo.png" alt="Gitlytics Logo" width="150" />
37
38
 
38
- # Gitlytics v0.6.3
39
+ # Gitlytics v0.7.0
39
40
  ### GitHub Traffic Analytics, Dynamic Widgets & Automation
40
41
 
41
42
  [![License](https://api.gitlytics.dev/api/badge/tech.svg?slug=license&style=icon_label_value&label=License&label_color=%23555555&variant=plastic&value=Apache+2.0&value_color=%232F81F7)](LICENSE)
@@ -43,7 +44,7 @@ Dynamic: license-file
43
44
  [![PyPI](https://api.gitlytics.dev/api/badge/pypi/gitlytics.svg)](https://pypi.org/project/gitlytics/)
44
45
  [![React](https://api.gitlytics.dev/api/badge/tech.svg?slug=react&style=icon_label_value&label=UI&label_color=%23555555&variant=plastic&value=React&value_color=%2361DAFB)](https://react.dev/)
45
46
  [![FastAPI](https://api.gitlytics.dev/api/badge/tech.svg?slug=fastapi&style=icon_label_value&label=Backend&label_color=%23555555&variant=plastic&value=FastAPI&value_color=%23009688)](https://fastapi.tiangolo.com/)
46
- [![Automation](https://api.gitlytics.dev/api/badge/tech.svg?slug=githubactions&style=icon_label_value&label=Data+Backup&label_color=%23555555&variant=plastic&value=Automation&value_color=%232088FF)](https://github.com/ameyac11/gitlytics-github-traffic-automation)
47
+ [![Automation](https://api.gitlytics.dev/api/badge/tech.svg?slug=githubactions&style=icon_label_value&label=Data+Backup&label_color=%23555555&variant=plastic&value=Automation&value_color=%232088FF)](https://github.com/ameyachopade/gitlytics-github-traffic-automation)
47
48
  [![Homepage](https://api.gitlytics.dev/api/badge/tech.svg?slug=homepage&style=icon_label_value&label=Homepage&label_color=%23555555&variant=plastic&value=gitlytics.dev&value_color=%233FB950)](https://gitlytics.dev)
48
49
  [![Blog](https://api.gitlytics.dev/api/badge/tech.svg?slug=blog&style=icon_label_value&label=Blog&label_color=%23555555&variant=plastic&value=blog.gitlytics.dev&value_color=%233FB950)](https://blog.gitlytics.dev)
49
50
  [![Live](https://api.gitlytics.dev/api/badge/tech.svg?slug=livedemo&style=icon_label_value&label=Live+Demo&label_color=%23555555&variant=plastic&value=dashboard.gitlytics.dev&value_color=%233FB950)](https://dashboard.gitlytics.dev)
@@ -162,7 +163,7 @@ The full Gitlytics platform consists of modular open-source components:
162
163
  - 📊 **[Gitlytics Live Dashboard](https://dashboard.gitlytics.dev)**: Production web interface to visualize repository traffic, trends, and historical charts.
163
164
  - 📝 **[Gitlytics Blog](https://blog.gitlytics.dev)**: Engineering deep-dives, comparison guides, and open-source analytics tutorials.
164
165
  - 📚 **[Gitlytics Metadata Pages & Docs](https://docs.gitlytics.dev)**: Technical reference, badge explorer, and CLI documentation.
165
- - ⚙️ **[Gitlytics Automation](https://github.com/ameyac11/gitlytics-github-traffic-automation)**: GitHub Action companion tool that fetches and backs up traffic data automatically.
166
+ - ⚙️ **[Gitlytics Automation](https://github.com/ameyachopade/gitlytics-github-traffic-automation)**: GitHub Action companion tool that fetches and backs up traffic data automatically.
166
167
 
167
168
  ---
168
169
 
@@ -189,7 +190,7 @@ Explore our official engineering publication at **[blog.gitlytics.dev](https://b
189
190
 
190
191
  ## 🔑 Flexible Authentication Modes
191
192
 
192
- Gitlytics v0.6.3 supports 3 authentication modes:
193
+ Gitlytics v0.7.0 supports 3 authentication modes:
193
194
 
194
195
  1. **Token Authentication (PAT)**: Pass your GitHub Personal Access Token (Classic or Fine-Grained) with `repo` scope to fetch private & public repository metrics.
195
196
  2. **Demo Mode (Instant Exploration)**: Explore the web dashboard and CLI immediately using curated sample data without entering any credentials.
@@ -206,7 +207,7 @@ Gitlytics v0.6.3 supports 3 authentication modes:
206
207
 
207
208
  We built a companion automation tool that runs silently every 13 days using GitHub Actions to snapshot and preserve your traffic data.
208
209
 
209
- 👉 **[Set up GitHub Traffic Automation here](https://github.com/ameyac11/gitlytics-github-traffic-automation)** (Takes under 2 minutes to set up!)
210
+ 👉 **[Set up GitHub Traffic Automation here](https://github.com/ameyachopade/gitlytics-github-traffic-automation)** (Takes under 2 minutes to set up!)
210
211
 
211
212
  Once your traffic snapshots are saved, Gitlytics automatically merges overlaps to build continuous historical analytics over months or years.
212
213
 
@@ -308,7 +309,7 @@ gitlytics.serve_dashboard(
308
309
  import gitlytics
309
310
 
310
311
  points = gitlytics.fetch_star_history(
311
- owner="ameyac11",
312
+ owner="ameyachopade",
312
313
  repo="gitlytics",
313
314
  token="ghp_your_token"
314
315
  )
@@ -350,7 +351,7 @@ Local CSV databases track up to 23 metrics per snapshot:
350
351
 
351
352
  ## 🌟 Show Your Support
352
353
 
353
- If you find this project useful, please consider giving it a ⭐ on [GitHub](https://github.com/ameyac11/gitlytics)!
354
+ If you find this project useful, please consider giving it a ⭐ on [GitHub](https://github.com/ameyachopade/gitlytics)!
354
355
 
355
356
  ## 📄 License
356
357
  Licensed under the [Apache License 2.0](LICENSE).
@@ -1,8 +1,8 @@
1
1
  <div align="center">
2
2
 
3
- <img src="https://raw.githubusercontent.com/ameyac11/gitlytics/main/assets/logo.png" alt="Gitlytics Logo" width="150" />
3
+ <img src="https://raw.githubusercontent.com/ameyachopade/gitlytics/main/assets/logo.png" alt="Gitlytics Logo" width="150" />
4
4
 
5
- # Gitlytics v0.6.3
5
+ # Gitlytics v0.7.0
6
6
  ### GitHub Traffic Analytics, Dynamic Widgets & Automation
7
7
 
8
8
  [![License](https://api.gitlytics.dev/api/badge/tech.svg?slug=license&style=icon_label_value&label=License&label_color=%23555555&variant=plastic&value=Apache+2.0&value_color=%232F81F7)](LICENSE)
@@ -10,7 +10,7 @@
10
10
  [![PyPI](https://api.gitlytics.dev/api/badge/pypi/gitlytics.svg)](https://pypi.org/project/gitlytics/)
11
11
  [![React](https://api.gitlytics.dev/api/badge/tech.svg?slug=react&style=icon_label_value&label=UI&label_color=%23555555&variant=plastic&value=React&value_color=%2361DAFB)](https://react.dev/)
12
12
  [![FastAPI](https://api.gitlytics.dev/api/badge/tech.svg?slug=fastapi&style=icon_label_value&label=Backend&label_color=%23555555&variant=plastic&value=FastAPI&value_color=%23009688)](https://fastapi.tiangolo.com/)
13
- [![Automation](https://api.gitlytics.dev/api/badge/tech.svg?slug=githubactions&style=icon_label_value&label=Data+Backup&label_color=%23555555&variant=plastic&value=Automation&value_color=%232088FF)](https://github.com/ameyac11/gitlytics-github-traffic-automation)
13
+ [![Automation](https://api.gitlytics.dev/api/badge/tech.svg?slug=githubactions&style=icon_label_value&label=Data+Backup&label_color=%23555555&variant=plastic&value=Automation&value_color=%232088FF)](https://github.com/ameyachopade/gitlytics-github-traffic-automation)
14
14
  [![Homepage](https://api.gitlytics.dev/api/badge/tech.svg?slug=homepage&style=icon_label_value&label=Homepage&label_color=%23555555&variant=plastic&value=gitlytics.dev&value_color=%233FB950)](https://gitlytics.dev)
15
15
  [![Blog](https://api.gitlytics.dev/api/badge/tech.svg?slug=blog&style=icon_label_value&label=Blog&label_color=%23555555&variant=plastic&value=blog.gitlytics.dev&value_color=%233FB950)](https://blog.gitlytics.dev)
16
16
  [![Live](https://api.gitlytics.dev/api/badge/tech.svg?slug=livedemo&style=icon_label_value&label=Live+Demo&label_color=%23555555&variant=plastic&value=dashboard.gitlytics.dev&value_color=%233FB950)](https://dashboard.gitlytics.dev)
@@ -129,7 +129,7 @@ The full Gitlytics platform consists of modular open-source components:
129
129
  - 📊 **[Gitlytics Live Dashboard](https://dashboard.gitlytics.dev)**: Production web interface to visualize repository traffic, trends, and historical charts.
130
130
  - 📝 **[Gitlytics Blog](https://blog.gitlytics.dev)**: Engineering deep-dives, comparison guides, and open-source analytics tutorials.
131
131
  - 📚 **[Gitlytics Metadata Pages & Docs](https://docs.gitlytics.dev)**: Technical reference, badge explorer, and CLI documentation.
132
- - ⚙️ **[Gitlytics Automation](https://github.com/ameyac11/gitlytics-github-traffic-automation)**: GitHub Action companion tool that fetches and backs up traffic data automatically.
132
+ - ⚙️ **[Gitlytics Automation](https://github.com/ameyachopade/gitlytics-github-traffic-automation)**: GitHub Action companion tool that fetches and backs up traffic data automatically.
133
133
 
134
134
  ---
135
135
 
@@ -156,7 +156,7 @@ Explore our official engineering publication at **[blog.gitlytics.dev](https://b
156
156
 
157
157
  ## 🔑 Flexible Authentication Modes
158
158
 
159
- Gitlytics v0.6.3 supports 3 authentication modes:
159
+ Gitlytics v0.7.0 supports 3 authentication modes:
160
160
 
161
161
  1. **Token Authentication (PAT)**: Pass your GitHub Personal Access Token (Classic or Fine-Grained) with `repo` scope to fetch private & public repository metrics.
162
162
  2. **Demo Mode (Instant Exploration)**: Explore the web dashboard and CLI immediately using curated sample data without entering any credentials.
@@ -173,7 +173,7 @@ Gitlytics v0.6.3 supports 3 authentication modes:
173
173
 
174
174
  We built a companion automation tool that runs silently every 13 days using GitHub Actions to snapshot and preserve your traffic data.
175
175
 
176
- 👉 **[Set up GitHub Traffic Automation here](https://github.com/ameyac11/gitlytics-github-traffic-automation)** (Takes under 2 minutes to set up!)
176
+ 👉 **[Set up GitHub Traffic Automation here](https://github.com/ameyachopade/gitlytics-github-traffic-automation)** (Takes under 2 minutes to set up!)
177
177
 
178
178
  Once your traffic snapshots are saved, Gitlytics automatically merges overlaps to build continuous historical analytics over months or years.
179
179
 
@@ -275,7 +275,7 @@ gitlytics.serve_dashboard(
275
275
  import gitlytics
276
276
 
277
277
  points = gitlytics.fetch_star_history(
278
- owner="ameyac11",
278
+ owner="ameyachopade",
279
279
  repo="gitlytics",
280
280
  token="ghp_your_token"
281
281
  )
@@ -317,7 +317,7 @@ Local CSV databases track up to 23 metrics per snapshot:
317
317
 
318
318
  ## 🌟 Show Your Support
319
319
 
320
- If you find this project useful, please consider giving it a ⭐ on [GitHub](https://github.com/ameyac11/gitlytics)!
320
+ If you find this project useful, please consider giving it a ⭐ on [GitHub](https://github.com/ameyachopade/gitlytics)!
321
321
 
322
322
  ## 📄 License
323
323
  Licensed under the [Apache License 2.0](LICENSE).
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "gitlytics"
7
- version = "0.6.3"
7
+ version = "0.7.0"
8
8
  description = "Monitor and automate your GitHub repository traffic analytics."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -17,10 +17,11 @@ authors = [
17
17
  # python-dotenv was removed from runtime deps — the library never reads .env;
18
18
  # only tests use it, so it lives in the [dev] extra below.
19
19
  dependencies = [
20
- "requests>=2.32.0",
21
- "pandas>=2.2.0",
22
- "numpy>=1.26.0",
23
- "croniter>=2.0.0"
20
+ "requests>=2.34.2",
21
+ "certifi>=2026.10.23",
22
+ "pandas>=2.2.3",
23
+ "numpy>=1.26.4",
24
+ "croniter>=6.2.4"
24
25
  ]
25
26
  keywords = [
26
27
  "github",
@@ -38,23 +39,23 @@ classifiers = [
38
39
  [project.urls]
39
40
  Homepage = "https://gitlytics.dev"
40
41
  Documentation = "https://docs.gitlytics.dev"
41
- Repository = "https://github.com/ameyac11/gitlytics"
42
- "Bug Tracker" = "https://github.com/ameyac11/gitlytics/issues"
42
+ Repository = "https://github.com/ameyachopade/gitlytics"
43
+ "Bug Tracker" = "https://github.com/ameyachopade/gitlytics/issues"
43
44
 
44
45
  [project.optional-dependencies]
45
46
  # Fix #20: dashboard extras are optional — base package works without them.
46
47
  # requirements.txt was including them as mandatory; that was wrong.
47
48
  dashboard = [
48
- "fastapi>=0.111.0",
49
- "uvicorn>=0.30.0",
50
- "python-multipart>=0.0.9"
49
+ "fastapi>=0.162.0",
50
+ "uvicorn>=0.54.0",
51
+ "python-multipart>=0.0.33"
51
52
  ]
52
53
  dev = [
53
- "pytest>=8.0.0",
54
- "pytest-cov>=5.0.0",
55
- "httpx>=0.27.0", # required by FastAPI TestClient (used in test_api.py)
56
- "anyio[trio]>=4.0.0", # async test support
57
- "python-dotenv>=1.0.1" # only tests load .env — runtime package doesn't
54
+ "pytest>=9.2.0",
55
+ "pytest-cov>=7.1.0",
56
+ "httpx>=0.28.1", # required by FastAPI TestClient (used in test_api.py)
57
+ "anyio[trio]>=4.16.0", # async test support
58
+ "python-dotenv>=1.2.4" # only tests load .env — runtime package doesn't
58
59
  ]
59
60
 
60
61
 
@@ -71,6 +72,7 @@ include = ["gitlytics*"]
71
72
  [tool.pytest.ini_options]
72
73
  # Only collect files that match the offline test naming convention.
73
74
  # live_*.py scripts are excluded — they need a real GitHub token.
75
+ pythonpath = ["src"]
74
76
  testpaths = ["tests"]
75
77
  python_files = ["test_*.py"]
76
78
  python_classes = ["Test*"]
@@ -9,7 +9,7 @@ from pathlib import Path
9
9
 
10
10
  # Single source of truth for the package version.
11
11
  # Mirrors the version in pyproject.toml — keep them in sync.
12
- __version__ = "0.6.3"
12
+ __version__ = "0.7.0"
13
13
 
14
14
  __all__ = [
15
15
  "fetch_traffic",
@@ -188,8 +188,7 @@ def auth(token: str = Body("", embed=True)):
188
188
  }
189
189
 
190
190
 
191
- @app.post("/api/username")
192
- def get_username_data(username: str = Body("", embed=True)):
191
+ def _fetch_username_data(username: str):
193
192
  if not username or not username.strip():
194
193
  raise HTTPException(status_code=400, detail="Username is required.")
195
194
  try:
@@ -206,6 +205,16 @@ def get_username_data(username: str = Body("", embed=True)):
206
205
  raise HTTPException(status_code=500, detail="Failed to fetch GitHub data.")
207
206
 
208
207
 
208
+ @app.get("/api/username/{username}")
209
+ def get_username_data_by_path(username: str):
210
+ return _fetch_username_data(username)
211
+
212
+
213
+ @app.post("/api/username")
214
+ def get_username_data(username: str = Body("", embed=True)):
215
+ return _fetch_username_data(username)
216
+
217
+
209
218
  @app.post("/api/traffic")
210
219
  def get_traffic(token: str = Body("", embed=True)):
211
220
  # Serve traffic data — either from the historical CSV database or live from GitHub
@@ -7,6 +7,12 @@ import argparse
7
7
  import sys
8
8
  import os
9
9
 
10
+ # Ensure Unicode output works seamlessly on Windows consoles (cp1252 / cmd / PowerShell)
11
+ if hasattr(sys.stdout, "reconfigure"):
12
+ sys.stdout.reconfigure(encoding="utf-8", errors="replace")
13
+ if hasattr(sys.stderr, "reconfigure"):
14
+ sys.stderr.reconfigure(encoding="utf-8", errors="replace")
15
+
10
16
  # Import the three public functions that power every subcommand
11
17
  from gitlytics import fetch_traffic, sync, serve_dashboard
12
18
  from gitlytics.core import fetch_star_history, StargazersRestrictedError
@@ -84,7 +90,7 @@ def main():
84
90
 
85
91
  # ── STARS subcommand ───────────────────────────────────────────────────────
86
92
  stars_parser = subparsers.add_parser("stars", help="Fetch sampled star history for a repo (Rarely used/Deprecated by GitHub API).")
87
- stars_parser.add_argument("repo", help="Repository in 'owner/repo' form (e.g. ameyac11/gitlytics).")
93
+ stars_parser.add_argument("repo", help="Repository in 'owner/repo' form (e.g. ameyachopade/gitlytics).")
88
94
  stars_parser.add_argument("-t", "--token", help="GitHub Personal Access Token.")
89
95
 
90
96
  args = parser.parse_args()
@@ -3,9 +3,9 @@
3
3
  X-Content-Type-Options: nosniff
4
4
  Referrer-Policy: strict-origin-when-cross-origin
5
5
  Permissions-Policy: camera=(), microphone=(), geolocation=()
6
- Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' https://www.googletagmanager.com https://www.google-analytics.com https://scripts.clarity.ms https://www.clarity.ms; connect-src 'self' https://api.gitlytics.dev https://api.github.com https://www.google-analytics.com https://*.google-analytics.com https://www.googletagmanager.com https://*.clarity.ms; img-src 'self' data: https://api.gitlytics.dev https://avatars.githubusercontent.com https://github.com https://raw.githubusercontent.com https://www.google-analytics.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' data: https://fonts.gstatic.com; frame-ancestors 'none'; base-uri 'self'; form-action 'self'
6
+ Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' https://www.googletagmanager.com https://www.google-analytics.com https://scripts.clarity.ms https://www.clarity.ms https://static.cloudflareinsights.com; connect-src 'self' https://api.gitlytics.dev https://api.github.com https://www.google-analytics.com https://*.google-analytics.com https://www.googletagmanager.com https://*.clarity.ms https://cloudflareinsights.com https://*.cloudflareinsights.com; img-src 'self' data: https://api.gitlytics.dev https://avatars.githubusercontent.com https://github.com https://raw.githubusercontent.com https://www.google-analytics.com https://c.clarity.ms https://*.clarity.ms; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' data: https://fonts.gstatic.com; frame-ancestors 'none'; base-uri 'self'; form-action 'self'
7
7
 
8
- # Hashed Vite bundles — safe to cache forever because filename changes on every build
8
+ # Hashed Vite bundles - safe to cache forever because filename changes on every build
9
9
  /assets/*
10
10
  Cache-Control: public, max-age=31536000, immutable
11
11
 
@@ -29,7 +29,7 @@
29
29
  /llms-full.txt
30
30
  Cache-Control: public, max-age=3600
31
31
 
32
- # HTML entry points — always re-validate so new deployments are picked up immediately
32
+ # HTML entry points - always re-validate so new deployments are picked up immediately
33
33
  /index.html
34
34
  Cache-Control: no-cache, no-store, must-revalidate
35
35
  /
@@ -0,0 +1 @@
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{a as t,c as n,i as r,l as i,n as a,o,s,t as c,u as l}from"./index-B3YVZMEg.js";var u=e(l(),1),d=e(i(),1),f=n(),p=[{id:`section-hero`,label:`Lifetime Stats Hero Card`,default:!0},{id:`section-issues-prs`,label:`Issues and PRs Summary Card`,default:!0},{id:`section-stat-cards`,label:`6 Stat Cards`,default:!0},{id:`section-top10-charts`,label:`Top 10 Charts`,default:!0},{id:`section-star-history`,label:`Star History Chart`,default:!0},{id:`section-referrer-aggregation`,label:`Global Referrer Aggregation`,default:!1},{id:`section-heatmap`,label:`Traffic Patterns Heatmap`,default:!1},{id:`section-languages`,label:`Language Distribution`,default:!1},{id:`section-commits`,label:`Commit Activity`,default:!1},{id:`section-most-cloned`,label:`Most Cloned Repositories Table`,default:!1},{id:`section-all-repos`,label:`All Repositories Table`,default:!0}];function m({onClose:e,mode:n=`png`,allRepos:i,defaultRepos:l,runWithRepos:m,profile:h}){let[g,_]=(0,u.useState)(!1),v=(0,u.useMemo)(()=>typeof document>`u`?p:p.filter(e=>document.getElementById(e.id)!==null),[]),[y,b]=(0,u.useState)(Object.fromEntries(v.map(e=>[e.id,e.default])));(0,u.useEffect)(()=>{b(Object.fromEntries(v.map(e=>[e.id,e.default])))},[v]);let x=l.length>0&&l.length<i.length?l:i,[S,C]=(0,u.useState)(x),w=e=>b(t=>({...t,[e]:!t[e]})),T=n===`pdf`||Object.values(y).some(Boolean),E=S.length===i.length,D=(0,u.useMemo)(()=>E?`All repos`:S.length===1?S[0]:`${S.length} repos`,[S,E]);function O(e){C(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])}function k(){C(E?[]:i)}async function A(){if(S.length!==0){_(!0);try{await m(E?[]:S,async()=>{if(n===`png`){let e=v.filter(e=>y[e.id]).map(e=>e.id);if(e.length===0)return;await a(e,D,h)}else await c(D,h)}),e()}catch{}finally{_(!1)}}}return(0,d.createPortal)((0,f.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center bg-background/95 p-4 backdrop-blur-md`,onClick:()=>!g&&e(),children:(0,f.jsxs)(`div`,{className:`glass animate-slide-up flex max-h-[95vh] w-full flex-col overflow-hidden rounded-xl border border-border transition-all ${n===`png`?`max-w-3xl`:`max-w-lg`}`,onClick:e=>e.stopPropagation(),children:[(0,f.jsxs)(`div`,{className:`flex shrink-0 items-center justify-between border-b border-border p-4`,children:[(0,f.jsxs)(`div`,{className:`flex items-center gap-2`,children:[n===`png`?(0,f.jsx)(t,{className:`h-5 w-5 text-[#38bdf8] shrink-0`}):(0,f.jsx)(o,{className:`h-5 w-5 text-[#a855f7] shrink-0`}),(0,f.jsxs)(`div`,{children:[(0,f.jsx)(`h3`,{className:`text-sm font-semibold`,children:n===`png`?`Export PNG`:`Export PDF`}),(0,f.jsx)(`p`,{className:`mt-0.5 text-xs text-muted-foreground`,children:n===`png`?`Choose repositories and sections to include`:`Choose repositories to include in the full report`})]})]}),(0,f.jsx)(`button`,{onClick:()=>!g&&e(),"aria-label":`Close`,className:`rounded-lg p-1 text-muted-foreground transition-colors hover:bg-foreground/5 hover:text-foreground`,children:(0,f.jsx)(r,{className:`h-4 w-4`})})]}),(0,f.jsxs)(`div`,{className:`flex-1 space-y-5 overflow-y-auto p-5`,children:[(0,f.jsxs)(`div`,{className:n===`png`?`grid grid-cols-1 md:grid-cols-[250px_1fr] gap-6`:`space-y-4`,children:[(0,f.jsxs)(`div`,{children:[(0,f.jsxs)(`div`,{className:`mb-1.5 flex items-center justify-between`,children:[(0,f.jsxs)(`p`,{className:`text-xs font-semibold uppercase tracking-wide text-muted-foreground`,children:[`Repositories (`,S.length,`/`,i.length,`)`]}),(0,f.jsx)(`button`,{onClick:k,className:`text-xs font-medium text-primary hover:underline`,children:E?`Clear all`:`Select all`})]}),(0,f.jsx)(`div`,{className:`h-[280px] space-y-1 overflow-auto rounded-lg border border-border/60 bg-background/30 p-2`,children:i.map(e=>{let t=S.includes(e);return(0,f.jsxs)(`button`,{onClick:()=>O(e),className:`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-xs hover:bg-foreground/5`,children:[(0,f.jsx)(`span`,{className:`flex h-4 w-4 shrink-0 items-center justify-center rounded border ${t?`border-primary bg-primary text-primary-foreground`:`border-input`}`,children:t&&(0,f.jsx)(s,{className:`h-3 w-3`})}),(0,f.jsx)(`span`,{className:`truncate`,children:e})]},e)})})]}),n===`png`&&(0,f.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,f.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-wide text-muted-foreground`,children:`Sections`}),v.length===0?(0,f.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No exportable sections in the current view.`}):(0,f.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-2`,children:v.map(e=>(0,f.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-2.5 rounded-lg border border-border/60 bg-background/30 px-3 py-2 text-sm transition-colors hover:bg-foreground/5`,children:[(0,f.jsx)(`input`,{type:`checkbox`,checked:y[e.id],onChange:()=>w(e.id),className:`h-4 w-4 cursor-pointer accent-primary`}),e.label]},e.id))})]})]}),(0,f.jsxs)(`button`,{onClick:A,disabled:g||!T||S.length===0,className:`flex w-full items-center justify-center gap-1.5 rounded-lg bg-primary px-4 py-2.5 text-sm font-semibold text-primary-foreground transition-transform hover:scale-[1.01] disabled:opacity-50`,children:[n===`png`?(0,f.jsx)(t,{className:`h-4 w-4`}):(0,f.jsx)(o,{className:`h-4 w-4`}),g?`Generating…`:n===`png`?`Export PNG`:`Export PDF`]})]})]})}),document.body)}export{m as ExportModal};