Python Virtual Training For Arcesium - Module III

Oct 11-15, 2021 Vikrant Patil

These notes are available online at https://notes.pipal.in/2021/arcesium_finop_batch2/

© Pipal Academy LLP

Day 1 | Day 2 | Day 3 | Day 4 | Day 5

We will be using jupyter hub from https://lab2.pipal.in for this training.

create a notebook with name module3-day5

Debugging of python programs

rules for variable names/function/class ..genrally any name

  1. alphanumeric with _ as additiona char ...
  2. name can not start with digit

File "C:\Users\sanghvi\AppData\Local\Temp/ipykernel_2444/4184950771.py", line 27 def saveattachemnts_from_email(ivy_export-1634915516683.xlsb): ^ SyntaxError: invalid syntax

logical mistakes

debugging using pdb

Packaging your code as python package

lets create a package with name combinecsvs

combinecsvs
    |-setup.py
    |-requirements.txt
    + A
      |-__init__.py
      |- combine.py
      + B
        |-__init__.py

typer does not go very well with entry points, but another module called click... it works