# Tasmota Application Development Server
This tool aims to simplify Tasmota Berry script development by doing two things:
* Starts a web app that automatically zips your project(s), and serves it as a `.tapp` file.
* Opens a tunnel to the web app, letting you deploy your Tasmota Application to any device with an internet connection.
# How to Install
`pip install ttads`
# Example Usage
To serve a project:
`$ttads --project /usr/src/my_project`
You can serve as many projects as you like, for example:
`$ttads --project /usr/src/project_a --project /usr/src/project_b ...`
If you want to give a project a name other than its directory name, you can prefix its path with `:`, e.g.
`$ttads --project project_c:/usr/src/project_c/berry_files ...`
This will serve the contents of `berry_files` as a TAPP file called `project_c.tapp`.
## Sample Output
```bash
Waiting for tunnel to initialise...
* Serving Flask app 'TappServer'
* Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:80
Press CTRL+C to quit
Serving project "project_a": `tasmota.urlfetch("http://c141-x-y-z-w.ngrok.io/project_a.tapp")`
Serving project "project_b": `tasmota.urlfetch("http://c141-x-y-z-w.ngrok.io/project_b.tapp")`
```
# :warning: Security Warning
Running `ttads` involves opening up your project files to the public internet, using a development server. Proceed with
caution.
Raw data
{
"_id": null,
"home_page": "https://link.frontmatter.ai/ttads",
"name": "ttads",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "development berry script tasmota tapp",
"author": "Frontmatter",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/99/4e/98ca983e099faa0060f4bad1ae69df0a8e1bb550280fac81c20871b2f185/ttads-0.1.0.tar.gz",
"platform": null,
"description": "# Tasmota Application Development Server\n\nThis tool aims to simplify Tasmota Berry script development by doing two things:\n\n* Starts a web app that automatically zips your project(s), and serves it as a `.tapp` file.\n* Opens a tunnel to the web app, letting you deploy your Tasmota Application to any device with an internet connection.\n\n# How to Install\n\n`pip install ttads`\n\n# Example Usage\n\nTo serve a project:\n\n`$ttads --project /usr/src/my_project`\n\nYou can serve as many projects as you like, for example:\n\n`$ttads --project /usr/src/project_a --project /usr/src/project_b ...`\n\nIf you want to give a project a name other than its directory name, you can prefix its path with `:`, e.g.\n\n`$ttads --project project_c:/usr/src/project_c/berry_files ...`\n\nThis will serve the contents of `berry_files` as a TAPP file called `project_c.tapp`.\n\n## Sample Output\n\n```bash\nWaiting for tunnel to initialise...\n * Serving Flask app 'TappServer'\n * Debug mode: off\nWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.\n * Running on http://127.0.0.1:80\nPress CTRL+C to quit\nServing project \"project_a\": `tasmota.urlfetch(\"http://c141-x-y-z-w.ngrok.io/project_a.tapp\")`\nServing project \"project_b\": `tasmota.urlfetch(\"http://c141-x-y-z-w.ngrok.io/project_b.tapp\")`\n```\n\n# :warning: Security Warning\n\nRunning `ttads` involves opening up your project files to the public internet, using a development server. Proceed with\ncaution. \n\n",
"bugtrack_url": null,
"license": "Copyright \u00a9 2023 Frontmatter. All rights reserved.",
"summary": "A development server for Tasmota Berry Application (TAPP) apps",
"version": "0.1.0",
"split_keywords": [
"development",
"berry",
"script",
"tasmota",
"tapp"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "374c2d0ca599916a1184650397a64c955f2ec0d2735c0f0b91d1ec5a8a981008",
"md5": "c02671503d470781679bc894060e9e82",
"sha256": "8e5181de4d243d036344aff1b757b365b6e7dbf48478d47749752b8a5f5577ec"
},
"downloads": -1,
"filename": "ttads-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c02671503d470781679bc894060e9e82",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4506,
"upload_time": "2023-03-27T14:38:39",
"upload_time_iso_8601": "2023-03-27T14:38:39.158369Z",
"url": "https://files.pythonhosted.org/packages/37/4c/2d0ca599916a1184650397a64c955f2ec0d2735c0f0b91d1ec5a8a981008/ttads-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "994e98ca983e099faa0060f4bad1ae69df0a8e1bb550280fac81c20871b2f185",
"md5": "9f018c9050cb9b9048a6f3cddd549fe7",
"sha256": "8aa1cf21ce420a57aad01baa13b63fa41ebb90613b2e73261cd976041809a4fb"
},
"downloads": -1,
"filename": "ttads-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "9f018c9050cb9b9048a6f3cddd549fe7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3843,
"upload_time": "2023-03-27T14:38:40",
"upload_time_iso_8601": "2023-03-27T14:38:40.263601Z",
"url": "https://files.pythonhosted.org/packages/99/4e/98ca983e099faa0060f4bad1ae69df0a8e1bb550280fac81c20871b2f185/ttads-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-03-27 14:38:40",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "ttads"
}