-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
26 lines (22 loc) · 665 Bytes
/
main.py
File metadata and controls
26 lines (22 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from api_getuser import get_user
from stats_getlangstats import get_languages_stats
from stats_getactivitystats import get_activity_stats
from stats_generateimage import generate_stats_image
from api_postfile import post_file
import logging
logging.basicConfig(
format='%(asctime)s %(levelname)-8s %(message)s',
level=logging.INFO,
datefmt='%Y-%m-%d %H:%M:%S'
)
get_user()
langstats = get_languages_stats()
activitystats = get_activity_stats()
generate_stats_image(
langstats=langstats,
activitystats=activitystats)
post_file(
filepath='githubstatsimage.png',
remotepath='generated/pygithubstatsimg.png'
)
logging.info("Completed!")