Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
arunvariyath committed Dec 1, 2024
2 parents 8fcaf23 + 7daf56e commit ea141a6
Show file tree
Hide file tree
Showing 8 changed files with 601 additions and 614 deletions.
508 changes: 252 additions & 256 deletions README.md

Large diffs are not rendered by default.

490 changes: 243 additions & 247 deletions index.html

Large diffs are not rendered by default.

91 changes: 43 additions & 48 deletions parse.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions pdf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Printing to PDF
### Normal PDF
* Open `index.html` in text editor and first remove element `<p><br></p>` before the `<h1>Libraries</h1>`.
* Then replace the index and footer with contents of `pdf/index_for_pdf.html` file and save.
* Disable internet connection and open the file in Chromium version 108.0.5328.0 (later versions will render the site incorrectly after index is added) with 'Cache killer' extension enabled.
* Right click on the border of the site and select inspect. Select `<body>` element under 'Elements' tab and change top margin from 16 to 0 and top padding from 16 to 5 in 'Styles' tab.
* Disable internet connection and open Chromium version 108.0.5328.0 (later versions will render the site incorrectly after index is added). Right click anywhere in the window and choose 'inspect'. Go to 'Network' tab and check 'Disable Cache'. Open the `index.html` file while keeping the inspect window open.
* Right click on the border of the site and select inspect. Select `<body>` element under 'Elements' tab and change top margin and top padding from 16 to 0 in 'Styles' tab.
* Change brightness of comments by right clicking on one of them and selecting inspect. Then click on the rectangle that represents color and toggle the color space to HSLA by clicking on the button with two vertical arrows. Change lightness (L) percentage to 77%.
* Change the brightness of text to 13%.
* Select 'Print...' with destination 'Save as PDF', paper size 'A4', 'Default' margins (top 10mm, right 9.5mm, bottom 8mm and left 10mm), 'Default' scale and no headers and footers and save (the document should be 51 pages long with last page empty).
Expand All @@ -26,8 +26,8 @@ Printing to PDF
* Change all links in text to normal text and add a page number in brackets like that: '(p. <page_num>)' by running './pdf/remove_links.py' (Links can be found with this regex: `<strong>.*a href.*</strong>`).
* Open `index.html` in text editor and first remove element `<p><br></p>` before the `<h1>Libraries</h1>`.
* Then replace the index and footer with contents of `pdf/index_for_pdf_print.html` file and save.
* Disable internet connection and open the file in Chromium version 108.0.5328.0 (later versions will render the site incorrectly after index is added) with 'Cache killer' extension enabled.
* Right click on the border of the site and select inspect. Select `<body>` element under 'Elements' tab and change top margin from 16 to 0 and top padding from 16 to 5 in 'Styles' tab.
* Disable internet connection and open Chromium version 108.0.5328.0 (later versions will render the site incorrectly after index is added). Right click anywhere in the window and choose 'inspect'. Go to 'Network' tab and check 'Disable Cache'. Open the `index.html` file while keeping the inspect window open.
* Right click on the border of the site and select inspect. Select `<body>` element under 'Elements' tab and change top margin and top padding from 16 to 0 in 'Styles' tab.
* Change brightness of elements by right clicking on them and selecting inspect. Then click on the rectangle that represents color and toggle the color space to HSLA by clicking on the button with two vertical arrows.
* Change lightness (L) percentage to:
* 0% for the text.
Expand Down
52 changes: 26 additions & 26 deletions pdf/index_for_pdf.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h3 id="a">A</h3>
<h3 id="b">B</h3>
<p><strong>beautifulsoup library, <a href="#scrapespythonsurlandlogofromitswikipediapage">35</a></strong><br>
<strong>binary representation, <a href="#ints">7</a>, <a href="#binhex">8</a></strong><br>
<strong>bitwise operators, <a href="#bitwiseoperators">8</a>, <a href="#operator">31</a></strong><br>
<strong>bitwise operators, <a href="#bitwiseoperators">8</a>, <a href="#operator">30</a></strong><br>
<strong>bytes, <a href="#open">22</a>-<a href="#modes">23</a>, <a href="#pickle">25</a>, <a href="#bytes">28</a>-<a href="#memoryview">29</a></strong> </p>
<h3 id="c">C</h3>
<p><strong>cache, <a href="#cache">13</a></strong><br>
Expand All @@ -26,7 +26,7 @@ <h3 id="c">C</h3>
<strong>combinatorics, <a href="#combinatorics">8</a></strong><br>
<strong>command line arguments, <a href="#commandlinearguments">22</a></strong><br>
<strong>comprehensions, <a href="#comprehensions">11</a></strong><br>
<strong>context manager, <a href="#contextmanager">17</a>, <a href="#readtextfromfile">23</a>, <a href="#or">27</a>, <a href="#or-1">30</a></strong><br>
<strong>context manager, <a href="#contextmanager">17</a>, <a href="#readtextfromfile">23</a>, <a href="#or">27</a>, <a href="#or-1">32</a></strong><br>
<strong>copy function, <a href="#copy">15</a></strong><br>
<strong>coroutine, <a href="#coroutines">33</a></strong><br>
<strong>counter, <a href="#counter">2</a>, <a href="#generator">4</a>, <a href="#nonlocal">12</a>, <a href="#iterator-1">17</a></strong><br>
Expand All @@ -44,7 +44,7 @@ <h3 id="e">E</h3>
<p><strong>enum module, <a href="#enum">19</a>-<a href="#inline-1">20</a></strong><br>
<strong>enumerate function, <a href="#enumerate">3</a></strong><br>
<strong>excel, <a href="#dataframeencodedecode">46</a></strong><br>
<strong>exceptions, <a href="#exceptions">20</a>-<a href="#exceptionobject">21</a>, <a href="#exceptions-1">23</a>, <a href="#logging">32</a></strong><br>
<strong>exceptions, <a href="#exceptions">20</a>-<a href="#exceptionobject">21</a>, <a href="#exceptions-1">23</a>, <a href="#logging">31</a></strong><br>
<strong>exit function, <a href="#exit">21</a></strong> </p>
<h3 id="f">F</h3>
<p><strong>files, <a href="#print">22</a>-<a href="#memoryview">29</a>, <a href="#runsabasicfileexplorerintheconsole">34</a>, <a href="#dataframeencodedecode">46</a></strong><br>
Expand All @@ -57,7 +57,7 @@ <h3 id="g">G</h3>
<p><strong>games, <a href="#runsaterminalgamewhereyoucontrolanasteriskthatmustavoidnumbers">33</a>, <a href="#pygame">42</a>-<a href="#basicmariobrothersexample">43</a></strong><br>
<strong>generators, <a href="#generator">4</a>, <a href="#comprehensions">11</a>, <a href="#iterator-1">17</a></strong><br>
<strong>global keyword, <a href="#nonlocal">12</a></strong><br>
<strong>gui, <a href="#guiapp">35</a></strong> </p>
<strong>gui app, <a href="#guiapp">35</a></strong> </p>
<h3 id="h">H</h3>
<p><strong>hashable, <a href="#dataclass">15</a>, <a href="#hashable">16</a></strong><br>
<strong>hexadecimal representation, <a href="#ints">7</a>, <a href="#binhex">8</a>, <a href="#encode-1">28</a></strong> </p>
Expand All @@ -66,55 +66,55 @@ <h3 id="i">I</h3>
<strong>imports, <a href="#imports">12</a></strong><br>
<strong>inline, <a href="#otheruses">11</a>, <a href="#dataclass">15</a>, <a href="#inline-1">20</a></strong><br>
<strong>input function, <a href="#input">22</a></strong><br>
<strong>introspection, <a href="#exceptionobject">21</a>, <a href="#introspection">32</a></strong><br>
<strong>ints, <a href="#abstractbaseclasses">4</a>, <a href="#ints">7</a>, <a href="#random">8</a>, <a href="#encode-1">28</a></strong><br>
<strong>is operator, <a href="#comparable">16</a>, <a href="#operator">31</a></strong><br>
<strong>introspection, <a href="#exceptionobject">21</a>, <a href="#introspection">31</a></strong><br>
<strong>ints, <a href="#abstractbaseclasses">4</a>, <a href="#ints">7</a>-<a href="#random">8</a>, <a href="#encode-1">28</a></strong><br>
<strong>is operator, <a href="#comparable">16</a>, <a href="#operator">30</a></strong><br>
<strong>iterable, <a href="#abstractbaseclasses">4</a>, <a href="#iterable">18</a>, <a href="#tableofrequiredandautomaticallyavailablespecialmethods">19</a></strong><br>
<strong>iterator, <a href="#enumerate">3</a>-<a href="#generator">4</a>, <a href="#comprehensions">11</a>, <a href="#iterator-1">17</a></strong><br>
<strong>itertools module, <a href="#itertools">3</a>, <a href="#combinatorics">8</a></strong> </p>
<h3 id="j">J</h3>
<p><strong>json, <a href="#json">25</a>, <a href="#restrequest">36</a>, <a href="#dataframeencodedecode">46</a></strong> </p>
<h3 id="l">L</h3>
<p><strong>lambda, <a href="#lambda">11</a></strong><br>
<strong>lists, <a href="#list">1</a>-<a href="#list">2</a>, <a href="#abstractbaseclasses">4</a>, <a href="#otheruses">11</a>, <a href="#sequence">18</a>-<a href="#tableofrequiredandautomaticallyavailablespecialmethods">19</a>, <a href="#collectionsandtheirexceptions">21</a></strong><br>
<strong>lists, <a href="#list">1</a>-<a href="#list">2</a>, <a href="#abstractbaseclasses">4</a>, <a href="#otheruses">11</a>, <a href="#sequence">18</a>-<a href="#abcsequence">19</a>, <a href="#collectionsandtheirexceptions">21</a></strong><br>
<strong>locale module, <a href="#sortable">16</a></strong><br>
<strong>logging, <a href="#logging">32</a></strong> </p>
<strong>logging, <a href="#logging">31</a></strong> </p>
<h3 id="m">M</h3>
<p><strong>main function, <a href="#main">1</a>, <a href="#basicscripttemplate">49</a></strong><br>
<strong>match statement, <a href="#matchstatement">31</a></strong><br>
<strong>matplotlib library, <a href="#plot">34</a>, <a href="#series">44</a>, <a href="#dataframeencodedecode">46</a></strong><br>
<strong>map function, <a href="#mapfilterreduce">11</a>, <a href="#operator">31</a></strong><br>
<strong>match statement, <a href="#matchstatement">30</a></strong><br>
<strong>matplotlib library, <a href="#plot">34</a>, <a href="#pandas">44</a>, <a href="#dataframe">45</a></strong><br>
<strong>map function, <a href="#mapfilterreduce">11</a>, <a href="#operator">30</a></strong><br>
<strong>math module, <a href="#numbers">7</a></strong><br>
<strong>memoryviews, <a href="#memoryview">29</a></strong><br>
<strong>module, <a href="#imports">12</a></strong> </p>
<h3 id="n">N</h3>
<p><strong>namedtuples, <a href="#namedtuple">3</a></strong><br>
<p><strong>namedtuples, <a href="#namedtuple">3</a>, <a href="#example">6</a></strong><br>
<strong>nonlocal keyword, <a href="#nonlocal">12</a></strong><br>
<strong>numbers, <a href="#abstractbaseclasses">4</a>, <a href="#numbers-1">6</a>-<a href="#random">8</a></strong><br>
<strong>numpy library, <a href="#numpy">37</a>-<a href="#indexing">38</a></strong> </p>
<strong>numpy library, <a href="#numpy">37</a>-<a href="#indexing">38</a>, <a href="#image">39</a>, <a href="#series">44</a></strong> </p>
<h3 id="o">O</h3>
<p><strong>open function, <a href="#contextmanager">17</a>, <a href="#open">22</a>-<a href="#modes">23</a>, <a href="#readobjectfromjsonfile">25</a>, <a href="#readrowsfromcsvfile">26</a>, <a href="#readbytesfromfile">28</a></strong><br>
<strong>operator module, <a href="#operator">31</a></strong><br>
<p><strong>open function, <a href="#contextmanager">17</a>, <a href="#open">22</a>-<a href="#modes">23</a>, <a href="#readcollectionfromjsonfile">25</a>, <a href="#readrowsfromcsvfile">26</a>, <a href="#readbytesfromfile">28</a></strong><br>
<strong>operator module, <a href="#operator">30</a></strong><br>
<strong>os commands, <a href="#paths">23</a>-<a href="#shellcommands">25</a>, <a href="#runsabasicfileexplorerintheconsole">34</a></strong> </p>
<h3 id="p">P</h3>
<p><strong>pandas library, <a href="#pandas">44</a>-<a href="#displaysamultiaxislinechartoftotalcoronaviruscasesandchangesinpricesofbitcoindowjonesandgold">48</a></strong><br>
<strong>partial function, <a href="#partial">12</a>, <a href="#userdefinedfunctionscannotbevaluessotheymustbewrapped">20</a></strong><br>
<strong>paths, <a href="#paths">23</a>-<a href="#oscommands">24</a>, <a href="#runsabasicfileexplorerintheconsole">34</a></strong><br>
<strong>pickle module, <a href="#pickle">25</a></strong><br>
<strong>pillow library, <a href="#image">39</a>-<a href="#animation">40</a></strong><br>
<strong>plotting, <a href="#plot">34</a>, <a href="#series">44</a>, <a href="#dataframeencodedecode">46</a>, <a href="#plotly">47</a>-<a href="#displaysamultiaxislinechartoftotalcoronaviruscasesandchangesinpricesofbitcoindowjonesandgold">48</a></strong><br>
<strong>plotting, <a href="#plot">34</a>, <a href="#pandas">44</a>, <a href="#dataframe">45</a>, <a href="#plotly">47</a>-<a href="#displaysamultiaxislinechartoftotalcoronaviruscasesandchangesinpricesofbitcoindowjonesandgold">48</a></strong><br>
<strong>print function, <a href="#class">14</a>, <a href="#print">22</a></strong><br>
<strong>profiling, <a href="#profiling">36</a>-<a href="#profilingbyline">37</a></strong><br>
<strong>progress bar, <a href="#progressbar">34</a></strong><br>
<strong>property decorator, <a href="#property">15</a></strong><br>
<strong>property decorator, <a href="#property">15</a>, <a href="#hashable">16</a></strong><br>
<strong>pygame library, <a href="#pygame">42</a>-<a href="#basicmariobrothersexample">43</a></strong> </p>
<h3 id="q">Q</h3>
<p><strong>queues, <a href="#deque">29</a>, <a href="#queue">30</a>, <a href="#runsaterminalgamewhereyoucontrolanasteriskthatmustavoidnumbers">33</a></strong> </p>
<p><strong>queues, <a href="#deque">29</a>, <a href="#queue">32</a>, <a href="#runsaterminalgamewhereyoucontrolanasteriskthatmustavoidnumbers">33</a></strong> </p>
<h3 id="r">R</h3>
<p><strong>random module, <a href="#random">8</a></strong><br>
<p><strong>random module, <a href="#random">8</a>, <a href="#runsaterminalgamewhereyoucontrolanasteriskthatmustavoidnumbers">33</a>, <a href="#addsnoisetothewavfile">41</a></strong><br>
<strong>ranges, <a href="#range">3</a>, <a href="#abstractbaseclasses">4</a></strong><br>
<strong>recursion, <a href="#cache">13</a>, <a href="#builtinexceptions">21</a></strong><br>
<strong>reduce function, <a href="#mapfilterreduce">11</a>, <a href="#operator">31</a></strong><br>
<strong>reduce function, <a href="#mapfilterreduce">11</a></strong><br>
<strong>regular expressions, <a href="#regex">5</a>-<a href="#specialsequences">6</a></strong><br>
<strong>requests library, <a href="#scrapespythonsurlandlogofromitswikipediapage">35</a>, <a href="#startstheappinitsownthreadandqueriesitsrestapi">36</a></strong> </p>
<h3 id="s">S</h3>
Expand All @@ -136,12 +136,12 @@ <h3 id="s">S</h3>
<h3 id="t">T</h3>
<p><strong>table, <a href="#csv">26</a>, <a href="#example-1">27</a>, <a href="#table">34</a>, <a href="#numpy">37</a>-<a href="#indexing">38</a>, <a href="#dataframe">45</a>-<a href="#dataframeaggregatetransformmap">46</a></strong><br>
<strong>template, <a href="#format">6</a>, <a href="#dynamicrequest">36</a></strong><br>
<strong>threading module, <a href="#threading">30</a>, <a href="#startstheappinitsownthreadandqueriesitsrestapi">36</a></strong><br>
<strong>threading module, <a href="#threading">32</a>, <a href="#startstheappinitsownthreadandqueriesitsrestapi">36</a></strong><br>
<strong>time module, <a href="#progressbar">34</a>, <a href="#profiling">36</a></strong><br>
<strong>tuples, <a href="#tuple">3</a>, <a href="#abstractbaseclasses">4</a>, <a href="#otheruses">11</a>, <a href="#sequence">18</a>-<a href="#tableofrequiredandautomaticallyavailablespecialmethods">19</a></strong><br>
<strong>type, <a href="#type">4</a></strong><br>
<strong>type annotations, <a href="#typeannotations">15</a>, <a href="#introspection">32</a></strong> </p>
<strong>tuples, <a href="#tuple">3</a>, <a href="#abstractbaseclasses">4</a>, <a href="#otheruses">11</a>, <a href="#sequence">18</a>-<a href="#abcsequence">19</a></strong><br>
<strong>type, <a href="#type">4</a>, <a href="#ducktypes">16</a>, <a href="#matchstatement">30</a></strong><br>
<strong>type annotations, <a href="#typeannotations">15</a>, <a href="#introspection">31</a></strong> </p>
<h3 id="w">W</h3>
<p><strong>wave module, <a href="#audio">40</a>-<a href="#writefloatsamplestowavfile">41</a></strong><br>
<strong>web, <a href="#webapp">36</a></strong> </p>
<strong>web app, <a href="#webapp">36</a></strong> </p>
</div>
42 changes: 21 additions & 21 deletions pdf/index_for_pdf_print.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h3 id="a">A</h3>
<h3 id="b">B</h3>
<p><strong>beautifulsoup library, 35</strong><br>
<strong>binary representation, 7, 8</strong><br>
<strong>bitwise operators, 8, 31</strong><br>
<strong>bitwise operators, 8, 30</strong><br>
<strong>bytes, 22-23, 25, 28-29</strong> </p>
<h3 id="c">C</h3>
<p><strong>cache, 13</strong><br>
Expand All @@ -26,7 +26,7 @@ <h3 id="c">C</h3>
<strong>combinatorics, 8</strong><br>
<strong>command line arguments, 22</strong><br>
<strong>comprehensions, 11</strong><br>
<strong>context manager, 17, 23, 27, 30</strong><br>
<strong>context manager, 17, 23, 27, 32</strong><br>
<strong>copy function, 15</strong><br>
<strong>coroutine, 33</strong><br>
<strong>counter, 2, 4, 12, 17</strong><br>
Expand All @@ -44,7 +44,7 @@ <h3 id="e">E</h3>
<p><strong>enum module, 19-20</strong><br>
<strong>enumerate function, 3</strong><br>
<strong>excel, 46</strong><br>
<strong>exceptions, 20-21, 23, 32</strong><br>
<strong>exceptions, 20-21, 23, 31</strong><br>
<strong>exit function, 21</strong> </p>
<h3 id="f">F</h3>
<p><strong>files, 22-29, 34, 46</strong><br>
Expand All @@ -66,9 +66,9 @@ <h3 id="i">I</h3>
<strong>imports, 12</strong><br>
<strong>inline, 11, 15, 20</strong><br>
<strong>input function, 22</strong><br>
<strong>introspection, 21, 32</strong><br>
<strong>ints, 4, 7, 8, 28</strong><br>
<strong>is operator, 16, 31</strong><br>
<strong>introspection, 21, 31</strong><br>
<strong>ints, 4, 7-8, 28</strong><br>
<strong>is operator, 16, 30</strong><br>
<strong>iterable, 4, 18, 19</strong><br>
<strong>iterator, 3-4, 11, 17</strong><br>
<strong>itertools module, 3, 8</strong> </p>
Expand All @@ -78,43 +78,43 @@ <h3 id="l">L</h3>
<p><strong>lambda, 11</strong><br>
<strong>lists, 1-2, 4, 11, 18-19, 21</strong><br>
<strong>locale module, 16</strong><br>
<strong>logging, 32</strong> </p>
<strong>logging, 31</strong> </p>
<h3 id="m">M</h3>
<p><strong>main function, 1, 49</strong><br>
<strong>match statement, 31</strong><br>
<strong>matplotlib library, 34, 44, 46</strong><br>
<strong>map function, 11, 31</strong><br>
<strong>match statement, 30</strong><br>
<strong>matplotlib library, 34, 44, 45</strong><br>
<strong>map function, 11, 30</strong><br>
<strong>math module, 7</strong><br>
<strong>memoryviews, 29</strong><br>
<strong>module, 12</strong> </p>
<h3 id="n">N</h3>
<p><strong>namedtuples, 3</strong><br>
<p><strong>namedtuples, 3, 6</strong><br>
<strong>nonlocal keyword, 12</strong><br>
<strong>numbers, 4, 6-8</strong><br>
<strong>numpy library, 37-38</strong> </p>
<strong>numpy library, 37-38, 39, 44</strong> </p>
<h3 id="o">O</h3>
<p><strong>open function, 17, 22-23, 25, 26, 28</strong><br>
<strong>operator module, 31</strong><br>
<strong>operator module, 30</strong><br>
<strong>os commands, 23-25, 34</strong> </p>
<h3 id="p">P</h3>
<p><strong>pandas library, 44-48</strong><br>
<strong>partial function, 12, 20</strong><br>
<strong>paths, 23-24, 34</strong><br>
<strong>pickle module, 25</strong><br>
<strong>pillow library, 39-40</strong><br>
<strong>plotting, 34, 44, 46, 47-48</strong><br>
<strong>plotting, 34, 44, 45, 47-48</strong><br>
<strong>print function, 14, 22</strong><br>
<strong>profiling, 36-37</strong><br>
<strong>progress bar, 34</strong><br>
<strong>property decorator, 15</strong><br>
<strong>property decorator, 15, 16</strong><br>
<strong>pygame library, 42-43</strong> </p>
<h3 id="q">Q</h3>
<p><strong>queues, 29, 30, 33</strong> </p>
<p><strong>queues, 29, 32, 33</strong> </p>
<h3 id="r">R</h3>
<p><strong>random module, 8</strong><br>
<p><strong>random module, 8, 33, 41</strong><br>
<strong>ranges, 3, 4</strong><br>
<strong>recursion, 13, 21</strong><br>
<strong>reduce function, 11, 31</strong><br>
<strong>reduce function, 11</strong><br>
<strong>regular expressions, 5-6</strong><br>
<strong>requests library, 35, 36</strong> </p>
<h3 id="s">S</h3>
Expand All @@ -136,11 +136,11 @@ <h3 id="s">S</h3>
<h3 id="t">T</h3>
<p><strong>table, 26, 27, 34, 37-38, 45-46</strong><br>
<strong>template, 6, 36</strong><br>
<strong>threading module, 30, 36</strong><br>
<strong>threading module, 32, 36</strong><br>
<strong>time module, 34, 36</strong><br>
<strong>tuples, 3, 4, 11, 18-19</strong><br>
<strong>type, 4</strong><br>
<strong>type annotations, 15, 32</strong> </p>
<strong>type, 4, 16, 30</strong><br>
<strong>type annotations, 15, 31</strong> </p>
<h3 id="w">W</h3>
<p><strong>wave module, 40-41</strong><br>
<strong>web, 36</strong> </p>
Expand Down
Loading

0 comments on commit ea141a6

Please sign in to comment.