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

Uploaded Source

Built Distribution

flarecast_service-0.1.0.181-py2-none-any.whl (6.3 kB view details)

Uploaded Python 2

File details

Details for the file flarecast-service-0.1.0.181.tar.gz.

File metadata

File hashes

Hashes for flarecast-service-0.1.0.181.tar.gz
Algorithm Hash digest
SHA256 cf3fdcf02b72fa2c9e170e4e7d20a8f8bf5585fdf6c10a04b8deee8b514f60a6
MD5 1475d586e3252ddee09d563adfd61bb5
BLAKE2b-256 50cfdf54f80597f23037790471bb098fb15299995c2077b1e9958fb3fd265410

See more details on using hashes here.

File details

Details for the file flarecast_service-0.1.0.181-py2-none-any.whl.

File metadata

File hashes

Hashes for flarecast_service-0.1.0.181-py2-none-any.whl
Algorithm Hash digest
SHA256 654213f4bdbdbb3839ef30b916c1e59acb06fea364f50b9024ad632756ddaa33
MD5 60095ec8de60fd4212f175eb8a406c16
BLAKE2b-256 ab7a85d201c83897e14ae679fe3e19111019dd9f58f4c859a66b83b8ed3ec47c

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