~/talk

Productionize Research Oriented Code By Python

Talkat PyCon US 2022 · 2022-04-27..05-03· [devops-and-delivery, python]
links:none on file
slides:none on file

Concrete pipeline and tooling not buzzwords: a worked example converts an item response two‑parameter logistic implementation into a web API, with four steps — understand → modularize → refactor → productize — and concrete files like preparation.py, preprocessing.py, prediction.py. Tests and style use pytest black flake8 and type hints, endpoints validate with JSON Schema and run on Flask or FastAPI; load testing uses locust or vegeta. Outcome is an API with parameter checks, error handling, and guidance for performance tuning.

AI-written summary · about

  1. 0:00Intro
  2. 0:47Background
  3. 4:00Example of pre processing code
  4. 4:23Example of calculation code
  5. 6:463 differences between research oriented code and production code
  6. 9:40Code Reading / Code Documentation
  7. 12:08Modularization outcome
  8. 12:59Mapping each module into directory
  9. 14:23Before refactoring the code
  10. 18:00preprocess.py: the three ways to pre-process data
  11. 21:39Request routing: clarity input and output and define URI from data
  12. 22:58The Flow Chart of Transformation from Research Oriented code into WEB API
  13. 24:52The Flow Chart Transformation from Research Oriented code into WEB API
  14. 25:26Error check use error handler functions to detect error by using Flask
  15. 25:58Summarize 4 Step Transformation from Research Oriented code into Products
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.