Skip to main content

Flarecast Service is the base package of all flarecast connexion services.

Project description

Flarecast Service is the base package of all flarecast connexion services.

Latest Version Development Status Python Versions

Idea

The Flarecast Service package provides support for connexion webservice applications and includes following enhancements:

  • connexion application creation

  • automatic logging configuration

  • direct_passthrough support

  • force_type support

  • minified json encoder

  • automatic gzip compression

  • cors support

  • global exception handler

Usage

Install

You just have to install the pip package.

pip install flarecast-service

Example

Initialize a new FlarecastService and give it a name.

# create flarecast service
service = FlarecastService('Property Service')

Create the service with the connexion parameters. This mehtod takes **kwargs.

service.create(port=8002,
               specification_dir=spec_dir)

Add swagger configurations to the blueprint.

# add yaml files
service.app.add_api('propertyservice.yaml')
service.app.add_api('query_builder.yaml', swagger_ui=False)

Publish the flask app as application for uwsgi support.

# publish uwsgi flask app variable
application = service.app.app

Run the connexion app if it has been started from the command line.

if __name__ == '__main__':
    service.run()

About

Implemented by Florian Bruggisser @ i4Ds 2016

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

flarecast-service-0.1.0.207.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

flarecast_service-0.1.0.207-py2-none-any.whl (6.2 kB view hashes)

Uploaded Python 2

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