Skip to content

Conversation

@tylerbutler
Copy link
Owner

Summary

  • Adds Python-based collectors for multiple package sources (Homebrew, Scoop, AUR, Arch, etc.)
  • Cross-reference pipeline for package deduplication
  • CCL generation from collected package data

Changes

  • Modular collector architecture in scripts/collectors/
  • collect_all.py for unified collection
  • crossref_packages.py for cross-referencing
  • generate_ccl.py for CCL output

Add feature flags for fine-grained control over sickle functionality:
- `parse`: Core parsing (parse, parse_indented)
- `hierarchy`: Build hierarchical model (build_hierarchy, load)
- `printer`: CCL printer for serializing CclObject to text
- `serde-deserialize`: Serde Deserialize support (from_str)
- `serde-serialize`: Serde Serialize support (to_string) - NEW
- `serde`: Both serialization and deserialization
- `full`: All features

Features form a dependency chain where higher-level features
automatically enable their dependencies.
Add tests for Vec, HashMap, floats, deeply nested structs,
and roundtrip serialize/deserialize verification.
Add modular collector system to gather popular CLI packages from:
- Homebrew (with install counts from analytics API)
- toolleeo/cli-apps (1900+ tools from CSV)
- modern-unix (modern CLI alternatives)
- awesome-cli-apps (curated markdown list)
- Scoop (Windows package manifests)
- Flathub (Linux flatpak apps)

Collectors output unified JSON to data/raw/ for later processing
into known_packages.ccl. Uses Pydantic for data validation.

Usage: just collect-fast (skips slow rate-limited collectors)
Add scripts to process collected package data:
- crossref_packages.py: Build unified index, score by popularity
- verify_packages.py: Verify availability in brew/scoop/apt/pacman/nix
- generate_ccl.py: Output CCL format for known_packages.ccl

Scoring prioritizes Homebrew install counts and modern-unix presence.
Pipeline generates ~66 new packages with 2+ verified sources.

Usage: just pipeline (or individual: crossref, verify, generate-ccl)
…ting

- Rewrite generate_ccl.py to parse and merge with existing known_packages.ccl
- Add PackageEntry dataclass for proper CCL data model
- Output packages alphabetically sorted (simple entries first, then complex)
- Add --write flag to write directly to source file
- Merge 94 new packages from verified sources (total: 157 packages)
- Document full pipeline: collect → crossref → verify → generate
- Add data sources table with API details
- Document scoring algorithm and verification methods
- Include justfile command reference
- Add CCL format examples and directory structure
Run all collectors concurrently using ThreadPoolExecutor. Also increase
Arch API batch size from 100 to 500 and remove unnecessary rate limiting.

Collection time reduced from ~30s to ~6s for 107k packages.
Replace HTTP-based verification with lookups against already-collected
package manager data. No network requests needed since we already have
homebrew.json, scoop.json, arch.json, and aur.json from the collectors.

Verification now completes in <1s instead of 20+ seconds.
Process more packages per run to build known_packages.ccl faster.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants