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.0.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.0-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

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

Hashes for awesome_lists_generator-0.3.0.tar.gz
Algorithm Hash digest
SHA256 340147d6ae712f2e152939d21a02c0b299c7d32683bfe4dbe309255c08f43613
MD5 1110f80b80edb3ce91eeb59e508f2336
BLAKE2b-256 acd28d9788b33863ec7cbf5029b2c71d01179c311b7d803b2fbee26143823d10

See more details on using hashes here.

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

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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for awesome_lists_generator-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c58b7f14db9055cbb9cd7543141cc1ee1c3abf763d9129b44ccc2d5256a198d3
MD5 a735919e41be95e8a6e27241a461f138
BLAKE2b-256 0758b230edb19589ede850c77fcc1ceb8e0b75794be308259d00da2d26c8d75d

See more details on using hashes here.

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

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