{"id":17018006,"url":"https://github.com/edinsonrequena/data_optimization_test","last_synced_at":"2026-04-13T22:03:11.734Z","repository":{"id":218002401,"uuid":"745335044","full_name":"EdinsonRequena/data_optimization_test","owner":"EdinsonRequena","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-20T08:04:11.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T16:11:11.508Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EdinsonRequena.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":"2024-01-19T05:34:05.000Z","updated_at":"2024-01-19T07:35:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"d4116e95-7ef1-4e9f-8fb0-2324df031e17","html_url":"https://github.com/EdinsonRequena/data_optimization_test","commit_stats":null,"previous_names":["edinsonrequena/data_optimization_test"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EdinsonRequena/data_optimization_test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdinsonRequena%2Fdata_optimization_test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdinsonRequena%2Fdata_optimization_test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdinsonRequena%2Fdata_optimization_test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdinsonRequena%2Fdata_optimization_test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EdinsonRequena","download_url":"https://codeload.github.com/EdinsonRequena/data_optimization_test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdinsonRequena%2Fdata_optimization_test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31772643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-10-14T06:44:13.968Z","updated_at":"2026-04-13T22:03:11.718Z","avatar_url":"https://github.com/EdinsonRequena.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Data Optimization Project\n\n## Description\nThis project is a Python application for reading data from a CSV file and loading it into a PostgreSQL database, optimizing performance and minimizing resource consumption.\n\n## Technologies Used\n- **Python**: Programming language used for application development.\n- **Pandas**: Python library for data manipulation and analysis.\n- **Psycopg2**: PostgreSQL database adapter for the Python programming language.\n- **PostgreSQL**: Relational database management system.\n\n## How to Run\nTo run this project, follow these steps:\n\n0. **CSV File Setup**:\n- Create a CSV file separated by ; (semicolon) with the following columns inside on a `data` folder on the root of the project:\n    - `PointOfSale`: string\n    - `Product`: string\n    - `Date`: date\n    - `Stock`: integer\n\n\n1. **Clone the Repository**:\n    - Open the command line and navigate to the directory where you want to clone the repository.\n    - Run the following command:\n        ```\n        git clone https://github.com/EdinsonRequena/data_optimization_test.git\n        ```\n\n2. **Install Dependencies**:\n    - Install [Pipenv](https://pypi.org/project/pipenv/).\n    - Navigate to the project's root directory.\n    - Run the following command:\n        ```\n        pipenv install Pipfile\n        ```\n    - Activate the virtual environment by running the following command:\n        ```\n        pipenv shell\n        ```\n\n3. **Database Setup**:\n- Ensure PostgreSQL is installed and running.\n- Create a database for the project.\n\n4. **Setup `.env` File**:\nCreate a `.env` file in the root of the project with the following variables:\n```\nDB_NAME=your_database_name\nDB_USER=your_username\nDB_PASS=your_password\nDB_HOST=localhost (or your database host)\nDB_PORT=5432 (or your database port)\n```\n\n5. **Run the Application**:\n- Navigate to the project's root directory.\n- Run the following command:\n    ```\n    pipenv run python main.py\n    ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedinsonrequena%2Fdata_optimization_test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedinsonrequena%2Fdata_optimization_test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedinsonrequena%2Fdata_optimization_test/lists"}