Skip to main content

Quick start web services

Project description

Flask Services

Tests Deploy PyPI 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 (:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flaskservice-0.0.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

flaskservice-0.0.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file flaskservice-0.0.1.tar.gz.

File metadata

  • Download URL: flaskservice-0.0.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for flaskservice-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c992eda86864ada88f96d9587f62c9b199ea7e286e4517543307fbdf139abb15
MD5 341e4a735e5b4d8de096c92b35c86b3a
BLAKE2b-256 311142930e2c038b2b6458e69a24ef6effc66ca7ebcce6985347b7c6c8bc27ac

See more details on using hashes here.

File details

Details for the file flaskservice-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: flaskservice-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for flaskservice-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d321f0251c676bec058a6d9e21c8dca38d5f551b6905e3878ab2aab91ef52a9f
MD5 c1cbda38295037ff26e5f59506646bfa
BLAKE2b-256 876aace3e639d25c66484068ef99019ef4364c08583cef30efb7eff2a3a45b0c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page