{"id":19583006,"url":"https://github.com/entr0pie/apollo","last_synced_at":"2026-06-18T10:32:03.652Z","repository":{"id":177128818,"uuid":"658920337","full_name":"entr0pie/apollo","owner":"entr0pie","description":"Apollo - Python Module for HTTP Requests Using Sockets","archived":false,"fork":false,"pushed_at":"2023-06-29T01:18:23.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T12:23:47.133Z","etag":null,"topics":["http-requests","oop","python","requests","socket"],"latest_commit_sha":null,"homepage":"https://entr0pie.github.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/entr0pie.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":"2023-06-26T19:12:56.000Z","updated_at":"2023-06-26T19:45:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"db2b8aa0-9039-4b35-b985-8a842b452479","html_url":"https://github.com/entr0pie/apollo","commit_stats":null,"previous_names":["entr0pie/apollo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/entr0pie/apollo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entr0pie%2Fapollo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entr0pie%2Fapollo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entr0pie%2Fapollo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entr0pie%2Fapollo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/entr0pie","download_url":"https://codeload.github.com/entr0pie/apollo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entr0pie%2Fapollo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34487069,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["http-requests","oop","python","requests","socket"],"created_at":"2024-11-11T07:39:03.348Z","updated_at":"2026-06-18T10:32:03.627Z","avatar_url":"https://github.com/entr0pie.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Apollo - Python Module for HTTP Requests Using Sockets\n\n## Description\n\nApollo is a lightweight Python module that allows you to perform HTTP requests using only sockets. It provides a simplified way to interact with web servers. This project was developed as a demonstration for my blog post on low-level networking in Python (make sure to check it out!).\n\n## Installation\n\nTo use Apollo, follow these steps:\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/entr0pie/apollo \n```\n\n2. Change to the project directory:\n\n```bash\ncd apollo\n```\n\n## Usage\n\nApollo is very similar to the requests library. You can use it in two ways: \n\n1. Using the main functions:\n\n```python\nfrom Apollo import get, post \n\nresponse = get(\"http://example.com\")\nprint(response.status_code)  # Output: 200\n\nresponse = post(\"http://localhost/\", data={\"username\":\"admin\", \"password\":\"12345\"})\nprint(response.status_code)  # Output: 415\n\nresponse = post(\"http://localhost/\", data={\"username\":\"admin\", \"password\":\"12345\"}, headers={\"Content-Type\": \"application/json\"})\n\nif response.status_code == 200:\n    response.print()\n```\n\n2. Building up your request by hand:\n\n```python\nfrom Apollo import Request \n\nrequest = Request()\nrequest.method = \"DELETE\"\nrequest.path = \"/api/user/delete\"\n\nrequest.headers['User-Agent'] = \"Secret Spy\"\nresponse = request.send()\nprint(response.status_code)  # Output: 204\n```\n\nTo test it somewhere, go to the `server` directory and start the docker container:\n\n```bash\ncd server\ndocker compose up --build\n```\n\n## Known Limitations and Issues\n\nThis project was developed to a blog post on how to use sockets and interact with HTTP servers. That way, it isn't meant for daily use. \n\nAlso, Apollo was not built to handle `keep-alive` connections. If you're requesting with it, make sure to use `Connection: close` with it.\n\n## License\n\nThis project is under the [Unlicense](LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fentr0pie%2Fapollo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fentr0pie%2Fapollo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fentr0pie%2Fapollo/lists"}