{"id":19065257,"url":"https://github.com/hackersandslackers/sqlalchemy-tutorial","last_synced_at":"2025-04-06T03:07:07.407Z","repository":{"id":37026601,"uuid":"324878310","full_name":"hackersandslackers/sqlalchemy-tutorial","owner":"hackersandslackers","description":"🧪🔬 Use SQLAlchemy to connect, query, and interact with relational databases.","archived":false,"fork":false,"pushed_at":"2025-03-29T12:02:47.000Z","size":197,"stargazers_count":94,"open_issues_count":15,"forks_count":27,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T02:07:19.933Z","etag":null,"topics":["database","database-management","orm-framework","orms","python","sqlalchemy","sqlalchemy-orm","sqlalchemy-python","tutorial"],"latest_commit_sha":null,"homepage":"https://hackersandslackers.com/python-database-management-sqlalchemy/","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/hackersandslackers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://www.buymeacoffee.com/hackersslackers"]}},"created_at":"2020-12-28T00:51:20.000Z","updated_at":"2025-03-04T04:58:35.000Z","dependencies_parsed_at":"2023-12-24T03:18:26.913Z","dependency_job_id":"2d8ca5a8-755e-48a7-933a-17da9592c25e","html_url":"https://github.com/hackersandslackers/sqlalchemy-tutorial","commit_stats":{"total_commits":18,"total_committers":2,"mean_commits":9.0,"dds":0.05555555555555558,"last_synced_commit":"48cdeea1a4475fd32583442f009b8aad99b8ecf7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackersandslackers%2Fsqlalchemy-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackersandslackers%2Fsqlalchemy-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackersandslackers%2Fsqlalchemy-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackersandslackers%2Fsqlalchemy-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hackersandslackers","download_url":"https://codeload.github.com/hackersandslackers/sqlalchemy-tutorial/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247427006,"owners_count":20937201,"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":["database","database-management","orm-framework","orms","python","sqlalchemy","sqlalchemy-orm","sqlalchemy-python","tutorial"],"created_at":"2024-11-09T00:49:14.140Z","updated_at":"2025-04-06T03:07:07.382Z","avatar_url":"https://github.com/hackersandslackers.png","language":"Python","readme":"# SQLAlchemy Tutorial\n\n![Python](https://img.shields.io/badge/Python-v^3.10-blue.svg?logo=python\u0026longCache=true\u0026logoColor=white\u0026colorB=5e81ac\u0026style=flat-square\u0026colorA=4c566a)\n![SQLAlchemy](https://img.shields.io/badge/SQLAlchemy-v^2.0.20-blue.svg?longCache=true\u0026logo=python\u0026style=flat-square\u0026logoColor=white\u0026colorB=5e81ac\u0026colorA=4c566a)\n![PyMySQL](https://img.shields.io/badge/PyMySQL-v^1.1.0-red.svg?longCache=true\u0026style=flat-square\u0026logo=scala\u0026logoColor=white\u0026colorA=4c566a\u0026colorB=bf616a)\n![GitHub Last Commit](https://img.shields.io/github/last-commit/google/skia.svg?style=flat-square\u0026colorA=4c566a\u0026colorB=a3be8c\u0026logo=GitHub)\n[![GitHub Issues](https://img.shields.io/github/issues/hackersandslackers/sqlalchemy-tutorial.svg?style=flat-square\u0026colorA=4c566a\u0026logo=GitHub\u0026colorB=ebcb8b)](https://github.com/hackersandslackers/sqlalchemy-tutorial/issues)\n[![GitHub Stars](https://img.shields.io/github/stars/hackersandslackers/sqlalchemy-tutorial.svg?style=flat-square\u0026colorA=4c566a\u0026logo=GitHub\u0026colorB=ebcb8b)](https://github.com/hackersandslackers/sqlalchemy-tutorial/stargazers)\n[![GitHub Forks](https://img.shields.io/github/forks/hackersandslackers/sqlalchemy-tutorial.svg?style=flat-square\u0026colorA=4c566a\u0026logo=GitHub\u0026colorB=ebcb8b)](https://github.com/hackersandslackers/sqlalchemy-tutorial/network)\n\n![SQLAlchemy Tutorial](https://github.com/hackersandslackers/sqlalchemy-tutorial/blob/master/.github/img/sqlalchemy@2x.jpg?raw=true)\n\nThis repository contains the source code for a four-part tutorial series on SQLAlchemy:\n\n1. [Databases in Python Made Easy with SQLAlchemy](https://hackersandslackers.com/python-database-management-sqlalchemy)\n2. [Implement an ORM with SQLAlchemy](https://hackersandslackers.com/implement-sqlalchemy-orm)\n3. [Relationships in SQLAlchemy Data Models](https://hackersandslackers.com/sqlalchemy-data-models)\n4. [Constructing Database Queries with SQLAlchemy](https://hackersandslackers.com/database-queries-sqlalchemy-orm)\n\n## Getting Started\n\nGet set up locally in two steps:\n\n### Environment Variables\n\nReplace the values in **.env.example** with your values and rename this file to **.env**:\n\n* `DATABASE_USERNAME`: Username for a SQL database.\n* `DATABASE_PASSWORD`: Corresponding password for the above SQL database user.\n* `DATABASE_HOST`: Host of the SQL database.\n* `DATABASE_PORT`: Numerical port of the SQL database.\n* `DATABASE_TABLE`: Name of the SQL database table.\n* `DATABASE_CERT_FILE` _(optional)_: Path to SSL certificate file for database.\n\n*Remember never to commit secrets saved in .env files to Github.*\n\n### Installation\n\nGet up and running with `make run`:\n\n```shell\ngit clone https://github.com/hackersandslackers/sqlalchemy-tutorial.git\ncd sqlalchemy-tutorial\nmake run\n```\n\n-----\n\n**Hackers and Slackers** tutorials are free of charge. If you found this tutorial helpful, a [small donation](https://www.buymeacoffee.com/hackersslackers) would be greatly appreciated to keep us in business. All proceeds go towards coffee, and all coffee goes towards more content.\n","funding_links":["https://www.buymeacoffee.com/hackersslackers"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackersandslackers%2Fsqlalchemy-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhackersandslackers%2Fsqlalchemy-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackersandslackers%2Fsqlalchemy-tutorial/lists"}