{"id":15105237,"url":"https://github.com/sudo-arash/space-calculator","last_synced_at":"2026-01-18T10:28:16.406Z","repository":{"id":257757912,"uuid":"859235553","full_name":"sudo-arash/space-calculator","owner":"sudo-arash","description":"The web application that allows you to perform various space-related calculations","archived":false,"fork":false,"pushed_at":"2024-09-18T10:30:56.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T12:42:15.357Z","etag":null,"topics":["astronomical-calculations","astronomy","astropy","calculations","cosmology","flask","good-first-issue","open-source","planet-alignment","python","schwarzschild-radius","science","space","star-data","web-application","web-development"],"latest_commit_sha":null,"homepage":"https://ghalbeyou6.pythonanywhere.com/","language":"HTML","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/sudo-arash.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-18T10:16:37.000Z","updated_at":"2024-09-20T14:16:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"ed764623-6ae7-4b60-95ee-a690b3365d60","html_url":"https://github.com/sudo-arash/space-calculator","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"55b5e8ebdb280decc112324af68e87765e090351"},"previous_names":["sudo-arash/space-calculator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sudo-arash/space-calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudo-arash%2Fspace-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudo-arash%2Fspace-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudo-arash%2Fspace-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudo-arash%2Fspace-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sudo-arash","download_url":"https://codeload.github.com/sudo-arash/space-calculator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudo-arash%2Fspace-calculator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28534396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T10:13:46.436Z","status":"ssl_error","status_checked_at":"2026-01-18T10:13:11.045Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["astronomical-calculations","astronomy","astropy","calculations","cosmology","flask","good-first-issue","open-source","planet-alignment","python","schwarzschild-radius","science","space","star-data","web-application","web-development"],"created_at":"2024-09-25T20:22:06.146Z","updated_at":"2026-01-18T10:28:16.353Z","avatar_url":"https://github.com/sudo-arash.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Space Calculator 🌌\n\n[View the website \u003e\u003e](https://ghalbeyou6.pythonanywhere.com/)\nWelcome to the Space Calcuator! This web application allows you to perform various space-related calculations, including:\n\n- Calculating when planets are aligned.\n- Determining the Schwarzschild radius of black holes.\n- Choosing between predefined stars or custom star masses.\n\n## Features ✨\n\n- **🌍 Planet Alignment Calculation**: Input two planets and a date (or let the system automatically calculate future alignments within a specified number of years).\n- **🌌 Schwarzschild Radius Calculation**: Choose from a list of stars or input a custom mass to calculate the Schwarzschild radius of a black hole.\nand more to come!\n## Getting Started 🚀\n\n### Prerequisites 📦\n\nEnsure you have the following installed:\n\n- Python 3.x\n- Flask\n- Astropy\n\n### Installation 🛠️\n\n1. **Clone the repository:**\n\n   ```bash\n   git clone https://github.com/sudo-arash/space-calculator.git\n   ```\n\n2. **Navigate to the project directory:**\n\n   ```bash\n   cd space-calculator\n   ```\n\n3. **Install the required packages:**\n\n   ```bash\n   pip install astropy flask\n   ```\n\n### Running the Application 🏃\n\n1. **Start the Flask server:**\n\n   ```bash\n   python app.py\n   ```\n\n2. **Open your browser and visit:**\n\n   ```\n   http://127.0.0.1:5000\n   ```\n\n### Usage 🌟\n\n1. **Planet Alignment:**\n   - Select two planets from the dropdown menu.\n   - Choose a specific date or let the application find the next alignment automatically.\n   - Click \"Calculate\" to see the results!\n\n2. **Schwarzschild Radius:**\n   - Choose a star from the list or enter a custom mass in solar masses.\n   - Click \"Calculate\" to find out the Schwarzschild radius of a black hole for the selected star or mass.\n\n## Code Structure 📁\n\n- **`app.py`**: Contains the Flask routes and logic for calculations.\n- **`templates/index.html`**: The main HTML file with forms and results display.\n- **`static/`**: Contains static files like CSS and JavaScript.\n\n## Contributing 🤝\n\nIf you would like to contribute to this project, please follow these steps:\n\n1. **Fork the repository.**\n2. **Create a new branch:**\n\n   ```bash\n   git checkout -b feature-branch\n   ```\n\n3. **Make your changes and commit:**\n\n   ```bash\n   git commit -m \"Add feature\"\n   ```\n\n4. **Push to the branch:**\n\n   ```bash\n   git push origin feature-branch\n   ```\n\n5. **Create a pull request.**\n\n## License 📝\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments 🙏\n\n- Thanks to the Astropy library for its powerful astronomical computations.\n- Special thanks to all contributors and users who provide feedback!\n\n---\n\nFeel free to reach out if you have any questions or suggestions 🌠\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudo-arash%2Fspace-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsudo-arash%2Fspace-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudo-arash%2Fspace-calculator/lists"}