Skip to main content

DISCLAIMER This repository is part of Runnerly, an application made for the Python Microservices Development. It was made for educational purpose and not suitable for production. It’s still being updated. If you find any issue or want to talk with the author, feel free to open an issue in the issue tracker.

Flask helper for building JSON web services.

Installation:

$ pip install flakon

Features so far:

  • a JsonBlueprint: like a Blueprint but everything is jsonified

  • a SwaggerBlueprint: like JsonBlueprint but you can pass a swagger spec and user @operation(‘operationId’) instead of @route

  • uses Konfig to load an INI file for updating app.config

Example of usage:

from flakon import SwaggerBlueprint, JsonBluePrint, create_app


api = SwaggerBlueprint('Swagger API', 'swagger' ,
                       swagger_spec='openapi.yaml')

@api.operation('getUserIds')
def get_user_ids():
    return {'one': 2}

other_api = JsonBlueprint('api', __name__)

@other_api.route('/')
def some():
    return {'here': 1}


app = create_app(blueprints=[api, other_api])

Metadata

Release files for flakon 0.2

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

Source distribution (sdist)

Source distribution for flakon 0.2
File Size Uploaded
flakon-0.2.tar.gz 7.7 kB Details

Release files / flakon-0.2.tar.gz

Download URL flakon-0.2.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1754f8df40235c6e439629695989f124a600b8f7f6440fa89104047cf3401d29
BLAKE2b-256 checksum
How to use checksums
38e8610bc8ccdff74f35833f0dea04450b4be708bbaf3a738a5701cfd6cb5066
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file

0.1

1 release file

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