{"id":15294045,"url":"https://github.com/rbw/flask-journey","last_synced_at":"2025-12-14T19:08:59.319Z","repository":{"id":57430426,"uuid":"124475436","full_name":"rbw/flask-journey","owner":"rbw","description":"Blueprint management and straightforward (de)serialization + validation in Flask","archived":true,"fork":false,"pushed_at":"2018-10-10T12:31:34.000Z","size":104,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-02T06:29:29.477Z","etag":null,"topics":["blueprint","deserialization","flask","marshmallow","registration","routing","serialization","validation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rbw.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-09T02:21:10.000Z","updated_at":"2024-06-09T15:04:16.000Z","dependencies_parsed_at":"2022-08-26T03:51:10.415Z","dependency_job_id":null,"html_url":"https://github.com/rbw/flask-journey","commit_stats":null,"previous_names":["rbw0/flask-journey"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/rbw/flask-journey","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbw%2Fflask-journey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbw%2Fflask-journey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbw%2Fflask-journey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbw%2Fflask-journey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rbw","download_url":"https://codeload.github.com/rbw/flask-journey/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbw%2Fflask-journey/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278733233,"owners_count":26036384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blueprint","deserialization","flask","marshmallow","registration","routing","serialization","validation"],"created_at":"2024-09-30T16:56:04.677Z","updated_at":"2025-10-07T06:31:12.598Z","avatar_url":"https://github.com/rbw.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. image:: https://travis-ci.org/rbw/flask-journey.svg?branch=master\n    :target: https://travis-ci.org/rbw/flask-journey\n.. image:: https://coveralls.io/repos/github/rbw0/flask-journey/badge.svg?branch=master\n    :target: https://coveralls.io/github/rbw0/flask-journey?branch=master\n.. image:: https://badge.fury.io/py/flask-journey.svg\n    :target: https://pypi.python.org/pypi/flask-journey\n.. image:: https://img.shields.io/badge/License-MIT-green.svg\n    :target: https://opensource.org/licenses/MIT\n\nDescription\n-----------\n\nExtension for Flask focusing on three important areas for REST APIs:\n\n* validation\n* (de)serialization\n* blueprint/route management\n\n\nFlask-journey makes the process of validating and (de)serializing data to/from python objects simple and elegant with the **Journey.route** decorator - a drop-in replacement for Flask's Blueprint.route, assisted by the fantastic **Marshmallow** library.\n\nThe extension's other component, **BlueprintBundle**, helps segregate, group and register blueprints with ease while also providing methods for listing routes, either in basic form or detailed JSON.\n\n\nInstalling\n----------\n\n.. code-block::\n\n    pip install flask-journey\n\n\nDocumentation\n-------------\nThe documentation can be found `here \u003chttp://flask-journey.readthedocs.org/\u003e`_\n\n\nQuick taste\n-----------\n\nSome examples of ``@route`` and ``BlueprintBundle`` + ``Journey``\n\n@route\n^^^^^^\n\n.. code-block:: python\n\n    # file: api/users/controllers.py\n\n    from flask import Blueprint\n    from flask_journey import route\n\n    from .services import create_user, get_user, update_user\n    from .schemas import user, users, query\n\n    bp = Blueprint('users', __name__)\n\n    @route(bp, '/', methods=['GET'], _query=query, marshal_with=users)\n    def get_many(_query):\n        return get_users(_query.data)\n\n\n    @route(bp, '/', methods=['POST'], _body=user, marshal_with=user)\n    def create(_body):\n        return create_user(_body.data)\n\n\n    @route(bp, '/\u003cuser_id\u003e', methods=['PUT'], _body=user, marshal_with=user)\n    def update(user_id, _body):\n        return update_user(user_id, _body.data)\n\n\nBlueprintBundle\n^^^^^^^^^^^^^^^\n\n.. code-block:: python\n\n    # file: api/bundles.py\n\n    from flask_journey import BlueprintBundle\n    from .users.controllers import bp as users\n    from .groups.controllers import bp as groups\n\n    v1 = BlueprintBundle(path='/api/v1')\n    v1.attach_bp(users, description='Users API')\n    v1.attach_bp(groups, description='Groups API')\n\n\nJourney\n^^^^^^^\n\n.. code-block:: python\n\n    # file: api/__init__.py\n\n    from flask import Flask\n    from flask_journey import Journey\n\n    from .bundles import v1\n\n    def create_app():\n        app = Flask(__name__)\n        journey = Journey()\n        journey.attach_bundle(v1)\n        journey.init_app(app)\n\n        print(journey.routes_simple)\n\n        return app\n\n\nFull examples\n-------------\nWorking examples can be found `here \u003chttps://github.com/rbw0/flask-journey/tree/master/examples\u003e`_\n\n*Will add more shortly*\n\n\nCompatibility\n-------------\n- Python \u003e= 2.7 or \u003e= 3.4\n- Flask \u003e 0.7\n\nAuthor\n------\nCreated by Robert Wikman \u003crbw@vault13.org\u003e in 2018\n\nJetBrains\n---------\nThank you `Jetbrains \u003chttp://www.jetbrains.com\u003e`_ for creating pycharm and providing me with free licenses\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbw%2Fflask-journey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frbw%2Fflask-journey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbw%2Fflask-journey/lists"}