-
Notifications
You must be signed in to change notification settings - Fork 0
feat: multi-source package collection pipeline #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
tylerbutler
wants to merge
14
commits into
main
Choose a base branch
from
find-source
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Changes
scripts/collectors/collect_all.pyfor unified collectioncrossref_packages.pyfor cross-referencinggenerate_ccl.pyfor CCL output