# Backkr - A backend framework the web
Created by [**@Almas-Ali**](https://github.com/Almas-Ali)
## Table of Contents
- [Introduction](#introduction)
- [Installation](#installation)
- [Usage](#usage)
- [Documentation](#documentation)
- [License](#license)
## Introduction
Try out the [**examples/**](https://github.com/Almas-Ali/backkr/tree/master/examples/) folder to see how to use the framework.
## Installation
```bash
pip install backkr
```
## Usage
```python
from datetime import datetime
from backkr import (
Backkr,
HTMLResponse
)
app = Backkr()
@app.get('/')
async def index(request):
return HTMLResponse(
'<h1>Hello World, Time: {{ time }}</h1>',
time=datetime.now().strftime("%H:%M:%S")
)
@app.get('/{path}')
async def error_404(request):
path = request.match_info.get('path')
return HTMLResponse(f'''\
<center>
<h1>404 Not Found</h1>
<p>Page /{path} not found</p>
</center>
''')
if __name__ == "__main__":
app.run(
debug=True,
host='127.0.0.1',
port=8000
)
```
## Documentation
[Website](https://almas-ali.github.io/backkr/)
## LICENSE
Licensed under the [**MIT LICENSE**](https://github.com/Almas-Ali/backkr/tree/master/LICENSE)
Raw data
{
"_id": null,
"home_page": "https://github.com/Almas-Ali/backkr",
"name": "backkr",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "",
"keywords": "web framework",
"author": "Almas Ali",
"author_email": "almaspr3@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/61/76/cf3633ab41d635cfe179ce534733f8a15fd390b16a264c5053e4740d6c6d/backkr-0.0.4.tar.gz",
"platform": null,
"description": "# Backkr - A backend framework the web \n\nCreated by [**@Almas-Ali**](https://github.com/Almas-Ali)\n\n## Table of Contents\n\n- [Introduction](#introduction)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Documentation](#documentation)\n- [License](#license)\n\n## Introduction\n\nTry out the [**examples/**](https://github.com/Almas-Ali/backkr/tree/master/examples/) folder to see how to use the framework.\n\n## Installation\n\n```bash\npip install backkr\n```\n\n## Usage\n\n```python\nfrom datetime import datetime\n\nfrom backkr import (\n Backkr,\n HTMLResponse\n)\n\napp = Backkr()\n\n@app.get('/')\nasync def index(request):\n return HTMLResponse(\n '<h1>Hello World, Time: {{ time }}</h1>',\n time=datetime.now().strftime(\"%H:%M:%S\")\n )\n\n@app.get('/{path}')\nasync def error_404(request):\n path = request.match_info.get('path')\n return HTMLResponse(f'''\\\n<center>\n <h1>404 Not Found</h1>\n <p>Page /{path} not found</p>\n</center>\n''')\n\n\nif __name__ == \"__main__\":\n app.run(\n debug=True,\n host='127.0.0.1',\n port=8000\n )\n\n```\n\n## Documentation\n\n[Website](https://almas-ali.github.io/backkr/)\n\n## LICENSE\n\nLicensed under the [**MIT LICENSE**](https://github.com/Almas-Ali/backkr/tree/master/LICENSE)\n",
"bugtrack_url": null,
"license": "",
"summary": "A backend framework the web",
"version": "0.0.4",
"project_urls": {
"Homepage": "https://github.com/Almas-Ali/backkr"
},
"split_keywords": [
"web",
"framework"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2108c98d1ebcddea80f2c61d74f16339100c84e9a2d4172d37023730e1a58eda",
"md5": "c224265d767f4a10830f236b5c7572ca",
"sha256": "a7776873aeb2e76632666b8e49d602dec0b498f6b84e1eada3d1aeb47b673664"
},
"downloads": -1,
"filename": "backkr-0.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c224265d767f4a10830f236b5c7572ca",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 9344,
"upload_time": "2023-12-10T06:03:49",
"upload_time_iso_8601": "2023-12-10T06:03:49.239665Z",
"url": "https://files.pythonhosted.org/packages/21/08/c98d1ebcddea80f2c61d74f16339100c84e9a2d4172d37023730e1a58eda/backkr-0.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6176cf3633ab41d635cfe179ce534733f8a15fd390b16a264c5053e4740d6c6d",
"md5": "19d9687a29b088865a5668c4ad64801b",
"sha256": "0ef3e3b53b3e878ee47c26959a2168c8691ef9214d364975f5719fcf0d3ec85c"
},
"downloads": -1,
"filename": "backkr-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "19d9687a29b088865a5668c4ad64801b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 8450,
"upload_time": "2023-12-10T06:03:51",
"upload_time_iso_8601": "2023-12-10T06:03:51.528951Z",
"url": "https://files.pythonhosted.org/packages/61/76/cf3633ab41d635cfe179ce534733f8a15fd390b16a264c5053e4740d6c6d/backkr-0.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-10 06:03:51",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Almas-Ali",
"github_project": "backkr",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "backkr"
}