{"id":20916969,"url":"https://github.com/wise-deldu/prodigy_sd_01","last_synced_at":"2025-07-12T01:39:28.442Z","repository":{"id":256190188,"uuid":"853927432","full_name":"Wise-deldu/PRODIGY_SD_01","owner":"Wise-deldu","description":"This repository contains a Temperature Conversion Program","archived":false,"fork":false,"pushed_at":"2024-09-17T07:08:33.000Z","size":2285,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T16:38:47.031Z","etag":null,"topics":["pycodestyle","pytest","python3"],"latest_commit_sha":null,"homepage":"","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/Wise-deldu.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-07T23:29:07.000Z","updated_at":"2024-09-17T07:08:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"a002d630-2f83-4476-becb-21917aba5a54","html_url":"https://github.com/Wise-deldu/PRODIGY_SD_01","commit_stats":null,"previous_names":["wise-deldu/prodigy_sd_01"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wise-deldu%2FPRODIGY_SD_01","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wise-deldu%2FPRODIGY_SD_01/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wise-deldu%2FPRODIGY_SD_01/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wise-deldu%2FPRODIGY_SD_01/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wise-deldu","download_url":"https://codeload.github.com/Wise-deldu/PRODIGY_SD_01/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243311058,"owners_count":20270895,"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":["pycodestyle","pytest","python3"],"created_at":"2024-11-18T16:29:12.812Z","updated_at":"2025-03-12T23:28:29.693Z","avatar_url":"https://github.com/Wise-deldu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Temperature Conversion Program\n\n## Description\n* A Python program that converts temperatures between Celsius, Fahrenheit, and Kelvin. \n* The program includes functions for each type of conversion and uses `pytest` for unit testing to ensure accuracy and reliability. \n* Additionally, `pycodestyle` is used to enforce `PEP 8` style guidelines for clean and readable code.\n\n## Features\n- Converts temperatures between:\n  - Celsius to Fahrenheit\n  - Celsius to Kelvin\n  - Fahrenheit to Celsius\n  - Fahrenheit to Kelvin\n  - Kelvin to Celsius\n  - Kelvin to Fahrenheit\n- Input validation and error handling for incorrect inputs.\n- Modular code design for easy maintenance and reusability.\n- Unit tests using `pytest` to ensure correctness.\n- Code adheres to PEP 8 style guidelines, checked with `pycodestyle`.\n\n## Requirements\n* Python 3.x\n* `pytest` (for running tests)\n* `pycodestyle` (for checking code style)\n\n\n## Usage\n\n### Running the Program\n1. **Clone this repository:**\n   ```bash\n   git clone https://github.com/Wise-deldu/PRODIGY_SD_01\n   cd PRODIGY_SD_01\n2. **Run the program:**\n```\npython3 temp_converter.py\n```\n\n3. The program will prompt you to input a temperature and select the original unit (Celsius, Fahrenheit, or Kelvin). It will then display the equivalent values in the other units.\n\n**Example:**\n```\nEnter the temperature value: 100\nEnter the original unit (Celsius, Fahrenheit, or Kelvin): celsius\n100 Celsius is equivalent to:\n212.00 °F\n373.15 K\n```\n4. Testing the Program\nTo run the unit tests using `pytes`t, first `install pytest` if you don't have it:\n```\npip3 install pytest\n```\nRun the tests with:\n```\npytest test_temp_converter.py\n```\n\n**Style Guide Enforcement with pycodestyle**\nThis project follows the `PEP 8` style guide. You can check for any style violations using pycodestyle.\n\n**Install `pycodestyle`:**\n```\npip install pycodestyle\n```\nRun pycodestyle on your Python files:\n```\npycodestyle temp_converter.py\npycodestyle test_temp_converter.py\n```\n\n## Authors\n* [Wise D. Duho](https://github.com/Wise-deldu)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwise-deldu%2Fprodigy_sd_01","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwise-deldu%2Fprodigy_sd_01","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwise-deldu%2Fprodigy_sd_01/lists"}