Skip to main content

Create markdown based Awesome Lists from yaml files.

Project description

Awesome List Generator

Python 3.12+ License: MIT

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.md and 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.md diff 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.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

Distributed under the MIT License. See LICENSE for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

awesome_lists_generator-0.3.2.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

awesome_lists_generator-0.3.2-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file awesome_lists_generator-0.3.2.tar.gz.

File metadata

  • Download URL: awesome_lists_generator-0.3.2.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

Hashes for awesome_lists_generator-0.3.2.tar.gz
Algorithm Hash digest
SHA256 5c24ab542b03ad543776edd8deb25efffb443fba432011d87869a84239b9bafb
MD5 06a7fb092628fbb83f1bd8a54eb7b6ac
BLAKE2b-256 e02634128fea6b8944cb1e594f97afb92d2f8e89860aaa2faaa5fcf50d5ab57d

See more details on using hashes here.

Provenance

The following attestation bundles were made for awesome_lists_generator-0.3.2.tar.gz:

Publisher: publish-package.yml on derekvincent/awesome-list-generator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file awesome_lists_generator-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for awesome_lists_generator-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8350fc2e9f2e908c8a647caccaadb507cb1a6388a468e4d67535d6458be91806
MD5 b50fe692821974f64f5f586ea517b106
BLAKE2b-256 c7a1831eabc7506125363bbd5b806ed25e81c59355d34b8329b5702ba9d4da20

See more details on using hashes here.

Provenance

The following attestation bundles were made for awesome_lists_generator-0.3.2-py3-none-any.whl:

Publisher: publish-package.yml on derekvincent/awesome-list-generator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page