Skip to content

This repo contains my quick notes from what I learnt new in the PyConIndia2020

Notifications You must be signed in to change notification settings

Virajdatt/PyConIndia_2020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This repo contains my quick notes from what I learnt new in the PyConIndia2020.

1. Awesome-CommandLine-Tools

Presentation slides ./Awesome CommandLine Tools.pdf

REPL --> Read, Eval, Print, Loop

python package --> prompt_toolkit (creating a commandline tool)

https://github.com/prompt-toolkit/python-prompt-toolkit

pygments package --> for lexers

CHECKLIST (consedration while making commandline tools)

  1. Persistent History
  2. History search
  3. Emacs Keybindings
  4. Auto-Completion
  5. Minimal Config
  6. Syntax Coloring

Resources

  1. dbcli.com ; pgcli.com ; mycli.net ; Litecli.com ; iredis.io
  2. fishshell.com (design)
  3. bpython-interpreter.org
  4. prompt-toolkit

2. How-to-make-data-apps-seem-faster

REPO used for presentation --> https://github.com/sanand0/pyconindia2020

  1. Logging (to check progress)
  2. TQDM (to show progress)
  3. Websocket --> from gramex
  4. SQL-LITE-DICT (save results and avoid recomputing) https://pythonhosted.org/sqlite_object/sqlite_dict.html

Explore

  1. Forward-recovery (what is this in context of programming ?)
  2. Apache Plasma (EXPLORE)
  3. Comicgen --> Front-End (EXPOLRE) https://github.com/gramener/comicgen/

3. Static-Typing-Python

  1. Detailed article on typing https://realpython.com/python-type-checking/

Python annotations (type hints) the typing module --> https://docs.python.org/3/library/typing.html mypy python module enforce static typing

  1. MonkeyType (MonkeyType collects runtime types of function arguments and return values, and can automatically generate stub files or even add draft type annotations directly to your Python code based on the types collected at runtime.) https://github.com/Instagram/MonkeyType

4. Logging

Presentation slides ./Logging_the_right_way_.pdf

  1. Structlog (Drop in replacement to standard logging library) https://www.structlog.org/en/stable/getting-started.html

  2. Dynamic logging

  • Change Log Level in Run time
    • logging.config.listen()
      • Works with fileConfig, dictConfig etc
  1. Recipies for logging

5. Some-side-notes

a. Unbound local error in python

https://docs.python.org/3/faq/programming.html#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value

b. Celery (Task Queues)

https://docs.celeryproject.org/en/stable/getting-started/introduction.html

c. Hypothesis (testing framework python)

https://hypothesis.readthedocs.io/en/latest/

d. Renpy for making games(episodic)

About

This repo contains my quick notes from what I learnt new in the PyConIndia2020

Resources

Stars

Watchers

Forks