{"id":14065239,"url":"https://github.com/demoskp/flask-sqlalchemy-tutorial","last_synced_at":"2025-07-29T20:31:46.603Z","repository":{"id":222568530,"uuid":"613867411","full_name":"demoskp/flask-sqlalchemy-tutorial","owner":"demoskp","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-04T08:51:55.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-13T07:08:28.263Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/demoskp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-03-14T12:37:14.000Z","updated_at":"2024-01-11T05:28:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"59b43713-0948-446a-966b-710f2378e4ea","html_url":"https://github.com/demoskp/flask-sqlalchemy-tutorial","commit_stats":null,"previous_names":["demoskp/flask-sqlalchemy-tutorial"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demoskp%2Fflask-sqlalchemy-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demoskp%2Fflask-sqlalchemy-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demoskp%2Fflask-sqlalchemy-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demoskp%2Fflask-sqlalchemy-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/demoskp","download_url":"https://codeload.github.com/demoskp/flask-sqlalchemy-tutorial/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228046117,"owners_count":17861101,"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":[],"created_at":"2024-08-13T07:04:23.051Z","updated_at":"2024-12-04T04:30:54.768Z","avatar_url":"https://github.com/demoskp.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"## Populating the database with users\n- First open a Flask shell session by running `flask shell` in your terminal\n- Import the `db` object by running `from app import db`\n- Import the sql script by running `sql = open(\"users.sql\", \"r\")`\n- Get the sql statement by running `statement = sql.read()`\n- Import the `text` function from sqlalchemy by running `from sqlalchemy import text`\n- Run the sql statement by running `db.session.execute(text(statement))`\n- Finally, commit the transaction by running `db.session.commit()`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemoskp%2Fflask-sqlalchemy-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdemoskp%2Fflask-sqlalchemy-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemoskp%2Fflask-sqlalchemy-tutorial/lists"}