mirror of
https://github.com/ShayManor/github-readme-stats.git
synced 2026-12-02 11:53:48 +05:30
feat(config, generate, processor): enhance widget customization and tag inference
This commit is contained in:
@@ -26,3 +26,61 @@ API_TIMEOUT = int(os.getenv("API_TIMEOUT", "5"))
|
|||||||
# Data source
|
# Data source
|
||||||
DATA_SOURCE_TYPE = os.getenv("DATA_SOURCE", "direct")
|
DATA_SOURCE_TYPE = os.getenv("DATA_SOURCE", "direct")
|
||||||
"""Data source type: 'direct' for immediate API calls, 'queued' for batch processing."""
|
"""Data source type: 'direct' for immediate API calls, 'queued' for batch processing."""
|
||||||
|
|
||||||
|
# Widget settings
|
||||||
|
WIDGET_ORDER = ["grade", "impact", "collaborators", "focus", "languages", "achievements"]
|
||||||
|
"""Default order of widgets. Customize by reordering this list."""
|
||||||
|
|
||||||
|
ENABLED_WIDGETS = ["grade", "impact", "collaborators", "focus", "languages", "achievements"]
|
||||||
|
"""Which widgets to display. Remove any you don't want to show."""
|
||||||
|
|
||||||
|
# Language filtering
|
||||||
|
HIDDEN_LANGUAGES = []
|
||||||
|
"""Languages to exclude from stats (e.g., ["HTML", "CSS", "Makefile"])."""
|
||||||
|
|
||||||
|
# Tag settings
|
||||||
|
TAG_MAX_COUNT = int(os.getenv("TAG_MAX_COUNT", "6"))
|
||||||
|
"""Maximum number of tags to display (1-20)."""
|
||||||
|
|
||||||
|
TAG_LANGUAGE_MAP = {
|
||||||
|
"Python": ["ML", "Backend"],
|
||||||
|
"JavaScript": ["Frontend"],
|
||||||
|
"TypeScript": ["Frontend"],
|
||||||
|
"HTML": ["Frontend"],
|
||||||
|
"CSS": ["Frontend"],
|
||||||
|
"Go": ["Backend"],
|
||||||
|
"Rust": ["Systems", "Backend"],
|
||||||
|
"Java": ["Backend"],
|
||||||
|
"C++": ["Systems"],
|
||||||
|
"C": ["Systems"],
|
||||||
|
"Swift": ["Mobile"],
|
||||||
|
"Kotlin": ["Mobile", "Backend"],
|
||||||
|
"Ruby": ["Backend"],
|
||||||
|
"PHP": ["Backend"],
|
||||||
|
"Shell": ["DevOps"],
|
||||||
|
"Dockerfile": ["DevOps"],
|
||||||
|
"HCL": ["DevOps", "Cloud"],
|
||||||
|
"Jupyter Notebook": ["ML"],
|
||||||
|
}
|
||||||
|
"""Map programming languages to developer role categories."""
|
||||||
|
|
||||||
|
TAG_TOPIC_MAP = {
|
||||||
|
"machine-learning": "ML",
|
||||||
|
"deep-learning": "ML",
|
||||||
|
"ai": "ML",
|
||||||
|
"frontend": "Frontend",
|
||||||
|
"react": "Frontend",
|
||||||
|
"vue": "Frontend",
|
||||||
|
"backend": "Backend",
|
||||||
|
"api": "Backend",
|
||||||
|
"database": "Database",
|
||||||
|
"devops": "DevOps",
|
||||||
|
"docker": "DevOps",
|
||||||
|
"kubernetes": "DevOps",
|
||||||
|
"security": "Security",
|
||||||
|
"cloud": "Cloud",
|
||||||
|
"aws": "Cloud",
|
||||||
|
"azure": "Cloud",
|
||||||
|
"gcp": "Cloud",
|
||||||
|
}
|
||||||
|
"""Map repository topics to developer role categories."""
|
||||||
|
|||||||
+142
-65
@@ -20,8 +20,14 @@ from ..widgets import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def compute_grade(github_data: dict) -> GradeData:
|
def compute_grade(github_data: dict, custom_tags: list[str] = None) -> GradeData:
|
||||||
"""Compute a developer grade from GitHub profile data."""
|
"""
|
||||||
|
Compute a developer grade from GitHub profile data.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
github_data: GitHub profile data dictionary
|
||||||
|
custom_tags: Optional list of custom tags to include (e.g., ["open-source", "hackathon-winner"])
|
||||||
|
"""
|
||||||
user = github_data["user"]
|
user = github_data["user"]
|
||||||
repos = github_data["repos"]
|
repos = github_data["repos"]
|
||||||
events = github_data["events"]
|
events = github_data["events"]
|
||||||
@@ -111,7 +117,7 @@ def compute_grade(github_data: dict) -> GradeData:
|
|||||||
"followers": followers,
|
"followers": followers,
|
||||||
}
|
}
|
||||||
|
|
||||||
tags = _compute_tags(github_data)
|
tags = _compute_tags(github_data, custom_tags=custom_tags, hidden_languages=None)
|
||||||
|
|
||||||
return GradeData(
|
return GradeData(
|
||||||
grade=grade,
|
grade=grade,
|
||||||
@@ -122,15 +128,44 @@ def compute_grade(github_data: dict) -> GradeData:
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def _compute_tags(github_data: dict) -> list[TagData]:
|
def _compute_tags(github_data: dict, max_tags: int = None, custom_tags: list[str] = None, hidden_languages: list[str] = None) -> list[TagData]:
|
||||||
"""Infer developer tags from repo languages and topics."""
|
"""
|
||||||
|
Infer developer tags from repo languages and topics using percentage thresholds.
|
||||||
|
|
||||||
|
Tags are awarded based on:
|
||||||
|
- Frontend: >50% frontend languages
|
||||||
|
- Backend: >50% backend languages
|
||||||
|
- ML: >25% ML-related languages
|
||||||
|
- Fullstack: >25% frontend AND >25% backend
|
||||||
|
- Systems: >50% systems languages
|
||||||
|
- DevOps: >25% DevOps-related languages
|
||||||
|
- Mobile: >50% mobile languages
|
||||||
|
|
||||||
|
Args:
|
||||||
|
github_data: GitHub data dictionary
|
||||||
|
max_tags: Maximum number of tags to return (1-20). Defaults to TAG_MAX_COUNT from config.
|
||||||
|
custom_tags: Optional list of custom tags to add (e.g., ["open-source", "hackathon-winner"])
|
||||||
|
hidden_languages: Optional list of languages to exclude from tag calculation
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
List of TagData objects with inferred developer roles
|
||||||
|
"""
|
||||||
|
from ..config import TAG_MAX_COUNT, TAG_LANGUAGE_MAP, TAG_TOPIC_MAP, HIDDEN_LANGUAGES
|
||||||
|
|
||||||
|
if max_tags is None:
|
||||||
|
max_tags = TAG_MAX_COUNT
|
||||||
|
max_tags = min(max(max_tags, 1), 20) # Clamp between 1 and 20
|
||||||
|
|
||||||
|
if hidden_languages is None:
|
||||||
|
hidden_languages = HIDDEN_LANGUAGES
|
||||||
|
|
||||||
repos = github_data["repos"]
|
repos = github_data["repos"]
|
||||||
lang_counts = defaultdict(int)
|
lang_counts = defaultdict(int)
|
||||||
topic_set = set()
|
topic_set = set()
|
||||||
|
|
||||||
for r in repos:
|
for r in repos:
|
||||||
lang = r.get("language")
|
lang = r.get("language")
|
||||||
if lang:
|
if lang and lang not in hidden_languages:
|
||||||
lang_counts[lang] += 1
|
lang_counts[lang] += 1
|
||||||
for topic in r.get("topics", []):
|
for topic in r.get("topics", []):
|
||||||
topic_set.add(topic.lower())
|
topic_set.add(topic.lower())
|
||||||
@@ -138,61 +173,71 @@ def _compute_tags(github_data: dict) -> list[TagData]:
|
|||||||
tags = []
|
tags = []
|
||||||
total = sum(lang_counts.values()) or 1
|
total = sum(lang_counts.values()) or 1
|
||||||
|
|
||||||
lang_map = {
|
# Calculate percentage for each category
|
||||||
"Python": ["ml-engineer", "backend"],
|
category_percentages = defaultdict(float)
|
||||||
"JavaScript": ["frontend"],
|
|
||||||
"TypeScript": ["frontend"],
|
|
||||||
"Go": ["backend", "systems"],
|
|
||||||
"Rust": ["systems"],
|
|
||||||
"Java": ["backend"],
|
|
||||||
"C++": ["systems"],
|
|
||||||
"Swift": ["mobile"],
|
|
||||||
"Kotlin": ["mobile"],
|
|
||||||
"Dockerfile": ["devops"],
|
|
||||||
"HCL": ["devops", "cloud"],
|
|
||||||
}
|
|
||||||
|
|
||||||
inferred = defaultdict(float)
|
|
||||||
for lang, count in lang_counts.items():
|
for lang, count in lang_counts.items():
|
||||||
pct = count / total
|
pct = count / total
|
||||||
for tag in lang_map.get(lang, []):
|
for category in TAG_LANGUAGE_MAP.get(lang, []):
|
||||||
inferred[tag] = max(inferred[tag], pct)
|
category_percentages[category] += pct
|
||||||
|
|
||||||
topic_map = {
|
|
||||||
"machine-learning": "ml-engineer",
|
|
||||||
"deep-learning": "ml-engineer",
|
|
||||||
"frontend": "frontend",
|
|
||||||
"react": "frontend",
|
|
||||||
"vue": "frontend",
|
|
||||||
"backend": "backend",
|
|
||||||
"api": "backend",
|
|
||||||
"database": "database",
|
|
||||||
"devops": "devops",
|
|
||||||
"docker": "devops",
|
|
||||||
"kubernetes": "devops",
|
|
||||||
"security": "security",
|
|
||||||
"fullstack": "fullstack",
|
|
||||||
}
|
|
||||||
|
|
||||||
|
# Infer tags from repository topics
|
||||||
for topic in topic_set:
|
for topic in topic_set:
|
||||||
if topic in topic_map:
|
if topic in TAG_TOPIC_MAP:
|
||||||
inferred[topic_map[topic]] = max(
|
category = TAG_TOPIC_MAP[topic]
|
||||||
inferred.get(topic_map[topic], 0), 0.7
|
category_percentages[category] = max(category_percentages[category], 0.3)
|
||||||
)
|
|
||||||
|
|
||||||
# Fullstack heuristic
|
# Apply threshold rules
|
||||||
has_fe = any(
|
awarded_tags = []
|
||||||
lang_counts.get(l, 0) > 0 for l in ["JavaScript", "TypeScript"]
|
|
||||||
)
|
|
||||||
has_be = any(
|
|
||||||
lang_counts.get(l, 0) > 0
|
|
||||||
for l in ["Python", "Go", "Java", "Rust", "C++"]
|
|
||||||
)
|
|
||||||
if has_fe and has_be:
|
|
||||||
inferred["fullstack"] = max(inferred.get("fullstack", 0), 0.6)
|
|
||||||
|
|
||||||
for tag, conf in sorted(inferred.items(), key=lambda x: -x[1])[:6]:
|
# Fullstack: >25% frontend AND >25% backend
|
||||||
tags.append(TagData(tag=tag, source="earned", confidence=round(conf, 2)))
|
if category_percentages.get("Frontend", 0) > 0.25 and category_percentages.get("Backend", 0) > 0.25:
|
||||||
|
awarded_tags.append(("fullstack", max(category_percentages.get("Frontend", 0), category_percentages.get("Backend", 0))))
|
||||||
|
|
||||||
|
# ML: >25%
|
||||||
|
if category_percentages.get("ML", 0) > 0.25:
|
||||||
|
awarded_tags.append(("ml-engineer", category_percentages["ML"]))
|
||||||
|
|
||||||
|
# Backend: >50%
|
||||||
|
if category_percentages.get("Backend", 0) > 0.50:
|
||||||
|
awarded_tags.append(("backend", category_percentages["Backend"]))
|
||||||
|
|
||||||
|
# Frontend: >50%
|
||||||
|
if category_percentages.get("Frontend", 0) > 0.50:
|
||||||
|
awarded_tags.append(("frontend", category_percentages["Frontend"]))
|
||||||
|
|
||||||
|
# Systems: >50%
|
||||||
|
if category_percentages.get("Systems", 0) > 0.50:
|
||||||
|
awarded_tags.append(("systems", category_percentages["Systems"]))
|
||||||
|
|
||||||
|
# DevOps: >25%
|
||||||
|
if category_percentages.get("DevOps", 0) > 0.25:
|
||||||
|
awarded_tags.append(("devops", category_percentages["DevOps"]))
|
||||||
|
|
||||||
|
# Mobile: >50%
|
||||||
|
if category_percentages.get("Mobile", 0) > 0.50:
|
||||||
|
awarded_tags.append(("mobile", category_percentages["Mobile"]))
|
||||||
|
|
||||||
|
# Database: >25%
|
||||||
|
if category_percentages.get("Database", 0) > 0.25:
|
||||||
|
awarded_tags.append(("database", category_percentages["Database"]))
|
||||||
|
|
||||||
|
# Cloud: >25%
|
||||||
|
if category_percentages.get("Cloud", 0) > 0.25:
|
||||||
|
awarded_tags.append(("cloud", category_percentages["Cloud"]))
|
||||||
|
|
||||||
|
# Security: >25%
|
||||||
|
if category_percentages.get("Security", 0) > 0.25:
|
||||||
|
awarded_tags.append(("security", category_percentages["Security"]))
|
||||||
|
|
||||||
|
# Add custom tags with high confidence
|
||||||
|
if custom_tags:
|
||||||
|
for tag in custom_tags:
|
||||||
|
awarded_tags.append((tag, 1.0))
|
||||||
|
|
||||||
|
# Sort by confidence and limit to max_tags
|
||||||
|
for tag, conf in sorted(awarded_tags, key=lambda x: -x[1])[:max_tags]:
|
||||||
|
tags.append(TagData(tag=tag, source="earned" if conf < 1.0 else "custom", confidence=round(conf, 2)))
|
||||||
|
|
||||||
return tags
|
return tags
|
||||||
|
|
||||||
@@ -339,8 +384,19 @@ def _compute_collaborators_from_events(github_data: dict) -> list[CollaboratorDa
|
|||||||
return collabs
|
return collabs
|
||||||
|
|
||||||
|
|
||||||
def compute_focus(github_data: dict) -> list[FocusCategory]:
|
def compute_focus(github_data: dict, hidden_languages: list[str] = None) -> list[FocusCategory]:
|
||||||
"""Classify contributions into focus categories based on repo languages weighted by activity."""
|
"""
|
||||||
|
Classify contributions into focus categories based on repo languages weighted by activity.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
github_data: GitHub profile data
|
||||||
|
hidden_languages: Optional list of languages to exclude
|
||||||
|
"""
|
||||||
|
from ..config import HIDDEN_LANGUAGES
|
||||||
|
|
||||||
|
if hidden_languages is None:
|
||||||
|
hidden_languages = HIDDEN_LANGUAGES
|
||||||
|
|
||||||
repos = github_data["repos"]
|
repos = github_data["repos"]
|
||||||
total_contributions = github_data.get("recent_commits", 0) # Last 6 months
|
total_contributions = github_data.get("recent_commits", 0) # Last 6 months
|
||||||
|
|
||||||
@@ -377,11 +433,11 @@ def compute_focus(github_data: dict) -> list[FocusCategory]:
|
|||||||
sorted_repos = sorted(repos, key=lambda r: r.get("pushed_at", ""), reverse=True)
|
sorted_repos = sorted(repos, key=lambda r: r.get("pushed_at", ""), reverse=True)
|
||||||
active_repos = sorted_repos[:30]
|
active_repos = sorted_repos[:30]
|
||||||
|
|
||||||
# Count languages in active repos
|
# Count languages in active repos (excluding hidden languages)
|
||||||
lang_weights = defaultdict(int)
|
lang_weights = defaultdict(int)
|
||||||
for r in active_repos:
|
for r in active_repos:
|
||||||
lang = r.get("language")
|
lang = r.get("language")
|
||||||
if lang:
|
if lang and lang not in hidden_languages:
|
||||||
lang_weights[lang] += 1
|
lang_weights[lang] += 1
|
||||||
|
|
||||||
total_weight = sum(lang_weights.values())
|
total_weight = sum(lang_weights.values())
|
||||||
@@ -421,14 +477,26 @@ def compute_focus(github_data: dict) -> list[FocusCategory]:
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
def compute_languages(github_data: dict) -> list[LanguageData]:
|
def compute_languages(github_data: dict, hidden_languages: list[str] = None) -> list[LanguageData]:
|
||||||
"""Compute language distribution from repos."""
|
"""
|
||||||
|
Compute language distribution from repos.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
github_data: GitHub profile data
|
||||||
|
hidden_languages: Optional list of languages to exclude (e.g., ["HTML", "CSS"])
|
||||||
|
"""
|
||||||
|
from ..config import HIDDEN_LANGUAGES
|
||||||
|
|
||||||
|
if hidden_languages is None:
|
||||||
|
hidden_languages = HIDDEN_LANGUAGES
|
||||||
|
|
||||||
repos = github_data["repos"]
|
repos = github_data["repos"]
|
||||||
lang_counts = defaultdict(int)
|
lang_counts = defaultdict(int)
|
||||||
for r in repos:
|
for r in repos:
|
||||||
lang = r.get("language")
|
lang = r.get("language")
|
||||||
if lang:
|
if lang and lang not in hidden_languages:
|
||||||
lang_counts[lang] += 1
|
lang_counts[lang] += 1
|
||||||
|
|
||||||
total = sum(lang_counts.values()) or 1
|
total = sum(lang_counts.values()) or 1
|
||||||
return [
|
return [
|
||||||
LanguageData(
|
LanguageData(
|
||||||
@@ -441,17 +509,26 @@ def compute_languages(github_data: dict) -> list[LanguageData]:
|
|||||||
|
|
||||||
|
|
||||||
def generate_widgets_from_github(
|
def generate_widgets_from_github(
|
||||||
github_data: dict, theme: str = "dark"
|
github_data: dict,
|
||||||
|
theme: str = "dark",
|
||||||
|
custom_tags: list[str] = None,
|
||||||
|
hidden_languages: list[str] = None
|
||||||
) -> dict[str, str]:
|
) -> dict[str, str]:
|
||||||
"""
|
"""
|
||||||
Takes raw GitHub API data and returns rendered SVG strings
|
Takes raw GitHub API data and returns rendered SVG strings
|
||||||
for each widget type.
|
for each widget type.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
github_data: GitHub profile data
|
||||||
|
theme: Color theme name
|
||||||
|
custom_tags: Optional list of custom tags to add to the grade widget
|
||||||
|
hidden_languages: Optional list of languages to exclude from stats
|
||||||
"""
|
"""
|
||||||
grade = compute_grade(github_data)
|
grade = compute_grade(github_data, custom_tags=custom_tags)
|
||||||
impact = compute_impact_timeline(github_data)
|
impact = compute_impact_timeline(github_data)
|
||||||
collabs = compute_collaborators(github_data)
|
collabs = compute_collaborators(github_data)
|
||||||
focus = compute_focus(github_data)
|
focus = compute_focus(github_data, hidden_languages=hidden_languages)
|
||||||
languages = compute_languages(github_data)
|
languages = compute_languages(github_data, hidden_languages=hidden_languages)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"grade": render_grade_widget(grade, theme),
|
"grade": render_grade_widget(grade, theme),
|
||||||
|
|||||||
+41
-12
@@ -18,18 +18,34 @@ def generate_full_widget(
|
|||||||
token: Optional[str] = None,
|
token: Optional[str] = None,
|
||||||
theme: str = "dark",
|
theme: str = "dark",
|
||||||
enabled: Optional[list[str]] = None,
|
enabled: Optional[list[str]] = None,
|
||||||
|
widget_order: Optional[list[str]] = None,
|
||||||
achievements: Optional[list[AchievementData]] = None,
|
achievements: Optional[list[AchievementData]] = None,
|
||||||
|
custom_tags: Optional[list[str]] = None,
|
||||||
|
hidden_languages: Optional[list[str]] = None,
|
||||||
) -> str:
|
) -> str:
|
||||||
"""Generate a complete profile widget for a GitHub user."""
|
"""
|
||||||
|
Generate a complete profile widget for a GitHub user.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
username: GitHub username
|
||||||
|
token: GitHub API token
|
||||||
|
theme: Color theme name
|
||||||
|
enabled: List of widgets to include (None = use config default)
|
||||||
|
widget_order: Order of widgets (None = use config default)
|
||||||
|
achievements: Custom achievements to display
|
||||||
|
custom_tags: Custom tags to add to grade widget (e.g., ["open-source", "hackathon-winner"])
|
||||||
|
hidden_languages: Languages to exclude from stats (e.g., ["HTML", "CSS"])
|
||||||
|
"""
|
||||||
|
from .config import ENABLED_WIDGETS, WIDGET_ORDER, HIDDEN_LANGUAGES
|
||||||
|
|
||||||
if enabled is None:
|
if enabled is None:
|
||||||
enabled = [
|
enabled = ENABLED_WIDGETS
|
||||||
"grade",
|
|
||||||
"impact",
|
if widget_order is None:
|
||||||
"collaborators",
|
widget_order = WIDGET_ORDER
|
||||||
"focus",
|
|
||||||
"languages",
|
if hidden_languages is None:
|
||||||
"achievements",
|
hidden_languages = HIDDEN_LANGUAGES
|
||||||
]
|
|
||||||
|
|
||||||
print(f"Fetching GitHub data for {username}...")
|
print(f"Fetching GitHub data for {username}...")
|
||||||
github_data = fetch_github_data(username, token)
|
github_data = fetch_github_data(username, token)
|
||||||
@@ -51,7 +67,12 @@ def generate_full_widget(
|
|||||||
print(f" Try running with GITHUB_PAT environment variable")
|
print(f" Try running with GITHUB_PAT environment variable")
|
||||||
|
|
||||||
print("Generating widgets...")
|
print("Generating widgets...")
|
||||||
widgets = generate_widgets_from_github(github_data, theme)
|
widgets = generate_widgets_from_github(
|
||||||
|
github_data,
|
||||||
|
theme,
|
||||||
|
custom_tags=custom_tags,
|
||||||
|
hidden_languages=hidden_languages
|
||||||
|
)
|
||||||
|
|
||||||
if achievements:
|
if achievements:
|
||||||
widgets["achievements"] = render_achievements_widget(
|
widgets["achievements"] = render_achievements_widget(
|
||||||
@@ -66,9 +87,12 @@ def generate_full_widget(
|
|||||||
print(f" Saved widget_{name}.svg")
|
print(f" Saved widget_{name}.svg")
|
||||||
|
|
||||||
print("Composing final widget...")
|
print("Composing final widget...")
|
||||||
|
# Order widgets according to widget_order
|
||||||
|
ordered_enabled = [w for w in widget_order if w in enabled and w in widgets and widgets[w]]
|
||||||
|
|
||||||
composite = compose_widget(
|
composite = compose_widget(
|
||||||
widgets=widgets,
|
widgets=widgets,
|
||||||
enabled=[e for e in enabled if e in widgets and widgets[e]],
|
enabled=ordered_enabled,
|
||||||
theme_name=theme,
|
theme_name=theme,
|
||||||
username=username,
|
username=username,
|
||||||
avatar_b64=github_data.get("avatar_b64", ""),
|
avatar_b64=github_data.get("avatar_b64", ""),
|
||||||
@@ -99,7 +123,12 @@ def main():
|
|||||||
"MLH Top 50", "Global Hackathon League", "2025", "medal"
|
"MLH Top 50", "Global Hackathon League", "2025", "medal"
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
generate_full_widget(username, token, theme, achievements=achievements)
|
|
||||||
|
# Example custom tags - uncomment to add custom badges
|
||||||
|
# custom_tags = ["open-source", "hackathon-winner", "quantum-computing"]
|
||||||
|
custom_tags = ["Testing"]
|
||||||
|
|
||||||
|
generate_full_widget(username, token, theme, achievements=achievements, custom_tags=custom_tags)
|
||||||
else:
|
else:
|
||||||
print("Usage: python generate.py <username> [theme]")
|
print("Usage: python generate.py <username> [theme]")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user