SimpleHTTPServe


NameSimpleHTTPServe JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/goyal-aman/SimpleHTTP
SummarySimpleHTTP is a minimalist, no-nonsense HTTP server written in Python. Created purely for fun, this server is as simple as it gets—no third-party dependencies, no unnecessary features, just pure, unfiltered HTTP handling. Note that this project is currently unstable and primarily a learning experiment.
upload_time2024-08-14 11:24:44
maintainerNone
docs_urlNone
authorAman Goyal
requires_python>=3.7
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # SimpleHTTPServe

## Overview
**SimpleHTTPServe** is a minimalist, no-nonsense HTTP server written in Python. Created purely for fun, this server is as simple as it gets—no third-party dependencies, no unnecessary features, just pure, unfiltered HTTP handling. Note that this project is currently unstable and primarily a learning experiment.

## Features
- Zero third-party dependencies
- Lightweight and easy to understand
- Handles basic HTTP requests and responses
- Designed for simplicity and educational purposes

## Getting Started

### Prerequisites
- Python 3.6 or higher

### Installation
Clone the repository to your local machine:

```bash
pip install SimpleHTTPServe
```

## Usage
```python3
from SimpleHTTPServe import App, Response, HtmlResponse
from http import HTTPStatus

app = App()

def serve(request):
    return Response(HTTPStatus.OK, "aman")

def index(request):
    return HtmlResponse(HTTPStatus.OK, "hello.html")

if __name__=="__main__":
    app.register("GET", "", serve)
    app.register("GET", "/index", index)
    app.start()

```

## Contributing to SimpleHTTPServe

Feel free to add whatever you feel is intresting. Whether you're fixing bugs, adding new features, improving the documentation, or simply offering suggestions, your contributions are highly appreciated.

### How to Contribute

#### 1. Fork the Repository
Click on the "Fork" button at the top of this repository to create your own copy of the SimpleHTTPServe repository. And then create PR.

#### 2. Clone Your Fork
Clone your forked repository to your local machine.

```bash
git clone https://github.com/yourusername/SimpleHTTPServe.git
```

### Next Steps
1. read port from terminal/config

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/goyal-aman/SimpleHTTP",
    "name": "SimpleHTTPServe",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": null,
    "author": "Aman Goyal",
    "author_email": "Aman Goyal <amangoyal8110@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/28/3f/b1635419e9a36972ae0e4bf0869750e8decfd0aa8e8e4e846ecad033d3fc/SimpleHTTPServe-0.0.3.tar.gz",
    "platform": null,
    "description": "# SimpleHTTPServe\n\n## Overview\n**SimpleHTTPServe** is a minimalist, no-nonsense HTTP server written in Python. Created purely for fun, this server is as simple as it gets\u2014no third-party dependencies, no unnecessary features, just pure, unfiltered HTTP handling. Note that this project is currently unstable and primarily a learning experiment.\n\n## Features\n- Zero third-party dependencies\n- Lightweight and easy to understand\n- Handles basic HTTP requests and responses\n- Designed for simplicity and educational purposes\n\n## Getting Started\n\n### Prerequisites\n- Python 3.6 or higher\n\n### Installation\nClone the repository to your local machine:\n\n```bash\npip install SimpleHTTPServe\n```\n\n## Usage\n```python3\nfrom SimpleHTTPServe import App, Response, HtmlResponse\nfrom http import HTTPStatus\n\napp = App()\n\ndef serve(request):\n    return Response(HTTPStatus.OK, \"aman\")\n\ndef index(request):\n    return HtmlResponse(HTTPStatus.OK, \"hello.html\")\n\nif __name__==\"__main__\":\n    app.register(\"GET\", \"\", serve)\n    app.register(\"GET\", \"/index\", index)\n    app.start()\n\n```\n\n## Contributing to SimpleHTTPServe\n\nFeel free to add whatever you feel is intresting. Whether you're fixing bugs, adding new features, improving the documentation, or simply offering suggestions, your contributions are highly appreciated.\n\n### How to Contribute\n\n#### 1. Fork the Repository\nClick on the \"Fork\" button at the top of this repository to create your own copy of the SimpleHTTPServe repository. And then create PR.\n\n#### 2. Clone Your Fork\nClone your forked repository to your local machine.\n\n```bash\ngit clone https://github.com/yourusername/SimpleHTTPServe.git\n```\n\n### Next Steps\n1. read port from terminal/config\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "SimpleHTTP is a minimalist, no-nonsense HTTP server written in Python. Created purely for fun, this server is as simple as it gets\u2014no third-party dependencies, no unnecessary features, just pure, unfiltered HTTP handling. Note that this project is currently unstable and primarily a learning experiment.",
    "version": "0.0.3",
    "project_urls": {
        "Homepage": "https://github.com/goyal-aman/SimpleHTTP",
        "Issues": "https://github.com/goyal-aman/SimpleHTTP/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c034ffc93710f18eebc2eb583f46970d35841cdd2cd4abe1af154bedb2bd8f7e",
                "md5": "cc3790a978f64a4d1a465cce679ba9c9",
                "sha256": "14f659a71ee6b85db1709f385c840d6bb8bd5cbd3b41d7329f57e18614d605ce"
            },
            "downloads": -1,
            "filename": "SimpleHTTPServe-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cc3790a978f64a4d1a465cce679ba9c9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 8992,
            "upload_time": "2024-08-14T11:24:43",
            "upload_time_iso_8601": "2024-08-14T11:24:43.598017Z",
            "url": "https://files.pythonhosted.org/packages/c0/34/ffc93710f18eebc2eb583f46970d35841cdd2cd4abe1af154bedb2bd8f7e/SimpleHTTPServe-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "283fb1635419e9a36972ae0e4bf0869750e8decfd0aa8e8e4e846ecad033d3fc",
                "md5": "b50162d020e2a76f151078cc0a2396a6",
                "sha256": "7e48a0c2f3bea071b2df5507dbb49d5df824e02bbc2cbfef59a6e61eabb28fe0"
            },
            "downloads": -1,
            "filename": "SimpleHTTPServe-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "b50162d020e2a76f151078cc0a2396a6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 8376,
            "upload_time": "2024-08-14T11:24:44",
            "upload_time_iso_8601": "2024-08-14T11:24:44.612991Z",
            "url": "https://files.pythonhosted.org/packages/28/3f/b1635419e9a36972ae0e4bf0869750e8decfd0aa8e8e4e846ecad033d3fc/SimpleHTTPServe-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-14 11:24:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "goyal-aman",
    "github_project": "SimpleHTTP",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "simplehttpserve"
}
        
Elapsed time: 0.43629s