GithubHelp home page GithubHelp logo

hackersandslackers / sqlalchemy-tutorial Goto Github PK

View Code? Open in Web Editor NEW
81.0 4.0 24.0 217 KB

๐Ÿงช๐Ÿ”ฌ Use SQLAlchemy to connect, query, and interact with relational databases.

Home Page: https://hackersandslackers.com/python-database-management-sqlalchemy/

Makefile 10.03% Python 89.97%
python sqlalchemy tutorial database database-management orm-framework orms sqlalchemy-orm sqlalchemy-python

sqlalchemy-tutorial's Introduction

SQLAlchemy Tutorial

Python SQLAlchemy PyMySQL GitHub Last Commit GitHub Issues GitHub Stars GitHub Forks

SQLAlchemy Tutorial

This repository contains the source code for a four-part tutorial series on SQLAlchemy:

  1. Databases in Python Made Easy with SQLAlchemy
  2. Implement an ORM with SQLAlchemy
  3. Relationships in SQLAlchemy Data Models
  4. Constructing Database Queries with SQLAlchemy

Getting Started

Get set up locally in two steps:

Environment Variables

Replace the values in .env.example with your values and rename this file to .env:

  • DATABASE_USERNAME: Username for a SQL database.
  • DATABASE_PASSWORD: Corresponding password for the above SQL database user.
  • DATABASE_HOST: Host of the SQL database.
  • DATABASE_PORT: Numerical port of the SQL database.
  • DATABASE_TABLE: Name of the SQL database table.
  • DATABASE_CERT_FILE (optional): Path to SSL certificate file for database.

Remember never to commit secrets saved in .env files to Github.

Installation

Get up and running with make run:

git clone https://github.com/hackersandslackers/sqlalchemy-tutorial.git
cd sqlalchemy-tutorial
make run

Hackers and Slackers tutorials are free of charge. If you found this tutorial helpful, a small donation would be greatly appreciated to keep us in business. All proceeds go towards coffee, and all coffee goes towards more content.

sqlalchemy-tutorial's People

Contributors

renovate-bot avatar toddbirchard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sqlalchemy-tutorial's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update dependency pycodestyle to v2.11.1
  • Update dependency python-dotenv to v1.0.1
  • Update dependency python-dotenv to v1.0.1
  • Update dependency exceptiongroup to v1.2.1
  • Update dependency isort to v5.13.2
  • Update dependency isort to v5.13.2
  • Update dependency mypy to v1.10.0
  • Update dependency mypy to v1.10.0
  • Update dependency pathspec to v0.12.1
  • Update dependency platformdirs to v3.11.0
  • Update dependency pluggy to v1.5.0
  • Update dependency pyflakes to v3.2.0
  • Update dependency black to v24
  • Update dependency flake8 to v7
  • Update dependency flake8 to v7
  • Update dependency greenlet to v3
  • Update dependency packaging to v24
  • Update dependency platformdirs to v4
  • Update dependency pytest to v8
  • Update dependency pytest to v8
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

pep621
pyproject.toml
  • poetry >=1.6.1
pip_requirements
requirements.txt
  • black ==23.7.0
  • click ==8.1.7
  • colorama ==0.4.6
  • exceptiongroup ==1.1.3
  • flake8 ==6.1.0
  • greenlet ==2.0.2
  • iniconfig ==2.0.0
  • isort ==5.12.0
  • loguru ==0.7.0
  • mccabe ==0.7.0
  • mock ==5.1.0
  • mypy-extensions ==1.0.0
  • mypy ==1.5.1
  • packaging ==23.1
  • pathspec ==0.11.2
  • platformdirs ==3.10.0
  • pluggy ==1.3.0
  • pycodestyle ==2.11.0
  • pyflakes ==3.1.0
  • pymysql ==1.1.0
  • pytest ==7.4.0
  • python-dotenv ==1.0.0
  • sqlalchemy ==2.0.20
  • tomli ==2.0.1
  • typing-extensions ==4.7.1
  • win32-setctime ==1.1.0
poetry
pyproject.toml
  • python ^3.10, <4.0
  • sqlalchemy *
  • pymysql *
  • python-dotenv *
  • loguru *
  • pytest *
  • mock *
  • mypy *
  • black *
  • isort *
  • flake8 *

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.