Repository navigation
feat(metrics): adoption baseline snapshot script + daily workflow (UF grant D3/D4) #480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
TimeToBuildBob
wants to merge
6
commits into
uniswap-python:master
Choose a base branch
from
TimeToBuildBob:feat/adoption-baseline-snapshot
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
3e22382
feat(metrics): adoption baseline snapshot script and daily workflow
TimeToBuildBob ec22cd4
fix(metrics): fail closed on traffic auth and collector errors
TimeToBuildBob d8fccff
test: xfail v1 UNI-exchange price-output cases (no liquidity)
TimeToBuildBob 8d046ff
fix(metrics): reconstruct traffic period totals from daily series
TimeToBuildBob 3a2a37d
fix(metrics): exclude partial current UTC day from period totals
TimeToBuildBob b8e3a63
fix(metrics): pin collection clock so midnight cannot include a parti…
TimeToBuildBob File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| name: Adoption Snapshot | ||
|
|
||
| on: | ||
| schedule: | ||
| # Daily at 06:00 UTC — captures GitHub traffic before the 14-day window rolls off | ||
| - cron: "0 6 * * *" | ||
| workflow_dispatch: # allow manual runs | ||
|
|
||
| permissions: | ||
| contents: write # needed to commit snapshot files | ||
|
|
||
| jobs: | ||
| snapshot: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Run adoption snapshot | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
TimeToBuildBob marked this conversation as resolved.
Outdated
|
||
| run: python3 scripts/adoption_snapshot.py --out metrics/ | ||
|
|
||
| - name: Commit snapshot | ||
| run: | | ||
| git config user.name "github-actions[bot]" | ||
| git config user.email "github-actions[bot]@users.noreply.github.com" | ||
| git add metrics/ | ||
| if git diff --staged --quiet; then | ||
| echo "No changes to commit (snapshot already up to date)" | ||
| else | ||
| git commit -m "chore(metrics): daily adoption snapshot $(date -u +%Y-%m-%d)" | ||
| git push | ||
|
TimeToBuildBob marked this conversation as resolved.
Outdated
|
||
| fi | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| { | ||
| "snapshot_at": "2026-09-02T01:18:42.212052+00:00", | ||
| "repo": "uniswap-python/uniswap-python", | ||
| "package": "uniswap-python", | ||
| "github": { | ||
| "stars": 1011, | ||
| "forks": 375, | ||
| "watchers": 23, | ||
| "open_issues": 65 | ||
| }, | ||
| "github_traffic": { | ||
| "clones_14d": null, | ||
| "unique_cloners_14d": null, | ||
| "views_14d": null, | ||
| "unique_visitors_14d": null, | ||
| "clones_error": "HTTP 403: Forbidden", | ||
| "views_error": "HTTP 403: Forbidden" | ||
| }, | ||
| "pypi": { | ||
| "error": "HTTP 429: Too Many Requests", | ||
| "note": "pypistats.org rate-limited; retry after a few minutes" | ||
| }, | ||
| "pypi_versions": [ | ||
| { | ||
| "version": "0.8.0", | ||
| "released": "2026-08-03T09:45:06" | ||
| }, | ||
| { | ||
| "version": "0.7.1", | ||
| "released": "2023-09-09T12:22:42" | ||
| }, | ||
| { | ||
| "version": "0.7.0", | ||
| "released": "2023-03-30T13:21:25" | ||
| }, | ||
| { | ||
| "version": "0.6.2", | ||
| "released": "2022-11-08T13:36:42" | ||
| }, | ||
| { | ||
| "version": "0.6.1", | ||
| "released": "2022-10-18T12:25:29" | ||
| }, | ||
| { | ||
| "version": "0.6.0", | ||
| "released": "2022-08-29T10:03:46" | ||
| }, | ||
| { | ||
| "version": "0.5.5", | ||
| "released": "2022-01-03T09:02:11" | ||
| }, | ||
| { | ||
| "version": "0.5.4", | ||
| "released": "2021-12-21T09:53:51" | ||
| }, | ||
| { | ||
| "version": "0.5.3", | ||
| "released": "2021-10-19T10:34:58" | ||
| }, | ||
| { | ||
| "version": "0.5.2", | ||
| "released": "2021-06-23T13:58:55" | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| # uniswap-python Adoption Snapshot | ||
|
|
||
| **Snapshot date**: 2026-09-02T01:18:42.212052+00:00 | ||
|
|
||
| ## GitHub | ||
|
|
||
| | Metric | Value | | ||
| | --- | --- | | ||
| | Stars | 1011 | | ||
| | Forks | 375 | | ||
| | Watchers | 23 | | ||
| | Open Issues | 65 | | ||
|
|
||
| ## GitHub Traffic (14-day window) | ||
|
|
||
| | Metric | Value | | ||
| | --- | --- | | ||
| | Clones (14d) | N/A | | ||
| | Unique Cloners (14d) | N/A | | ||
| | Views (14d) | N/A | | ||
| | Unique Visitors (14d) | N/A | | ||
|
|
||
| ## PyPI Downloads | ||
|
|
||
| | Period | Downloads | | ||
| | --- | --- | | ||
| | Last day | N/A | | ||
| | Last week | N/A | | ||
| | Last month | N/A | | ||
|
|
||
| __ | ||
|
|
||
| ## Recent Releases | ||
|
|
||
| | Version | Released | | ||
| | --- | --- | | ||
| | 0.8.0 | 2026-08-03 | | ||
| | 0.7.1 | 2023-09-09 | | ||
| | 0.7.0 | 2023-03-30 | | ||
| | 0.6.2 | 2022-11-08 | | ||
| | 0.6.1 | 2022-10-18 | |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.