Flask Services
Get started
Install with pip
pip install flaskservice
or
python -m pip install flaskservice
Example Code
from flaskservice import Api, View
class ExampleView(View):
# parameters of your flaskservice
name: str = "Joab Leite" # it is not required because it has a defined value
height: float # Required
def get(self):
print(self.name)
return self.response(message=10)
def post(self):
return self.response(self.name)
api = Api(__name__)
api.add_view(ExampleView, urls="/example")
api.runserver(host='127.0.0.1', port=5000, debug=True)
Server is running on default port 5000 if not changed.
Send post or get and see result (:
Metadata
Release files for flaskservice 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flaskservice-0.0.1.tar.gz | 3.5 kB | Without provenance | Details for flaskservice-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flaskservice-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for flaskservice-0.0.1-py3-none-any.whl |
Total release size: 8.5 kB
Release files / flaskservice-0.0.1.tar.gz
| Download URL | flaskservice-0.0.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c992eda86864ada88f96d9587f62c9b199ea7e286e4517543307fbdf139abb15
|
|
BLAKE2b-256 checksum How to use checksums |
311142930e2c038b2b6458e69a24ef6effc66ca7ebcce6985347b7c6c8bc27ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
|
Release files / flaskservice-0.0.1-py3-none-any.whl
| Download URL | flaskservice-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d321f0251c676bec058a6d9e21c8dca38d5f551b6905e3878ab2aab91ef52a9f
|
|
BLAKE2b-256 checksum How to use checksums |
876aace3e639d25c66484068ef99019ef4364c08583cef30efb7eff2a3a45b0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
|
Security for flaskservice 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.