{"id":19934069,"url":"https://github.com/simoso68/backpipe","last_synced_at":"2025-05-03T12:30:28.388Z","repository":{"id":205539509,"uuid":"714499609","full_name":"Simoso68/backpipe","owner":"Simoso68","description":"Backend HTTP framework for Python.","archived":false,"fork":false,"pushed_at":"2024-07-30T22:25:08.000Z","size":140,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T15:51:55.017Z","etag":null,"topics":["api","backend","framework","http","internet","package","pypi","python","server","www"],"latest_commit_sha":null,"homepage":"https://backpipe.streamlit.app","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Simoso68.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-05T02:58:27.000Z","updated_at":"2024-07-30T22:25:11.000Z","dependencies_parsed_at":"2023-11-10T02:47:01.336Z","dependency_job_id":"627041b2-59a6-458b-86a8-09ec06405c3c","html_url":"https://github.com/Simoso68/backpipe","commit_stats":null,"previous_names":["simoso68/backpipe"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simoso68%2Fbackpipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simoso68%2Fbackpipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simoso68%2Fbackpipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simoso68%2Fbackpipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Simoso68","download_url":"https://codeload.github.com/Simoso68/backpipe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252190439,"owners_count":21708881,"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":["api","backend","framework","http","internet","package","pypi","python","server","www"],"created_at":"2024-11-12T23:15:47.347Z","updated_at":"2025-05-03T12:30:28.069Z","avatar_url":"https://github.com/Simoso68.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=center\u003eBackpipe\u003c/h1\u003e\n\n\u003cp align=center\u003eBack-Ends simplified.\u003c/p\u003e\n\n\u003cdiv align=center\u003e\n\u003cimg src=\"https://img.shields.io/pypi/v/backpipe?color=blue\"\u003e\n\u003cimg src='https://static.pepy.tech/badge/backpipe'\u003e\n\u003cimg src=\"https://img.shields.io/pypi/l/backpipe?color=yellow\"\u003e\n\u003cimg src=\"https://img.shields.io/github/repo-size/Simoso68/backpipe?color=green\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.github.com%2Frepos%2FSimoso68%2Fbackpipe%2Flanguages\u0026query=Python\u0026label=characters\u0026color=green\"\u003e\n\n\u003cbr\u003e\n\u003cpre\u003epip install backpipe\u003c/pre\u003e\n\u003c/div\u003e\n\n## Info\n\nBackpipe tries to support all operating systems. \\\nBut its primary focus lies on Linux support, \\\nas it is the main choice for website hosting. \\\n\\\nRunning it on Windows might lead to issues and is not recommended.\n\n## Why the name?\n\nThe name 'Backpipe' is inspired by the english word 'Bagpipe'. \\\nI decided to call it 'Backpipe', because it is a **Back**-End Framework. \\\nIt is just a little pun.\n\n## Samples\n\n### Hello World!\n\n```python\nimport backpipe\n\nserver = backpipe.BackPipe()\n\n@server.get()\ndef hello_world(r: backpipe.Request):\n    return (200, \"Hello World\")\n\nserver.run()\n```\n\n### What is my IP address?\n\n```python\nimport backpipe\n\nserver = backpipe.BackPipe()\n\n@server.get()\ndef my_ip_address(r: backpipe.Request):\n    return (200, r.address)\n\nserver.run()\n```\n\n### Complex Example\n\n```python\nimport backpipe\n\nserver = backpipe.BackPipe()\n\n@server.any()\ndef wrong_method(r: backpipe.Request):\n    return (405, f\"Wrong method: {r.method}, use POST.\")\n\n@server.unknown()\ndef unknown_method(r: backpipe.Request):\n    return (405, f\"Unknown method: {r.method}, use POST.\")\n\n@server.post()\ndef login(r: backpipe.Request):\n    try:\n        if r.headers[\"key\"] == \"password1234\":\n            return (200, \"Password correct!\")\n        else:\n            return (304, \"Password wrong!\")\n    except KeyError:\n        return (400, \"invalid request, 'key' header missing.\")\n\nserver.run()\n```\n\n### Using Request Bodies\n\n```python\nimport backpipe\n\nserver = backpipe.BackPipe()\n\n@server.post()\ndef respond(r: backpipe.Request):\n    return (200, r.body) # Returns the client's request body\n\nserver.run()\n```\n\n## Known issues\n\n- URI-too-long message raises error on client-side when using Python requests\n- Limited client information on URI-too-long message (probably unfixable.)\n\n## HTTPS notice\n\nWhen activating HTTPS, you need to sign your certificate file \\\nwith a key provided by a trusted authority. \\\n\\\nSelf-signing your certificate will make tools such as \\\nCURL, your Browser, etc. raise a warning, \\\nthat the website may be unsafe.\n\n## Documentation\n\nRead through the [Documentation](https://backpipe.streamlit.app), \\\nto get started with backpipe\n\n## License\n\nBackpipe is licensed under the GNU GPL v3.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimoso68%2Fbackpipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimoso68%2Fbackpipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimoso68%2Fbackpipe/lists"}