Skip to content

SQLAlchemy asyncio workshop demo project with SQLite for PyCon US 2024 and PyCon Italy 2024

License

Notifications You must be signed in to change notification settings

whamilton-usgs/sqlalchemy-workshop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQLAlchemy Workshop

No More Raw SQL: SQLAlchemy, ORMs and asyncio

This repository contains the code for the Marketplace service demo to follow along the No More Raw SQL: SQLAlchemy, ORMs and asyncio workshop.

Workshop instructions can be found here

How to run this service?

  1. Create a python virtual environment and activate it:

    python3.12 -m venv ./venv
    source ./venv/bin/activate
  2. Install your service dependencies:

    python3.12 -m pip install -r requirements.txt
  3. Run the service:

    ./run.sh run

    which is equivalent to

    python3.12 marketsvc/server.py
  4. In a new terminal window, run the curl commands:

    ./run.sh customers

    which is equivalent to

    curl http://localhost:9090/api/customers

About

SQLAlchemy asyncio workshop demo project with SQLite for PyCon US 2024 and PyCon Italy 2024

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 87.0%
  • Shell 13.0%