# Direct-Flask
Use responses for Flask directly
## Installation
### From PyPI
```sh
pip3 install dflask
```
### From GitHub
```sh
pip3 install git+https://github.com/donno2048/Direct-Flask
```
## Usage
```py
from dflask import DirectFlask, Response
app = DirectFlask(__name__)
app.add_response("/", Response("<html><head><link href='/style.css' rel='stylesheet'></head><body></body></html>"))
app.add_response("/style.css", "body{background-color: red;}").run()
```
Raw data
{
"_id": null,
"home_page": "https://github.com/donno2048/Direct-Flask",
"name": "dflask",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.0",
"maintainer_email": "",
"keywords": "",
"author": "Elisha Hollander",
"author_email": "just4now666666@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/e6/17/711517c8d1a240722f05122f142ebb1cf09cdee54a52e6efa37fcc401898/dflask-1.0.2.tar.gz",
"platform": "",
"description": "# Direct-Flask\n\nUse responses for Flask directly\n\n## Installation\n\n### From PyPI\n\n```sh\npip3 install dflask\n```\n\n### From GitHub\n\n```sh\npip3 install git+https://github.com/donno2048/Direct-Flask\n```\n\n## Usage\n\n```py\nfrom dflask import DirectFlask, Response\napp = DirectFlask(__name__)\napp.add_response(\"/\", Response(\"<html><head><link href='/style.css' rel='stylesheet'></head><body></body></html>\"))\napp.add_response(\"/style.css\", \"body{background-color: red;}\").run()\n```\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Use responses for Flask directly",
"version": "1.0.2",
"project_urls": {
"Bug Reports": "https://github.com/donno2048/Direct-Flask/issues",
"Documentation": "https://github.com/donno2048/Direct-Flask#readme",
"Homepage": "https://github.com/donno2048/Direct-Flask",
"Source Code": "https://github.com/donno2048/Direct-Flask"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f7328382553374ae62e104ecd4f7cd62a7498d0773f02a5e7d4af00e847ed380",
"md5": "e8cbf2dbdd6575db549d4b4d55b0030f",
"sha256": "b50c423b878853bed2cbc3e53bb173d8aaa8fd5e5cf0afa5dac6388363d32865"
},
"downloads": -1,
"filename": "dflask-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e8cbf2dbdd6575db549d4b4d55b0030f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.0",
"size": 2666,
"upload_time": "2022-02-05T20:24:37",
"upload_time_iso_8601": "2022-02-05T20:24:37.574848Z",
"url": "https://files.pythonhosted.org/packages/f7/32/8382553374ae62e104ecd4f7cd62a7498d0773f02a5e7d4af00e847ed380/dflask-1.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e617711517c8d1a240722f05122f142ebb1cf09cdee54a52e6efa37fcc401898",
"md5": "4b06fe4d1a758f177df06717da360f87",
"sha256": "30be09d6d5af07e885397f36f2530988ae127ff33c25eaac693ad2b2cb5b7907"
},
"downloads": -1,
"filename": "dflask-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "4b06fe4d1a758f177df06717da360f87",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.0",
"size": 2429,
"upload_time": "2022-02-05T20:24:39",
"upload_time_iso_8601": "2022-02-05T20:24:39.275674Z",
"url": "https://files.pythonhosted.org/packages/e6/17/711517c8d1a240722f05122f142ebb1cf09cdee54a52e6efa37fcc401898/dflask-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-02-05 20:24:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "donno2048",
"github_project": "Direct-Flask",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "dflask"
}