# Observe Web App
[![test](https://github.com/ddeutils/ddeutil-observe/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/ddeutils/ddeutil-observe/actions/workflows/tests.yml)
[![pypi version](https://img.shields.io/pypi/v/ddeutil-observe)](https://pypi.org/project/ddeutil-observe/)
[![python support version](https://img.shields.io/pypi/pyversions/ddeutil-observe)](https://pypi.org/project/ddeutil-observe/)
[![size](https://img.shields.io/github/languages/code-size/ddeutils/ddeutil-observe)](https://github.com/ddeutils/ddeutil-observe)
[![gh license](https://img.shields.io/github/license/ddeutils/ddeutil-observe)](https://github.com/ddeutils/ddeutil-observe/blob/main/LICENSE)
[![code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
The **Lightweight observation web application** project was created for easy to
make a observation web application that getting log, or trigger status from any
data framework formats and endpoint APIs, it project will focus on the
`ddeutil-workflow` data orchestration tool.
> [!WARNING]
> This project is the best fit with `ddeutil-workflow` package. The first propose
> is monitor and observe from worker nodes that deploy workflow application.
## :round_pushpin: Installation
```shell
pip install ddeutil-observe
```
> I added this feature to the main milestone.
>
> :egg: **Docker Images** supported:
>
> | Docker Image | Python Version | Support |
> |----------------------------|----------------|---------|
> | ddeutil-observe:latest | `3.9` | :x: |
> | ddeutil-observe:python3.10 | `3.10` | :x: |
> | ddeutil-observe:python3.11 | `3.11` | :x: |
> | ddeutil-observe:python3.12 | `3.12` | :x: |
## :beers: Getting Started
This project implement the best scalable FastAPI web application structure.
For the first phase, I will use the SQLite be a backend database that keep
authentication and workflows data.
### Main Page
### Workflow Release Page
## :cookie: Configuration
| Environment | Component | Default | Description |
|---------------------------------------------|-----------|---------|------------------------------------------|
| `OBSERVE_CORE_TIMEZONE` | Core | | |
| `OBSERVE_CORE_SQLALCHEMY_DB_URL` | Core | | |
| `OBSERVE_CORE_SQLALCHEMY_DB_ASYNC_URL` | Core | | |
| `OBSERVE_CORE_ACCESS_SECRET_KEY` | Core | | |
| `OBSERVE_CORE_ACCESS_TOKEN_EXPIRE_MINUTES` | Core | | |
| `OBSERVE_CORE_REFRESH_SECRET_KEY` | Core | | |
| `OBSERVE_CORE_REFRESH_TOKEN_EXPIRE_MINUTES` | Core | | |
| `OBSERVE_WEB_ADMIN_USER` | Web | | |
| `OBSERVE_WEB_ADMIN_PASS` | Web | | |
| `OBSERVE_LOG_DEBUG_MODE` | Log | true | Logging mode of this observe application |
## :rocket: Deployment
```shell
(env) $ uvicorn src.ddeutil.observe.app:app --host 127.0.0.1 --port 88
```
> [!NOTE]
> If this package already deploy, it able to use
> `uvicorn ddeutil.workflow.api:app --host 127.0.0.1 --port 88 --workers 4`
Raw data
{
"_id": null,
"home_page": null,
"name": "ddeutil-observe",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9.13",
"maintainer_email": null,
"keywords": "data, observe, utility, webserver, fastapi",
"author": null,
"author_email": "ddeutils <korawich.anu@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/1a/f8/4eff43b745888ee1c5f766c5f82a6c58d8d698cebd3347a422bb427a491d/ddeutil_observe-0.0.4.tar.gz",
"platform": null,
"description": "# Observe Web App\n\n[![test](https://github.com/ddeutils/ddeutil-observe/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/ddeutils/ddeutil-observe/actions/workflows/tests.yml)\n[![pypi version](https://img.shields.io/pypi/v/ddeutil-observe)](https://pypi.org/project/ddeutil-observe/)\n[![python support version](https://img.shields.io/pypi/pyversions/ddeutil-observe)](https://pypi.org/project/ddeutil-observe/)\n[![size](https://img.shields.io/github/languages/code-size/ddeutils/ddeutil-observe)](https://github.com/ddeutils/ddeutil-observe)\n[![gh license](https://img.shields.io/github/license/ddeutils/ddeutil-observe)](https://github.com/ddeutils/ddeutil-observe/blob/main/LICENSE)\n[![code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\nThe **Lightweight observation web application** project was created for easy to\nmake a observation web application that getting log, or trigger status from any\ndata framework formats and endpoint APIs, it project will focus on the\n`ddeutil-workflow` data orchestration tool.\n\n> [!WARNING]\n> This project is the best fit with `ddeutil-workflow` package. The first propose\n> is monitor and observe from worker nodes that deploy workflow application.\n\n## :round_pushpin: Installation\n\n```shell\npip install ddeutil-observe\n```\n\n> I added this feature to the main milestone.\n>\n> :egg: **Docker Images** supported:\n>\n> | Docker Image | Python Version | Support |\n> |----------------------------|----------------|---------|\n> | ddeutil-observe:latest | `3.9` | :x: |\n> | ddeutil-observe:python3.10 | `3.10` | :x: |\n> | ddeutil-observe:python3.11 | `3.11` | :x: |\n> | ddeutil-observe:python3.12 | `3.12` | :x: |\n\n## :beers: Getting Started\n\nThis project implement the best scalable FastAPI web application structure.\nFor the first phase, I will use the SQLite be a backend database that keep\nauthentication and workflows data.\n\n### Main Page\n\n### Workflow Release Page\n\n## :cookie: Configuration\n\n| Environment | Component | Default | Description |\n|---------------------------------------------|-----------|---------|------------------------------------------|\n| `OBSERVE_CORE_TIMEZONE` | Core | | |\n| `OBSERVE_CORE_SQLALCHEMY_DB_URL` | Core | | |\n| `OBSERVE_CORE_SQLALCHEMY_DB_ASYNC_URL` | Core | | |\n| `OBSERVE_CORE_ACCESS_SECRET_KEY` | Core | | |\n| `OBSERVE_CORE_ACCESS_TOKEN_EXPIRE_MINUTES` | Core | | |\n| `OBSERVE_CORE_REFRESH_SECRET_KEY` | Core | | |\n| `OBSERVE_CORE_REFRESH_TOKEN_EXPIRE_MINUTES` | Core | | |\n| `OBSERVE_WEB_ADMIN_USER` | Web | | |\n| `OBSERVE_WEB_ADMIN_PASS` | Web | | |\n| `OBSERVE_LOG_DEBUG_MODE` | Log | true | Logging mode of this observe application |\n\n## :rocket: Deployment\n\n```shell\n(env) $ uvicorn src.ddeutil.observe.app:app --host 127.0.0.1 --port 88\n```\n\n> [!NOTE]\n> If this package already deploy, it able to use\n> `uvicorn ddeutil.workflow.api:app --host 127.0.0.1 --port 88 --workers 4`\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Lightweight observation web application",
"version": "0.0.4",
"project_urls": {
"Homepage": "https://github.com/ddeutils/ddeutil-observe/",
"Source Code": "https://github.com/ddeutils/ddeutil-observe/"
},
"split_keywords": [
"data",
" observe",
" utility",
" webserver",
" fastapi"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ee3831504ea9409f9cf94a26d01e69673175cc719cbc5ebd4495f979178156f8",
"md5": "160f17eb0ba428b79ed7584024237707",
"sha256": "9ec930df319b2a5ffe7a02a24c82e59085af65d8b92e9b429a74bf7ceff102e8"
},
"downloads": -1,
"filename": "ddeutil_observe-0.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "160f17eb0ba428b79ed7584024237707",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9.13",
"size": 35277,
"upload_time": "2024-09-16T11:00:29",
"upload_time_iso_8601": "2024-09-16T11:00:29.544463Z",
"url": "https://files.pythonhosted.org/packages/ee/38/31504ea9409f9cf94a26d01e69673175cc719cbc5ebd4495f979178156f8/ddeutil_observe-0.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1af84eff43b745888ee1c5f766c5f82a6c58d8d698cebd3347a422bb427a491d",
"md5": "7862ea33feb2fc8050dc652c031227f4",
"sha256": "7f54c70fc01a3619820986b93b01c45eeb80deb59e1ae547406ac7971f3c2f93"
},
"downloads": -1,
"filename": "ddeutil_observe-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "7862ea33feb2fc8050dc652c031227f4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9.13",
"size": 25583,
"upload_time": "2024-09-16T11:00:30",
"upload_time_iso_8601": "2024-09-16T11:00:30.897427Z",
"url": "https://files.pythonhosted.org/packages/1a/f8/4eff43b745888ee1c5f766c5f82a6c58d8d698cebd3347a422bb427a491d/ddeutil_observe-0.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-16 11:00:30",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ddeutils",
"github_project": "ddeutil-observe",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "ddeutil-observe"
}