{"id":26873676,"url":"https://github.com/misaghmomenib/csv-viewer-python","last_synced_at":"2026-04-27T23:32:47.212Z","repository":{"id":285342809,"uuid":"957791345","full_name":"MisaghMomeniB/CSV-Viewer-Python","owner":"MisaghMomeniB","description":"A Powerful Pyqt5-based Csv File Viewer With Advanced Data Visualization and Editing Capabilities","archived":false,"fork":false,"pushed_at":"2025-03-31T06:52:28.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T07:27:52.781Z","etag":null,"topics":["csv","csv-viewer","git","open-source","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MisaghMomeniB.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-31T06:18:04.000Z","updated_at":"2025-03-31T06:52:31.000Z","dependencies_parsed_at":"2025-03-31T07:28:04.447Z","dependency_job_id":"0898b828-a23e-403f-97ac-aca00dd5d1a2","html_url":"https://github.com/MisaghMomeniB/CSV-Viewer-Python","commit_stats":null,"previous_names":["misaghmomenib/csv-viewer-python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MisaghMomeniB%2FCSV-Viewer-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MisaghMomeniB%2FCSV-Viewer-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MisaghMomeniB%2FCSV-Viewer-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MisaghMomeniB%2FCSV-Viewer-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MisaghMomeniB","download_url":"https://codeload.github.com/MisaghMomeniB/CSV-Viewer-Python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246443534,"owners_count":20778252,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csv","csv-viewer","git","open-source","python3"],"created_at":"2025-03-31T09:19:50.898Z","updated_at":"2026-04-27T23:32:47.206Z","avatar_url":"https://github.com/MisaghMomeniB.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🗄️ CSV Viewer (Python)\n\nA lightweight and user-friendly **CSV viewer** built with Python, designed for quick inspection and basic manipulation of CSV, TSV, or other delimited text files.\n\n---\n\n## 📋 Table of Contents\n\n1. [Overview](#overview)  \n2. [Features](#features)  \n3. [Requirements](#requirements)  \n4. [Installation](#installation)  \n5. [Usage](#usage)  \n6. [Code Structure](#code-structure)  \n7. [Enhancement Ideas](#enhancement-ideas)  \n8. [Contributing](#contributing)  \n9. [License](#license)\n\n---\n\n## 💡 Overview\n\nThis tool lets users easily view tabular data from CSV or delimited files via a CLI. It provides quick insights into large datasets without the need for spreadsheets or data-heavy tools by leveraging Python’s standard library :contentReference[oaicite:1]{index=1}.\n\n---\n\n## ✅ Features\n\n- 📂 Read local delimited files (CSV, TSV, custom separators)  \n- 🔢 Display row count, headers, and sample rows  \n- 🔍 Sort data by column alphabetically or numerically  \n- ✅ Clean handling of missing or malformed lines  \n- 🛠️ Option to export a cleaned/filtered view to a new file\n\n---\n\n## 🧾 Requirements\n\n- Python **3.7+**  \n- Only uses the Python **standard library** (`csv`, `argparse`, `sys`, etc.)\n\n---\n\n## ⚙️ Installation\n\n```bash\ngit clone https://github.com/MisaghMomeniB/CSV-Viewer-Python.git\ncd CSV-Viewer-Python\npython3 --version  # Confirm Python ≥3.7\n````\n\n---\n\n## 🚀 Usage\n\n### CLI Options\n\nBasic usage:\n\n```bash\npython csv_viewer.py --path data.csv --delimiter comma --sample 20\n```\n\nAvailable flags:\n\n* `--path \u003cfile\u003e`: Path to your CSV/TSV file\n* `--delimiter \u003cchar\u003e`: `comma`, `semicolon`, `tab`, or custom\n* `--sample \u003cint\u003e`: Number of rows to preview (default: 10)\n* `--sort \u003ccolumn\u003e`: Sort preview by this column\n* `--export \u003cfile\u003e`: Save cleaned/sample rows to a new file\n\n---\n\n## 📁 Code Structure\n\n```\nCSV-Viewer-Python/\n├── csv_viewer.py   # Main CLI + core logic\n├── README.md       # You're reading it!\n└── LICENSE\n```\n\nInside `csv_viewer.py`:\n\n* Argparse handles CLI options\n* Uses `csv.reader` / `csv.DictReader` for parsing\n* Basic validation of headers, row counts, and empty fields\n* Functions to preview and optionally export data\n\n---\n\n## 💡 Enhancement Ideas\n\n* 📊 Add interactive filter options (e.g., show rows where column \u003e value)\n* 📦 Support export to formats like JSON or Markdown tables\n* 📈 Integrate with Pandas for advanced previews or plotting\n* 🧭 Build a GUI with libraries like Tkinter or PyQt\n* 🔄 Add batch previewing for multi-file browsing\n\n---\n\n## 🤝 Contributing\n\nImprovements welcome! Possible additions:\n\n* Support large files via streaming\n* Implement real-time file watching\n* Add deduplication or column-based filters\n\n**To contribute**:\n\n1. Fork this repo\n2. Create a branch (`feature/...`)\n3. Write clear, well-commented code\n4. Open a Pull Request with a description of changes\n\n---\n\n## 📄 License\n\nLicensed under the **MIT License** — see `LICENSE` file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmisaghmomenib%2Fcsv-viewer-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmisaghmomenib%2Fcsv-viewer-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmisaghmomenib%2Fcsv-viewer-python/lists"}