Create markdown based Awesome Lists from yaml files.
Project description
Awesome List Generator
A powerful, Python-based CLI tool designed to automate the generation of beautiful, structured "Awesome Lists" in both Markdown and HTML formats from simple YAML data files.
Stop manually formatting your markdown links and managing table of contents. Just define your resources in a YAML file, and let the generator do the heavy lifting!
✨ Features
- Dual Output Formats: Generates both a standard GitHub-flavored
README.mdand a fully responsive, searchable, dark-mode-enabled Bootstrap 5 HTML site. - Auto-Enrichment: Automatically scrapes websites for Open Graph titles and descriptions if you don't provide them.
- GitHub Integration: Intercepts GitHub URLs and uses the GitHub REST API to fetch real-time Stars (⭐), Forks (🍴), and License data.
- Built-in Link Linter: Fast, stream-based health checks to detect and report broken links (
404s, parked domains, etc.) so your list never goes stale. - Smart Categorization: Supports nested subcategories, custom visual labels, images, and emojis.
- Change Tracking: Automatically builds a
latest-changes.mddiff to track what was added, changed, or removed between builds.
🚀 Getting Started
Prerequisites
- Python 3.12+
- uv (Recommended for dependency management)
Installation
Clone the repository and install the dependencies using uv:
git clone https://github.com/derekvincent/awesome-list-generator.git
cd awesome-list-generator
uv sync
💻 Usage
The CLI provides two main commands: generate and lint.
Generate the List
To parse your YAML file, fetch metadata, and generate both the Markdown and HTML outputs:
uv run awesome-lists-generator generate path/to/your/projects.yaml
Tip: Add --debug for verbose logging output.
Lint the List
To run a fast health check on all the URLs in your list without generating any output files. This will exit with a non-zero status code if broken links are found, making it perfect for CI/CD pipelines.
uv run awesome-lists-generator lint path/to/your/projects.yaml
⚙️ Configuration
The generator is driven by a single YAML file (e.g., projects.yaml). Here is a basic example of the structure:
config:
output_file: output/README.md
html_folder: output/web
list_title: Awesome Example!
markdown_header_file: config/header.md
labels:
- label: "github"
name: "GitHub"
image: "https://github.githubassets.com/favicons/favicon.svg"
categories:
- name: tools
label: Development Tools
description: Useful tools for development.
items:
- link_id: https://github.com/derekvincent/awesome-list-generator
name: Awesome List Generator
category: tools
labels: ["github"]
GitHub API Rate Limits
To prevent hitting unauthenticated rate limits when querying GitHub repository metadata, you can export a GITHUB_TOKEN environment variable before running the generator:
export GITHUB_TOKEN="your_personal_access_token"
uv run awesome-lists-generator generate projects.yaml
🤝 Contributing
Contributions are very welcome! If you'd like to add a feature, fix a bug, or improve the documentation, please check out our Contributing Guidelines and our Code of Conduct.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📄 License
Distributed under the MIT License. See LICENSE for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file awesome_lists_generator-0.3.0.tar.gz.
File metadata
- Download URL: awesome_lists_generator-0.3.0.tar.gz
- Upload date:
- Size: 23.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
340147d6ae712f2e152939d21a02c0b299c7d32683bfe4dbe309255c08f43613
|
|
| MD5 |
1110f80b80edb3ce91eeb59e508f2336
|
|
| BLAKE2b-256 |
acd28d9788b33863ec7cbf5029b2c71d01179c311b7d803b2fbee26143823d10
|
Provenance
The following attestation bundles were made for awesome_lists_generator-0.3.0.tar.gz:
Publisher:
publish-package.yml on derekvincent/awesome-list-generator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
awesome_lists_generator-0.3.0.tar.gz -
Subject digest:
340147d6ae712f2e152939d21a02c0b299c7d32683bfe4dbe309255c08f43613 - Sigstore transparency entry: 1392260464
- Sigstore integration time:
-
Permalink:
derekvincent/awesome-list-generator@d0925837c7ec094c0aadda41f97754f60619d9e7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/derekvincent
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-package.yml@d0925837c7ec094c0aadda41f97754f60619d9e7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file awesome_lists_generator-0.3.0-py3-none-any.whl.
File metadata
- Download URL: awesome_lists_generator-0.3.0-py3-none-any.whl
- Upload date:
- Size: 24.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c58b7f14db9055cbb9cd7543141cc1ee1c3abf763d9129b44ccc2d5256a198d3
|
|
| MD5 |
a735919e41be95e8a6e27241a461f138
|
|
| BLAKE2b-256 |
0758b230edb19589ede850c77fcc1ceb8e0b75794be308259d00da2d26c8d75d
|
Provenance
The following attestation bundles were made for awesome_lists_generator-0.3.0-py3-none-any.whl:
Publisher:
publish-package.yml on derekvincent/awesome-list-generator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
awesome_lists_generator-0.3.0-py3-none-any.whl -
Subject digest:
c58b7f14db9055cbb9cd7543141cc1ee1c3abf763d9129b44ccc2d5256a198d3 - Sigstore transparency entry: 1392260532
- Sigstore integration time:
-
Permalink:
derekvincent/awesome-list-generator@d0925837c7ec094c0aadda41f97754f60619d9e7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/derekvincent
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-package.yml@d0925837c7ec094c0aadda41f97754f60619d9e7 -
Trigger Event:
push
-
Statement type: