Flask-State-1.1.4
توضیحات
Show local state to users through Echarts.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | Flask-State-1.1.4 |
| نام | Flask-State |
| نسخه کتابخانه | 1.1.4 |
| نگهدارنده | ['Yoobool'] |
| ایمیل نگهدارنده | [] |
| نویسنده | Yoobool |
| ایمیل نویسنده | yhl@uuchat.io |
| آدرس صفحه اصلی | https://github.com/yoobool/flask-state |
| آدرس اینترنتی | https://pypi.org/project/Flask-State/ |
| مجوز | BSD-3-Clause |

[](https://github.com/yoobool/flask-state/tree/master/.github/ISSUE_TEMPLATE)
[](https://gitter.im/flaskstate/community)
[](https://www.npmjs.com/package/flask-state)
[](https://github.com/yoobool/flask-state/blob/master/LICENSE)
[](https://pypi.org/project/Flask-State/)
# Flask-State
English | [简体中文](https://github.com/yoobool/flask-state/blob/master/README.zh-CN.md)<br>
Flask-State is a lightweight chart plugin for displaying machine state data in your web application.
* **Monitored Metric:** CPU, memory, disk usage, disk IO, Network IO, LoadAVG and boot time.
* **Extensible:** Offers rich customization options, including redis monitoring, user authentication,
custom logging, i18n and etc.
* **Stable:** Solves multiprocessing concurrency problems (if you use [gunicorn](https://gunicorn.org/))
built on top of lightweight dependencies.
This project is in active development and thoroughly tested to ensure that Flask-State
stays up-to-date with its project roadmap.

## Documentation
Check out the [live demo](https://flask-state.herokuapp.com/), or head over to the
[tutorial](https://github.com/yoobool/flask-state/wiki/Tutorials) for more instructions.
## Installation
Get this plugin from [PyPI](https://pip.pypa.io/en/stable/quickstart/):
```bash
pip install Flask-State
```
Alternatively, install Flask-State via NPM or include this script tag to the head
section of your HTML document:
```html
<script src="https://cdn.jsdelivr.net/gh/yoobool/flask-state@v1.1.4/packages/umd/flask-state.min.js"></script>
<link href="https://cdn.jsdelivr.net/gh/yoobool/flask-state@v1.1.4/packages/flask-state.min.css" rel="stylesheet">
```
```bash
npm install flask-state --save
```
## Usage
### 1. Bind Database Address
```python
from flask_state import DEFAULT_BIND_SQLITE
app.config['SQLALCHEMY_BINDS'] = {DEFAULT_BIND_SQLITE: 'sqlite:///path'}
```
### 2. Configure Flask-State
```python
import flask_state
flask_state.init_app(app)
```
### 3. Include Imports to Views
```javascript
// requires echarts module
import 'echarts';
import 'flask-state/flask-state.min.css';
import {init} from 'flask-state';
// Create a DOM node with ID 'test'. After init() binds the node,
// click to open the listening window
init({dom:document.getElementById('test')});
```
**Learn more about advanced configurations in the**
[documentation](https://github.com/yoobool/flask-state/wiki/Configuration).
## Contributing
[See the planning document](https://github.com/yoobool/flask-state/wiki/Tutorials#roadmap) for a roadmap and existing feature requests.
* Need **help** or have a **general question**? [Post on Reddit Flask State](https://www.reddit.com/r/FlaskState/)
* Found a **bug** or have a **feature request**? [Open an issue](https://github.com/yoobool/flask-state/issues/new).
* Want to **contribute**? [Submit a pull request](https://github.com/yoobool/flask-state/pulls).
Flask-State follows the [Contributor Covenant](https://www.contributor-covenant.org/version/1/3/0/code-of-conduct/)
Code of Conduct.
## Alternatives
Looking for something else? Try another monitor project:
* [Flask-MonitoringDashboard](https://github.com/flask-dashboard/Flask-MonitoringDashboard)
## Community Channel
We're on [Gitter](https://gitter.im/flaskstate/community)! Join the conversation
for more questions and inquiries about this project.
## License
Flask-State is available under the BSD-3-Clause License.
نیازمندی
| مقدار | نام |
|---|---|
| >=1.0 | Flask |
| >=1.0 | Flask-SQLAlchemy |
| >=5.7.0 | psutil |
| >=1.4.3 | alembic |
| - | black |
| - | codespell |
| - | flake8 |
| - | isort |
| - | pip-tools |
| - | pre-commit |
| - | setuptools |
| - | twine |
| - | wheel |
| - | redis |
| - | pytest |
| - | redis |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl Flask-State-1.1.4:
pip install Flask-State-1.1.4.whl
نصب پکیج tar.gz Flask-State-1.1.4:
pip install Flask-State-1.1.4.tar.gz