How hillairet/ciftt works
Project type and purpose
• CIFTT is a Python-based command-line application (an open-source tool) that automates the conversion between CSV spreadsheets and GitHub issues/projects.
• Its main use cases are:
• Importing issues: read a CSV and create or update GitHub issues.
• Exporting issues: read issues from GitHub and produce a CSV.
File structure
• Top level:
• ciftt.py – the CLI entry point.
• csv_data.py – CSV parsing and serialization.
• transform.py – core logic orchestrating CSV ↔ GitHub transformations.
• settings.py – configuration handling.
• utils.py – common utilities.
• github/ – package containing GitHub API integration:
– client.py (HTTP wrapper for GitHub REST API)
– data.py (data models/DTOs for issues)
– rate_limit.py (handles GitHub rate limits)
– utils.py (GitHub-specific helpers)
• tests/ – unit tests.
• Build/deploy:
• pyproject.toml – project metadata and dependencies.
• .gitignore, LICENSE, CONVENTIONS.md.
README for additional insights
• Describes two main commands: import-issues and export-issues.
• Workflow:
CSV file → CIFTT → GitHub API → repository issues or GitHub API → CSV output.
• Mentions CSV schema and validation in roadmap (labels, assignees, project fields).
Detail
– Break down github/ into subcomponents so readers see rate limiting as its own module.
– Show utils.py separately to underscore shared helper responsibilities.
– If space allows, indicate error handling or retry loops in the GitHub Client component.
Putting it all together:
[User CLI] → [Settings Loader]
→ [CSV Parser] ↔ [Transform Layer] ↔ [GitHub Client] → [GitHub REST API]
← [GitHub REST API] ← [GitHub Client] ← [Transform Layer] ← [CSV Serializer]
• Surround the CLI, Parser, Transform, Client in one container named “ciftt application”.