|
@ -15,7 +15,7 @@ Contents |
|
|
** ** **5. Data:** ** ** **[`JSON`](#json)**__,__ **[`Pickle`](#pickle)**__,__ **[`CSV`](#csv)**__,__ **[`SQLite`](#sqlite)**__,__ **[`Bytes`](#bytes)**__,__ **[`Struct`](#struct)**__,__ **[`Array`](#array)**__,__ **[`Memory_View`](#memory-view)**__,__ **[`Deque`](#deque)**__.__ |
|
|
** ** **5. Data:** ** ** **[`JSON`](#json)**__,__ **[`Pickle`](#pickle)**__,__ **[`CSV`](#csv)**__,__ **[`SQLite`](#sqlite)**__,__ **[`Bytes`](#bytes)**__,__ **[`Struct`](#struct)**__,__ **[`Array`](#array)**__,__ **[`Memory_View`](#memory-view)**__,__ **[`Deque`](#deque)**__.__ |
|
|
** ** **6. Advanced:** ** ** **[`Threading`](#threading)**__,__ **[`Operator`](#operator)**__,__ **[`Introspection`](#introspection)**__,__ **[`Metaprograming`](#metaprograming)**__,__ **[`Eval`](#eval)**__,__ **[`Coroutines`](#coroutines)**__.__ |
|
|
** ** **6. Advanced:** ** ** **[`Threading`](#threading)**__,__ **[`Operator`](#operator)**__,__ **[`Introspection`](#introspection)**__,__ **[`Metaprograming`](#metaprograming)**__,__ **[`Eval`](#eval)**__,__ **[`Coroutines`](#coroutines)**__.__ |
|
|
** ** **7. Libraries:** ** ** **[`Progress_Bar`](#progress-bar)**__,__ **[`Plot`](#plot)**__,__ **[`Table`](#table)**__,__ **[`Curses`](#curses)**__,__ **[`Logging`](#logging)**__,__ **[`Scraping`](#scraping)**__,__ **[`Web`](#web)**__,__ **[`Profile`](#profiling)**__,__ |
|
|
** ** **7. Libraries:** ** ** **[`Progress_Bar`](#progress-bar)**__,__ **[`Plot`](#plot)**__,__ **[`Table`](#table)**__,__ **[`Curses`](#curses)**__,__ **[`Logging`](#logging)**__,__ **[`Scraping`](#scraping)**__,__ **[`Web`](#web)**__,__ **[`Profile`](#profiling)**__,__ |
|
|
** ** **[`NumPy`](#numpy)**__,__ **[`Image`](#image)**__,__ **[`Audio`](#audio)**__,__ **[`Games`](#pygame)**__,__ **[`Data`](#pandas)**__,__ **[`GUI`](#gui)**__.__ |
|
|
|
|
|
|
|
|
** ** **[`NumPy`](#numpy)**__,__ **[`Image`](#image)**__,__ **[`Audio`](#audio)**__,__ **[`Games`](#pygame)**__,__ **[`Data`](#pandas)**__,__ **[`GUI`](#pysimplegui)**__.__ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Main |
|
|
Main |
|
@ -1196,7 +1196,6 @@ Hello World! |
|
|
|
|
|
|
|
|
Iterable Duck Types |
|
|
Iterable Duck Types |
|
|
------------------- |
|
|
------------------- |
|
|
|
|
|
|
|
|
### Iterable |
|
|
### Iterable |
|
|
* **Only required method is iter(). It should return an iterator of object's items.** |
|
|
* **Only required method is iter(). It should return an iterator of object's items.** |
|
|
* **Contains() automatically works on any object that has iter() defined.** |
|
|
* **Contains() automatically works on any object that has iter() defined.** |
|
@ -1342,7 +1341,6 @@ LogicOp = Enum('LogicOp', {'AND': partial(lambda l, r: l and r), |
|
|
|
|
|
|
|
|
Exceptions |
|
|
Exceptions |
|
|
---------- |
|
|
---------- |
|
|
|
|
|
|
|
|
### Basic Example |
|
|
### Basic Example |
|
|
```python |
|
|
```python |
|
|
try: |
|
|
try: |
|
@ -2913,7 +2911,6 @@ simpleaudio.play_buffer(samples_b, 1, 2, F) |
|
|
|
|
|
|
|
|
Pygame |
|
|
Pygame |
|
|
------ |
|
|
------ |
|
|
|
|
|
|
|
|
### Basic Example |
|
|
### Basic Example |
|
|
```python |
|
|
```python |
|
|
# $ pip3 install pygame |
|
|
# $ pip3 install pygame |
|
@ -3068,7 +3065,6 @@ if __name__ == '__main__': |
|
|
|
|
|
|
|
|
Pandas |
|
|
Pandas |
|
|
------ |
|
|
------ |
|
|
|
|
|
|
|
|
```python |
|
|
```python |
|
|
# $ pip3 install pandas |
|
|
# $ pip3 install pandas |
|
|
import pandas as pd |
|
|
import pandas as pd |
|
@ -3347,7 +3343,6 @@ c 7 8 |
|
|
|
|
|
|
|
|
Plotly |
|
|
Plotly |
|
|
------ |
|
|
------ |
|
|
|
|
|
|
|
|
```python |
|
|
```python |
|
|
# $ pip3 install plotly |
|
|
# $ pip3 install plotly |
|
|
from plotly.express import line |
|
|
from plotly.express import line |
|
@ -3425,8 +3420,8 @@ if __name__ == '__main__': |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GUI |
|
|
|
|
|
--- |
|
|
|
|
|
|
|
|
PySimpleGUI |
|
|
|
|
|
----------- |
|
|
```python |
|
|
```python |
|
|
# $ pip3 install PySimpleGUI |
|
|
# $ pip3 install PySimpleGUI |
|
|
import PySimpleGUI as sg |
|
|
import PySimpleGUI as sg |
|
@ -3439,7 +3434,6 @@ print(f'Hello {values[0]}!') |
|
|
|
|
|
|
|
|
Appendix |
|
|
Appendix |
|
|
-------- |
|
|
-------- |
|
|
|
|
|
|
|
|
### Cython |
|
|
### Cython |
|
|
**Library that compiles Python code into C.** |
|
|
**Library that compiles Python code into C.** |
|
|
|
|
|
|
|
|