Skip to main content

Quick start web services

Project description

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 (:

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.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

flaskservice-0.0.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flaskservice-0.0.2.tar.gz
  • Upload date:
  • Size: 3.7 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.2.tar.gz
Algorithm Hash digest
SHA256 b6dcd853c117e3c050f56bf70074beaed6df8f4dd036015bb021647847059cf6
MD5 d81bf2cdec600e3d80f967aa00ac55fb
BLAKE2b-256 945e184e67c7d1cec2784a7e48d134f014419a98774613d32905773c4379b69e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flaskservice-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6d0a7d77ef1ca75c2deb36a0f242839319b22194711bc4c2b737cf5a9de539c4
MD5 fc3247de2c92fedc4c4269c90a78041d
BLAKE2b-256 67f012eb5244753dc2abe2023ef6863f441007f0c19fa4d5eb362a6e2210d76d

See more details on using hashes here.

Supported by

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