{"id":19745735,"url":"https://github.com/aiscenblue/flask-app-core","last_synced_at":"2025-06-14T03:36:29.065Z","repository":{"id":57430104,"uuid":"108636920","full_name":"aiscenblue/flask-app-core","owner":"aiscenblue","description":"application core for flask-starter-kit","archived":false,"fork":false,"pushed_at":"2019-10-14T12:26:35.000Z","size":27,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-06T11:03:49.722Z","etag":null,"topics":["flask","flask-appbuilder","flask-application","python","python2","python3"],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/flask-app-core","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/aiscenblue.png","metadata":{"files":{"readme":"README.md","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":"2017-10-28T09:34:43.000Z","updated_at":"2024-08-14T17:27:53.000Z","dependencies_parsed_at":"2022-08-26T02:42:55.978Z","dependency_job_id":null,"html_url":"https://github.com/aiscenblue/flask-app-core","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/aiscenblue/flask-app-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiscenblue%2Fflask-app-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiscenblue%2Fflask-app-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiscenblue%2Fflask-app-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiscenblue%2Fflask-app-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aiscenblue","download_url":"https://codeload.github.com/aiscenblue/flask-app-core/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiscenblue%2Fflask-app-core/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259755672,"owners_count":22906614,"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","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":["flask","flask-appbuilder","flask-application","python","python2","python3"],"created_at":"2024-11-12T02:11:07.256Z","updated_at":"2025-06-14T03:36:29.048Z","avatar_url":"https://github.com/aiscenblue.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flask-app-core\napplication core for flask-starter-kit\n\n\n[![forthebadge](http://forthebadge.com/images/badges/built-with-love.svg)](https://github.com/aiscenblue/flask-app-core)\n[![PyPI version](https://badge.fury.io/py/flask-app-core.svg)](https://github.com/aiscenblue/flask-app-core)\n[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://github.com/aiscenblue/flask-app-core/blob/master/LICENSE)\n\n## Installation\n`pip install flask-app-core`\n\u003e view on pypi\n\n\u003e https://pypi.python.org/pypi/flask-app-core\n\n## Create Starter application\n\u003e create start.py to your root directory\n\n\u003e paste the code below\n```\nimport sys\nfrom flask_app_core import Bootstrap\nfrom app.config.app import DevelopmentConfig\n\n\nif __name__ == \"__main__\":\n    bootstrap = Bootstrap(import_name=__name__, main_dir=__file__)\n    bootstrap.start()\n\n```\n\n`main_dir=__file__`\n```\nThis points your app root directory __file__ represents your app main filename \nwhere it will be used for internal pointer to Flask library\n```\n\n## Advance Configuration\n\n```\nfrom path.to.your.config.class import DevelopmentConfig\n\n\nif __name__ == \"__main__\":\nbootstrap = Bootstrap(\n    import_name=__name__, \n    app_dir=__file__, \n    config=DevelopmentConfig, \n    environment='development')\n    \nbootstrap.start()\n```\n#### Create a folder named \"module\" in your application roon directory before running the application\n```\n It states that all your routing config and API modules are located on the \"module directory\"\n```\n\n#### Custom module configuration\n\n```\nif __name__ == \"__main__\":\nbootstrap = Bootstrap(\n    import_name=__name__, \n    app_dir=__file__, \n    module=\"to/module/directory\"\n    config=DevelopmentConfig, \n    environment='development')\n    \nbootstrap.start()\n```\n\n```\nIf no configuration file feed as parameter it will fetch the default DEVELOPMENT \n\nconfiguration choices: 'development' or 'production'\n```\n### Example config class\n```\n\"\"\"\n    flask configuration found in http://flask.pocoo.org/docs/0.12/config/\n\"\"\"\n\n\nclass BaseConfig:\n    HOST = \"127.0.0.1\"\n    PORT = 8000\n    ADMINS = frozenset(['aiscenblue@gmail.com'])\n    SECRET_KEY = 'SecretKeyForSessionSigning'\n    CSRF_ENABLED = True\n    CSRF_SESSION_KEY = \"somethingimpossibletoguess\"\n\n\nclass ProductionConfig(BaseConfig):\n    DEBUG = True\n\n\nclass DevelopmentConfig(BaseConfig):\n    DEBUG = True\n\n\nclass TestingConfig(BaseConfig):\n    TESTING = True\n\n```\n\n#### If set to production the debug will be over written to False\n\n# Module Views\n\n```\nmake_response(render_template('index/view.html', title=\"Flask Starter Kit!\"))\n```\n\n#### path\n`path starts from your root module directory`\n\n```\n~/your_module_directory\n---|/module_name\n------| view.html\n```\n`Therefore the path in the example above should be`\n\n\n```make_response(render_template('module_name/view.html', title=\"Flask Starter Kit!\"))```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faiscenblue%2Fflask-app-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faiscenblue%2Fflask-app-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faiscenblue%2Fflask-app-core/lists"}