{"id":20509278,"url":"https://github.com/futuremind/hug-sqlalchemy-template","last_synced_at":"2025-08-11T00:47:27.836Z","repository":{"id":85676828,"uuid":"81203865","full_name":"FutureMind/hug-sqlalchemy-template","owner":"FutureMind","description":"Boiler template for a Python hug API application with SQLAlchemy, alembic and pytest","archived":false,"fork":false,"pushed_at":"2019-08-12T08:16:30.000Z","size":34,"stargazers_count":12,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-24T07:57:16.003Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/FutureMind.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-07T12:07:52.000Z","updated_at":"2024-03-13T14:43:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"bea84d67-595a-4e26-9291-112619bc33e5","html_url":"https://github.com/FutureMind/hug-sqlalchemy-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FutureMind/hug-sqlalchemy-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutureMind%2Fhug-sqlalchemy-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutureMind%2Fhug-sqlalchemy-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutureMind%2Fhug-sqlalchemy-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutureMind%2Fhug-sqlalchemy-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FutureMind","download_url":"https://codeload.github.com/FutureMind/hug-sqlalchemy-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutureMind%2Fhug-sqlalchemy-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269814220,"owners_count":24479355,"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-08-10T02:00:08.965Z","response_time":71,"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":[],"created_at":"2024-11-15T20:23:44.347Z","updated_at":"2025-08-11T00:47:27.799Z","avatar_url":"https://github.com/FutureMind.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"hug-sqlalchemy-template\n=======================\n\nHug project skeleton with working sqlalchemy connections tests and migrations framework already set up.\nBasically it's good entry point to develop every kind of sqlalchemy powered api using hug.\n\n## Prerequisites\nIt runs only with Python 3\n\n## Installation\n```\ngit clone https://github.com/FutureMind/hug-sqlalchemy-template.git\npip install -r requirements.txt\ngunicorn --reload api.app:__hug_wsgi__\n```\nAPI will be exposed locally to http://127.0.0.1:8000\n\n## Database\nProvide SQLALCHEMY_DATABASE_URI and TEST_SQLALCHEMY_DATABASE_URI environment variables.\nIf TEST_SQLALCHEMY_DATABASE_URI is not provided it will be automatically set to SQLALCHEMY_DATABASE_URI + '_test' suffix\n\n## Migrations\nProject uses alembic to manage migrations script\nhttp://alembic.zzzcomputing.com/en/latest/\n\n### Example usage \nAdd new migrations with\n```\nalembic revision --autogenerate -m \"migration name\"\n```\nUpgrade your database with\n```\nalembic upgrade head\n```\n\n## Tests\nPut your tests into tests module.\nRun your tests with\n```\npython -m pytest\n```\n\n## Examples\nYou can see some basic examples of how set up models, authentication and routes on `user_jwt_auth_example_project` branch\n\nThere is also an example how to implement application factory (just like we do in flask http://flask.pocoo.org/docs/0.12/patterns/appfactories/) on `app_constructor_example`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuturemind%2Fhug-sqlalchemy-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuturemind%2Fhug-sqlalchemy-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuturemind%2Fhug-sqlalchemy-template/lists"}