{"id":23058899,"url":"https://github.com/roadmaus/csv-to-sql","last_synced_at":"2025-04-03T06:21:03.645Z","repository":{"id":209829506,"uuid":"722150527","full_name":"roadmaus/csv-to-sql","owner":"roadmaus","description":"simple script to write Verizon GPS data to a db","archived":false,"fork":false,"pushed_at":"2023-12-07T13:13:14.000Z","size":1413,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T20:15:17.330Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roadmaus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-22T14:41:44.000Z","updated_at":"2023-11-29T09:28:04.000Z","dependencies_parsed_at":"2023-11-29T11:44:39.531Z","dependency_job_id":null,"html_url":"https://github.com/roadmaus/csv-to-sql","commit_stats":null,"previous_names":["roadmaus/csv-to-sql"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roadmaus%2Fcsv-to-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roadmaus%2Fcsv-to-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roadmaus%2Fcsv-to-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roadmaus%2Fcsv-to-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roadmaus","download_url":"https://codeload.github.com/roadmaus/csv-to-sql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246944976,"owners_count":20858872,"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":[],"created_at":"2024-12-16T02:18:17.158Z","updated_at":"2025-04-03T06:21:03.627Z","avatar_url":"https://github.com/roadmaus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fahrdaten-Manager\n[Lesen Sie dieses Dokument auf Deutsch](docs/ger.md)\n\n\nFahrdaten-Manager is a Python-based tool for importing and processing vehicle trip data stored in CSV format, managing this data within a SQLite database, and exporting it to an XLSX file for further analysis.\n\n## Features\n\n- Load data from CSV files.\n- Create and update SQLite tables for each vehicle.\n- Check for existing entries and update records if necessary.\n- Export data to XLSX format, with individual sheets per vehicle.\n\n## Requirements\n\n- Python 3.10.0\n- pandas\n- sqlite3\n- re (Regular Expression module)\n\n## Installation\n\n1. Ensure Python 3.10.0 is installed on your system.\n2. Clone the repository or download the source code.\n3. Navigate to the project directory.\n\n## Setting Up a Virtual Environment\n\nSetting up a virtual environment is recommended to avoid conflicts with other packages and versions. To set up and activate a virtual environment:\n\nFor **Unix/macOS** systems:\n\n```sh\npython3 -m venv venv\nsource venv/bin/activate\n```\n\nFor **Windows** systems:\n\n```bat\npython -m venv venv\n.\\venv\\Scripts\\activate\n```\n\nOnce the virtual environment is activated, install the required packages:\n\n```sh\npip install -r requirements.txt\n```\n\n## Usage\n\nTo run the program, use the provided shell script for Unix/macOS or batch file for Windows:\n\nFor **Unix/macOS**:\n\n```sh\n./run.sh\n```\n\nFor **Windows**:\n\n```bat\n.\\run.bat\n```\n\n## Usage with GUI\n\nFahrdaten-Manager comes with a graphical user interface (GUI) for ease of use. To interact with the program, follow these steps:\n\n1. Launch the program by running `run.sh` or `run.bat` script, depending on your operating system.\n2. Use the GUI to:\n   - Select your CSV file by clicking the \"CSV\" button.\n   - Choose your database file by clicking the \"Database\" button.\n   - After one is selected it will let you choose a XLSX file\n   - If a new databse file is created it will create a XLSX file automatically with the same name\n\nOnce the files are selected, the program will display the paths to the chosen files on the interface. \n\n3. Click the \"Processing\" button to begin processing the data. The GUI will provide feedback on the progress of the operations.\n\n![Example_gui](data/Example.gif)\n\nAfter processing, the SQLite database will be updated, and an XLSX file will be created at the specified location with the processed data.\n\n\n## How It Works\n\nThe script performs several key functions:\n- Establishes a connection to a SQLite database.\n- Creates tables for each unique vehicle name found in the CSV data.\n- Populates these tables with the trip data, ensuring that the latest trip end times are recorded.\n- Generates an XLSX file with a sheet for each vehicle, containing the trip data.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE.md file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froadmaus%2Fcsv-to-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froadmaus%2Fcsv-to-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froadmaus%2Fcsv-to-sql/lists"}