https://github.com/preocts/steggtistics
something
https://github.com/preocts/steggtistics
Last synced: 10 months ago
JSON representation
something
- Host: GitHub
- URL: https://github.com/preocts/steggtistics
- Owner: Preocts
- Created: 2022-03-08T01:44:25.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-11T22:03:30.000Z (almost 3 years ago)
- Last Synced: 2025-08-30T11:36:41.421Z (10 months ago)
- Language: Python
- Size: 108 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/psf/black)
[](https://github.com/pre-commit/pre-commit)
[](https://results.pre-commit.ci/latest/github/Preocts/steggtistics/main)
[](https://github.com/Preocts/steggtistics/actions/workflows/python-tests.yml)
# st**egg**tistics
Pull from the `{user}/events` public API of GitHub.
### Requirements
- [Python](https://python.org) >= 3.8
## Internal Links
- [Development Installation Guide](docs/development.md)
---
WIP - output to be parsed for metrics
```py
import json
from pathlib import Path
from datetime import datetime
from steggtistics.pull_user import PullUser
save_file = Path(f"temp_{datetime.now().strftime('%Y.%m.%d')}_events.json")
results = PullUser().pull_events("[USERNAME]")
json.dump([r.asdict() for r in results], save_file.open("w"), indent=4)
```