madscheme / fastapi Goto Github PK
View Code? Open in Web Editor NEWCompanion for the O'Reilly book "FastAPI: Modern Python Web Development"
Companion for the O'Reilly book "FastAPI: Modern Python Web Development"
name
is an optional parameter but its value is set from an environment variable before it is read.
Lines 1 to 4 in fd72f02
creature.py:1:18: F401 [*] `copy.copy` imported but unused
creature.py:2:20: F401 [*] `.init.conn` imported but unused
creature.py:2:32: F401 [*] `.init.get_db` imported but unused
Line 1 in fd72f02
explorer.py:1:20: F401 [*] `.init.conn` imported but unused
Lines 19 to 24 in fd72f02
On line 24, os.getenv
is called to get an environment variable value or to default to calculated name
. But the call is made in a scope where it is known that the os.getenv
call will return None
, so the use of name
is certain.
May as well change the code to use name
directly without calling os.getenv
.
Lines 6 to 10 in fd72f02
If this is supposed to work with only one row, may as well call fetchone
instead of fetchall
.
Lines 5 to 6 in fd72f02
init.py:5:30: F401 [*] `sqlite3.IntegrityError` imported but unused
init.py:6:19: F401 [*] `error.Missing` imported but unused
init.py:6:28: F401 [*] `error.Duplicate` imported but unused
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.