[#Script #Coding] Python API Development – Comprehensive Course for Beginners

Python API Development – Comprehensive Course for Beginners

By freeCodeCamp.org
Published: Nov 01, 2021


freeCodeCamp.org Learn Python API development in one of the most comprehensive courses ever on the topic. You will build a full-fledged API in Python using FastAPI. You will learn the fundamentals of API design including routes, serialization/deserialization, schema validation, and models. You will also learn about SQL, testing with pytest, and how to build out a CI/CD pipeline using GitHub actions.

Code: https://github.com/Sanjeev-Thiyagaraj…

Course from Sanjeev Thiyagarajan. Check out his channel: https://www.youtube.com/channel/UC2sY…

    Course Contents

  • 00:00 Intro
  • 06:33 Project Overview
  • 11:22 Mac Python Installation
  • 13:15 Mac VS Code install and setup
  • 16:37 Windows Python Installation
  • 18:30 Windows VS Code install and setup
  • 22:11 Python virtual Env Basics
  • 24:35 Virtual Env on windows
  • 28:56 Virtual Env on Mac
  • 34:17 Install dependencies w/ pip
  • 36:21 Starting FastAPI
  • 39:23 Path Operations
  • 53:22 Intro toman
  • 57:34 HTTP Requests
  • 1:07:29 Schema Validation with Pydantic
  • 1:22:45 CRUD Operations
  • 1:29:44 Storing in Array
  • 1:34:06 Creating
  • 1:38:15 Postman Collections & saving requests
  • 1:39:47 Retrieve One
  • 1:48:10 Path order Matters
  • 1:52:46 Changing response Status Codes
  • 2:01:49 Deleting
  • 2:10:31 Updating
  • 2:18:02 Automatic Documentation
  • 2:21:34 Python packages
  • 2:24:11 Database Intro
  • 2:28:54 Postgres Windows Install
  • 2:31:28 Postgres Mac Install
  • 2:34:26 Database Schema & Tables
  • 2:44:35 Managing Postgres with PgAdmin GUI
  • 3:12:10 Your first SQL Query
  • 3:19:43 Filter results with “where”
  • 3:22:55 SQL Operators
  • 3:26:38 IN
  • 3:28:07 Pattern matching with LIKE
  • 3:31:59 Ordering Results
  • 3:36:27 LIMIT & OFFSET
  • 3:39:21 Modifying Data
  • 3:53:48 Setup App Database
  • 3:58:21 Connecting to database w/ Python
  • 4:08:00 Database CRUD
  • 4:31:18 ORM intro
  • 4:35:33 SQLALCHEMY setup
  • 4:55:25 Adding CreatedAt Column
  • 5:00:59 Get All
  • 5:07:55 Create
  • 5:15:50 Get by ID
  • 5:19:50 Delete
  • 5:22:31 Update
  • 5:28:21 Pydantic vs ORM Models
  • 5:32:21 Pydantic Models Deep Dive
  • 5:38:57 Response Model
  • 5:50:08 Creating Users Table
  • 5:54:50 User Registration Path Operation
  • 6:03:27 Hashing Passwords
  • 6:08:49 Refractor Hashing Logic
  • 6:10:32 Get User by ID
  • 6:17:13 FastAPI Routers
  • 6:27:34 Router Prefix
  • 6:30:31 Router Tags
  • 6:32:49 JWT Token Basics
  • 6:47:03 Login Process
  • 7:00:44 Creating Token
  • 7:09:58 OAuth2 PasswordRequestForm
  • 7:13:23 Verify user is Logged In
  • 7:25:21 Fixing Bugs
  • 7:27:59 Protecting Routes
  • 7:36:17 Test Expired Token
  • 7:38:13 Fetching User in Protected Routes
  • 7:42:44 Postman advanced Features
  • 7:50:33 SQL Relationship Basics
  • 7:54:59 Postgres Foreign Keys
  • 8:07:20 SQLAlchemy Foreign Keys
  • 8:13:40 Update Schema to include User
  • 8:17:59 Assigning Owner id when creating new
  • 8:21:01 Delete and Update only your own
  • 8:27:48 Only Retrieving Logged in User’s
  • 8:33:37 Sqlalchemy Relationships
  • 8:38:32 Query Parameters
  • 8:50:46 Cleanup our main.py file
  • 8:53:53 Env Variables
  • 9:21:20 Vote/Like Theory
  • 9:26:36 Votes Table
  • 9:31:33 Votes Sqlalchemy
  • 9:34:11 Votes Route
  • 9:52:31 SQL Joins
  • 10:15:26 Joins in SqlAlchemy
  • 10:28:21 Get One with Joins
  • 10:30:18 What is a database migration tool
  • 10:33:45 Alembic Setup
  • 11:13:50 Disable SqlAlchemy create Engine
  • 11:14:28 What is CORS?
  • 11:23:38 Git PreReqs
  • 11:27:40 Git Install
  • 11:29:23 Github
  • 11:34:39 Heroku intro
  • 11:35:40 Create Heroku App
  • 11:40:21 Heroku procfile
  • 11:44:59 Adding a Postgres database
  • 11:48:42 Env Variables in Heroku
  • 11:58:59 Alembic migrations on Heroku Postgres instance
  • 12:02:52 Pushing changed to production
  • 12:05:04 Create an Ubuntu VM
  • 12:08:04 Update packages
  • 12:10:47 Install Python
  • 12:12:21 Install Postgres & setup password
  • 12:17:28 Postgres Config
  • 12:24:50 Create new user and setup python evironment
  • 12:34:06 Env Variables
  • 12:42:24 Alembic migrations on production database
  • 12:45:57 Gunicorn
  • 12:54:12 Creating a Systemd service
  • 13:04:45 NGINX
  • 13:10:45 Setting up Domain name
  • 13:15:19 SSL/HTTPS
  • 13:19:31 NGINX enable
  • 13:20:06 Firewall
  • 13:23:47 Pushing code changes to Production
  • 13:26:09 Dockerfile
  • 13:38:39 Docker Compose
  • 13:48:34 Postgres Container
  • 13:56:22 Bind Mounts
  • 14:03:39 Dockerhub
  • 14:08:08 Production vs Development
  • 14:14:51 Testing Intro
  • 14:17:19 Writing your first test
  • 14:30:22 The -s & -v flags
  • 14:31:44 Testing more functions
  • 14:35:29 Parametrize
  • 14:40:21 Testing Classes
  • 14:48:37 Fixtures
  • 14:55:40 Combining Fixtures + Parametrize
  • 14:59:13 Testing Exceptions
  • 15:06:07 FastAPI TestClient
  • 15:14:26 Pytest flags
  • 15:17:31 Test create user
  • 15:25:23 Setup testing database
  • 15:36:47 Create & destroy database after each test
  • 15:44:18 More Fixtures to handle database interaction
  • 15:50:35 Trailing slashes in path
  • 15:53:12 Fixture scope
  • 16:07:50 Test user fixture
  • 16:14:40 Test/validate token
  • 16:18:59 Conftest.py
  • 16:22:09 Testing
  • 17:34:15 CI/CD intro
  • 17:43:29 Github Actions
  • 17:49:32 Creating Jobs
  • 17:57:38 setup python/dependencies/pytest
  • 18:06:14 Env variables
  • 18:11:19 Github Secrets
  • 18:18:14 Testing database
  • 18:23:42 Building Docker images
  • 18:34:33 Deploy to heroku
  • 18:49:10 Failing tests in pipeline
  • 18:52:18 Deploy to Ubuntu

Learn to code for free and get a developer job: https://www.freecodecamp.org

Read hundreds of articles on programming: https://freecodecamp.org/news

And subscribe for new videos on technology every day: https://youtube.com/subscription_cent…


Eric Brooks

Eric Brooks

Web & Graphic Designer, Blogger, Musician, Evil Clown. I also code websites and promote people for a living. Still kind of a jerk, though. Approach with food.

More Posts - Website

Follow Me:Add me on XAdd me on FacebookAdd me on LinkedInAdd me on PinterestAdd me on YouTubeAdd me on Instagram

Top Headlines for January 26, 2023

Headline News from the Associated Press
Eric Brooks

Eric Brooks

Web & Graphic Designer, Blogger, Musician, Evil Clown. I also code websites and promote people for a living. Still kind of a jerk, though. Approach with food.

More Posts - Website

Follow Me:Add me on XAdd me on FacebookAdd me on LinkedInAdd me on PinterestAdd me on YouTubeAdd me on Instagram

[#Script #Coding] Google Like a Pro – All Advanced Search Operators Tutorial [2023 Tips]

Google Like a Pro – All Advanced Search Operators Tutorial [2023 Tips]

By freeCodeCamp.org
Published: Jan 09, 2023


freeCodeCamp.org Learn how to become more effective at searching the web!

In this video, student Seth Goldin discusses how Google works, how to ask the right questions and identify the best results, and using built-in search operators to power up your search!

Read more like this from Seth: https://goldin.io/blog

    Course Contents

  • (00:00) Intro
  • (03:14) How Does Google Work
  • (09:40) Asking the Right Questions
  • (14:41) Identifying the Right Answers
  • (23:40) What Are Search Operators?
  • (24:43) Matching Operators
  • (28:23) Date Operators
  • (29:58) Source Operators
  • (33:29) Boolean Operators
  • (34:03) In-(URL/Title/Text/Anchor) Operators
  • (37:02) Utility Operators
  • (41:05) Using and Combining Search Operators
  • (44:02) Google Lens and Image Search
  • (46:29) Specialized Search Engines
  • (51:21) Keyboard Shortcuts
  • (52:38) Wrapping Everything Up

Disclaimer: This course is not affiliated with Google.

Learn to code for free and get a developer job: https://www.freecodecamp.org

Read hundreds of articles on programming: https://freecodecamp.org/news

Eric Brooks

Eric Brooks

Web & Graphic Designer, Blogger, Musician, Evil Clown. I also code websites and promote people for a living. Still kind of a jerk, though. Approach with food.

More Posts - Website

Follow Me:Add me on XAdd me on FacebookAdd me on LinkedInAdd me on PinterestAdd me on YouTubeAdd me on Instagram

[#Script #Coding] How To List & Reveal An ENTIRE NFT Collection (10,000+) Without Coding Knowledge on OpenSea

How To List & Reveal An ENTIRE NFT Collection (10,000+) Without Coding Knowledge on OpenSea

By codeSTACKr
Published: Jan 07, 2022


codeSTACKr My first NFT video went to the moon! There were so many people watching and coding along with it. In this video, we are going to continue where we left off and I’ll show you how to list your NFTs for sale and reveal them after they are sold.

All of the code needed in in the GitHub link below.

The previous video: https://youtu.be/AaCgydeMu64

RESOURCES

Code from this video: https://github.com/codeSTACKr/video-s…
Mini Mouse Macro: https://sourceforge.net/projects/mini…

Check out the collection I made:
https://codecats.xyz
https://bit.ly/CodeCats
Join my Discord community: https://discord.gg/A9CnsVzzkZ


Become A VS Code SuperHero Today: https://vsCodeHero.com


Tools I use:
codeSTACKr Theme: https://marketplace.visualstudio.com/…
STACKr Code Font (Exclusive to my VS Code Course – https://vsCodeHero.com)
SuperHero Extension Pack: https://marketplace.visualstudio.com/…


    Timestamps

  • 00:00 – Intro
  • 00:32 – node-fetch issue
  • 01:43 – Layer Questions
  • 02:38 – How to list your NFT for sale on OpenSea
  • 03:11 – Edit your Collection Details
  • 03:28 – List for sale with a macro
  • 06:58 – Reveal your NFT after purchase
  • 08:55 – What next?

Eric Brooks

Eric Brooks

Web & Graphic Designer, Blogger, Musician, Evil Clown. I also code websites and promote people for a living. Still kind of a jerk, though. Approach with food.

More Posts - Website

Follow Me:Add me on XAdd me on FacebookAdd me on LinkedInAdd me on PinterestAdd me on YouTubeAdd me on Instagram

Top Headlines for January 25, 2023

Headline News from the Associated Press
Eric Brooks

Eric Brooks

Web & Graphic Designer, Blogger, Musician, Evil Clown. I also code websites and promote people for a living. Still kind of a jerk, though. Approach with food.

More Posts - Website

Follow Me:Add me on XAdd me on FacebookAdd me on LinkedInAdd me on PinterestAdd me on YouTubeAdd me on Instagram

[#Money #Success] 15 Investments That Are Recession Proof

15 Investments That Are Recession Proof

By Alux.com
Published: Aug 28, 2022


Alux.com Skip the waitlist and invest in blue-chip art for the very first time by signing up for Masterworks: https://masterworks.art/alux
Purchase shares in great masterpieces from artists like Pablo Picasso, Banksy, Andy Warhol, and more.

See important Masterworks disclosures: https://www.masterworks.io/about/disc…

    In this Alux.com video we will be answering the following questions:

  • What investments are recession-proof?
  • What investments are safe in a recession?
  • How to invest in a recession?
  • What are the best investments to make in a recession?
  • What stocks to buy in a recession?
  • What stocks are safe in a recession?
  • What are the best stocks to invest in a recession?
  • 00:00 – Intro
  • 01:03 – Consumer staples
  • 01:48 – Telecom
  • 02:33 – Cheap Fast Food
  • 03:29 – Grocery Stores
  • 03:56 – Self-Education or Mastery
  • 05:35 – Gold & Precious Metals
  • 06:26 – Technology Stocks
  • 07:15 – Pharmaceutical Stocks
  • 07:49 – Utility Stocks
  • 08:38 – Blue Chip Art
  • 10:24 – Evergreen businesses
  • 11:12 – Commodities & Raw Materials
  • 11:43 – Life Insurance
  • 12:30 – Hedge Funds
  • 13:15 – Automation
  • 14:32 – Question

Eric Brooks

Eric Brooks

Web & Graphic Designer, Blogger, Musician, Evil Clown. I also code websites and promote people for a living. Still kind of a jerk, though. Approach with food.

More Posts - Website

Follow Me:Add me on XAdd me on FacebookAdd me on LinkedInAdd me on PinterestAdd me on YouTubeAdd me on Instagram

[#Video #Design] Selection Filters in Cinema 4D | Day 10 of 12 Days of Mograph

Selection Filters in Cinema 4D | Day 10 of 12 Days of Mograph

By School of Motion
Published: Dec 14, 2022


School of Motion Go walking in a winter wonderland…that you rendered in Cinema 4D with a free 1-year subscription from @MaxonVFX! Enter to win today’s #mographdays prize: https://som.bz/3XTzV7N

Eric Brooks

Eric Brooks

Web & Graphic Designer, Blogger, Musician, Evil Clown. I also code websites and promote people for a living. Still kind of a jerk, though. Approach with food.

More Posts - Website

Follow Me:Add me on XAdd me on FacebookAdd me on LinkedInAdd me on PinterestAdd me on YouTubeAdd me on Instagram

Top Headlines for January 24, 2023

Headline News from the Associated Press
Eric Brooks

Eric Brooks

Web & Graphic Designer, Blogger, Musician, Evil Clown. I also code websites and promote people for a living. Still kind of a jerk, though. Approach with food.

More Posts - Website

Follow Me:Add me on XAdd me on FacebookAdd me on LinkedInAdd me on PinterestAdd me on YouTubeAdd me on Instagram

[#Photoshop #Tutorials] Photoshop Tutorial – Neon Text Effect

Photoshop Tutorial – Neon Text Effect

By Photoshop Tutorials
Published: Feb 08, 2019


Photoshop Tutorials This Photoshop tutorial covers how to create a realistic neon text effect with wires. We’ll be working with styles, filters, free textures and fonts & much more. If you enjoyed this tutorial, please slap a like on it. It lets me know you’ve liked it.

DOWNLOADS/Stocks!
Photoshop Actions, Brushes, Stocks and much more! Start your free trial today!

Eric Brooks

Eric Brooks

Web & Graphic Designer, Blogger, Musician, Evil Clown. I also code websites and promote people for a living. Still kind of a jerk, though. Approach with food.

More Posts - Website

Follow Me:Add me on XAdd me on FacebookAdd me on LinkedInAdd me on PinterestAdd me on YouTubeAdd me on Instagram

[#AfterEffects #Video] Video Editing Skill Test: Are You (actually) Good?

Video Editing Skill Test: Are You (actually) Good?

By Cinecom.net
Published: Dec 02, 2022


Cinecom.net Test your Video Editing Skill Level with 15 tips from beginner to professional in this Adobe Premiere Pro tutorial video. Are you good enough?

Subscribe and Stay Tuned for the Beginners guide to creating video
https://www.youtube.com/watch…

Video Editing In Teams Course
https://www.cinecom.net/courses…

Download the Adobe Gamma compensation LUT
https://assets.adobe.com/public/…

Read More
https://www.cinecom.net/video-editi…

Eric Brooks

Eric Brooks

Web & Graphic Designer, Blogger, Musician, Evil Clown. I also code websites and promote people for a living. Still kind of a jerk, though. Approach with food.

More Posts - Website

Follow Me:Add me on XAdd me on FacebookAdd me on LinkedInAdd me on PinterestAdd me on YouTubeAdd me on Instagram

Proudly powered by WordPress
Creative Commons License
EricBrooks.Com® is licensed under a Creative Commons License.

Disclaimer: The views expressed herein are solely those of Eric Brooks. They do not necessarily reflect those of his employers, friends, contacts, family, or even his pets (though my cat, Puddy, seems to agree with me on many key issues.). In accordance to my terms of use, you hereby acknowledge my right to psychoanalyze you, practice accupuncture, and mock you incessantly with every visit. As the user, you also acknowledge that the author has been legally declared a "Problem Adult" by the Commonwealth of Pennsylvania, and is therefore not responsible for any of his actions. ALSO, the political views and products advertised on this site may/may not reflect the views of Puddy or myself, so please don't take them as an endorsement. We just need to eat.


Connect