Skip to main content
       _
      (_)___  __  ___________  ___  __  __
     / / __ \/ / / / ___/ __ \/ _ \/ / / /
    / / /_/ / /_/ / /  / / / /  __/ /_/ /
 __/ /\____/\__,_/_/  /_/ /_/\___/\__, /
/___/ Flask blueprint management /____/
https://coveralls.io/repos/github/rbw0/flask-journey/badge.svg?branch=master https://travis-ci.org/rbw0/flask-journey.svg?branch=master https://badge.fury.io/py/flask-journey.svg https://img.shields.io/badge/License-MIT-green.svg

Description

Provides a clean, declarative way of importing and managing blueprints and creating routes. In addition to this, the extension also enables simple and consistent methods of (de)serialization and validation in blueprint enabled views.

It uses the standard Flask blueprint system, is modular and doesn’t depend on anything special.

This along with an auth component is pretty much all you need for a solid REST API foundation.

Highlights

  • Dead simple blueprint and route management that works with vanilla blueprints in Flask

  • Drop-in replacement for flask.Blueprint.route with support for Marshmallow

Installing

$ pip install flask-journey

Documentation

The documentation can be found here

Full examples

Working examples can be found here

Will add more shortly (simpler ones and marshmallow-sqlalchemy)

Quick taste

This shows a simple example Journey’s BlueprintBundle component.

from flask_journey import BlueprintBundle
from .users import bp as users_bp
from .groups import bp as groups_bp

v1 = BlueprintBundle(path='/api/v1')
v1.attach_bp(users_bp, description='Users API')
v1.attach_bp(groups_bp)

Compatibility

  • Python 2 and 3

  • Flask > 0.7

Author

Created by Robert Wikman <rbw@vault13.org> in 2018

JetBrains

Thank you Jetbrains for creating pycharm and for providing me with free licenses

Download files

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

Source Distribution

flask-journey-0.1.2.tar.gz (5.7 kB view details)

Uploaded Source

File details

Details for the file flask-journey-0.1.2.tar.gz.

File metadata

  • Download URL: flask-journey-0.1.2.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for flask-journey-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6b44dbbc72cd189dbbfe76d0a160cfb12797dd57863d098f867f3ee921cb6424
MD5 8a37b2fd7df15db8c3a3730cc747e752
BLAKE2b-256 86aca0886b00e75b87ce6bd3315b22135ff1e1f6c429253ae5fe31b1ff903e31

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.4

1 file

0.1.3

1 file

This release

0.1.2 This release

1 file

0.1.1

1 file

0.1.0

1 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