Skip to main content

Flask Services

Tests PyPi Publish PyPI version

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.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flaskservice 0.0.4
File Size Uploaded Provenance Actions
flaskservice-0.0.4.tar.gz 4.5 kB Without provenance Details for flaskservice-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flaskservice 0.0.4
File Interpreter ABI Platform Actions
flaskservice-0.0.4-py3-none-any.whl Python 3 none any Details for flaskservice-0.0.4-py3-none-any.whl

Total release size: 9.7 kB

Release files / flaskservice-0.0.4.tar.gz

Download URL flaskservice-0.0.4.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
11e82ec6a8d83d99a93ae82fc2b3e6b4ce7d26e999a94b51c5721bd509867f03
BLAKE2b-256 checksum
How to use checksums
97cd2406378c619574e57d725559046ce51931283d81efbde2cb5d67fbced606
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.15.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

Release files / flaskservice-0.0.4-py3-none-any.whl

Download URL flaskservice-0.0.4-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc826e1eeafaa1077a6200993495da6a561d1364997fba2c8b34da7d85721f78
BLAKE2b-256 checksum
How to use checksums
969d417fa87d13cf5d92e31290e7221397e6cde989f89c4dbc448d33e7a33eca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.15.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

Security for flaskservice 0.0.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page