Skip to content

Commit b04c1fb

Browse files
michael.yakmichaelyaakoby
authored andcommitted
Move the example code to a complete independent project
1 parent 9dbe6cd commit b04c1fb

File tree

5 files changed

+24
-4
lines changed

5 files changed

+24
-4
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ fabric.properties
231231

232232
.metadata
233233
bin/
234-
tmp/
234+
example/
235235
*.tmp
236236
*.bak
237237
*.swp

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![PyPI](https://img.shields.io/pypi/v/flask-pyctuator?color=green&style=plastic)](https://pypi.org/project/flask-pyctuator/)
2-
[![build](https://github.com/SolarEdgeTech/flasl-pyctuator/workflows/build/badge.svg)](https://github.com/SolarEdgeTech/flask-pyctuator/)
2+
[![build](https://github.com/SolarEdgeTech/flask-pyctuator/workflows/build/badge.svg)](https://github.com/SolarEdgeTech/flask-pyctuator/)
33

44
# Flask Pyctuator Extension
55
A [Flask extension](https://flask.palletsprojects.com/en/2.0.x/extensions/) that uses [Pyctuator](https://github.com/SolarEdgeTech/pyctuator) to enable [Spring Boot Admin](https://github.com/codecentric/spring-boot-admin) (SBA) to monitor health, configuration, log-file and resource-usage of a Flask application.
@@ -33,4 +33,6 @@ Please see [Pyctuator](https://github.com/SolarEdgeTech/pyctuator) for the compl
3333
)
3434

3535
app.run(debug=False, port=5000, host="0.0.0.0")
36-
```
36+
```
37+
38+
See the complete example and project file in the `example` folder.
File renamed without changes.

example/pyproject.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[tool.poetry]
2+
name = "flask-pyctuator-example"
3+
version = "0.1.0"
4+
description = "Demonstrate using flask-pyctuator"
5+
authors = [ "Luke Skywalker <[email protected]>" ]
6+
7+
[tool.poetry.dependencies]
8+
python = "^3.7"
9+
flask-pyctuator = "^0.1.0"
10+
flask = "^1.1"
11+
psutil = { version = "^5.6" }
12+
13+
[tool.poetry.dev-dependencies]
14+
15+
[build-system]
16+
requires = ["poetry-core>=1.0.0"]
17+
build-backend = "poetry.core.masonry.api"
18+

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "Flask Extension for using Pyctuator to enable Spring Boot Admin (
55
authors = ["michael.yak <[email protected]>"]
66
readme = "README.md"
77
homepage = "https://github.com/SolarEdgeTech/flask-pyctuator"
8-
repository = "https://github.com/SolarEdgeTech/flasl-pyctuator"
8+
repository = "https://github.com/SolarEdgeTech/flask-pyctuator"
99
keywords = ["spring boot admin", "actuator", "pyctuator", "flask"]
1010

1111
classifiers = [

0 commit comments

Comments
 (0)