|
1 | 1 | # python4zkm |
2 | | -Introductionary Python3 samples related to digital artworts, demonstrating principles of data, images, sound, and visualizations. |
3 | | -Inspired by the [open codes](https://open-codes.zkm.de/en) exhibition at the |
4 | | -[ZKM](https://zkm.de/), Karlsruhe, Germany |
| 2 | +Introductionary Python3 samples related to digital artworts, demonstrating principles of data, images, sound, and visualizations. Inspired by the [open codes](https://open-codes.zkm.de/en) exhibition at the |
| 3 | +[ZKM](https://zkm.de/), Karlsruhe, Germany. |
5 | 4 |
|
6 | | -The related workshop [Code like an Artist](https://www.meet-and-code.org/de/de/event-show/1872 |
7 | | -) ist recognized by the international [meet and code](https://www.meet-and-code.org/de/de/ |
8 | | -) program. |
| 5 | +The related workshop [Code like an Artist](https://www.meet-and-code.org/de/de/event-show/1872) ist recognized by the international [meet and code](https://www.meet-and-code.org/de/de/) program. |
9 | 6 |
|
10 | 7 | <img src="https://zkm.de/media/styles/r17_1280/public/bild/ocii_plakat_dina1_final.jpg?itok=77xfS05w&c=e425af2cad7290dca592b01cdf1b1ca4" width="250"> |
11 | 8 |
|
12 | | -More information on the related artworks and the samples is in the [doc folder](../master/doc/opencodes.md) |
13 | | -The code samples don't aim to demonstrate best-practice in terms of coding style and documentation |
14 | | -(not even on English syntax and grammar). Instead, they try to give an introduction in a very brief manner to |
15 | | -everything from "what is a variable" to "how to crate a movie" and beyond. |
16 | | - |
17 | | -To run all samples you need to install the following modules: |
18 | | - |
19 | | - * numpy |
20 | | - * matplotlib |
21 | | - * numba |
22 | | - * pygame |
23 | | - * random |
24 | | - * pyttsx3 |
25 | | - * * On Windows you need pywin32 too for speech |
26 | | - * feedparser |
27 | | - * hashlib |
28 | | - * html2text |
29 | | - * quandl |
30 | | - * wave |
31 | | - * moviepy |
32 | | - * vispy |
33 | | - * imageio |
34 | | - * scikit-image |
35 | | - * sxipy |
36 | | - * PIL (aka PILLOW) |
37 | | - |
38 | | -I hope I got all of them. In case I didn't you will get a warning about missing modules.... |
39 | | - |
40 | | -In addition, you need the following packages in your system installation: |
41 | | - |
42 | | - * espeak for text to speech output |
43 | | - * Image processing examples would profit from opencv2, but this requires a lot of additional stuff on WIndows, so I tried to avoid it. In case you want to go that way: |
44 | | - * * Install OpenCV3 |
45 | | - * * Get a basic VisualStudio installation. Please refer to the OpenCV3 tutorials like |
46 | | - * * * here: https://docs.opencv.org/master/d3/d52/tutorial_windows_install.htm |
47 | | - * For stockParse you need an API key from Quandl (the stock data provider) |
48 | | - * * Sign up for a free key [here](https://quandl.com) and add the key to a file |
49 | | - * * private.py with the content: |
50 | | - * * * quandl_key = "<the key you got from quandl>" |
51 | | - * * stockParse imports the key from this private file |
52 | | - |
53 | | -The samples have been tested on Linux and Windows using Python3 version 3.6 |
| 9 | +More information on the related artworks and the samples is in the [doc folder](../master/doc/opencodes.md). |
54 | 10 |
|
| 11 | +## Disclaimer |
55 | 12 |
|
| 13 | +The code samples don't aim to demonstrate best-practice in terms of coding style and documentation (not even on English syntax and grammar). Instead, they try to give an introduction in a very brief manner to everything from "what is a variable" to "how to create a movie" and beyond. |
56 | 14 |
|
| 15 | +## Requirements |
| 16 | + |
| 17 | +### System installations |
| 18 | + |
| 19 | +- Python 3.6+ |
| 20 | +- eSpeak |
| 21 | + - for text to speech output |
| 22 | +- OpenCV3 |
| 23 | + - a basic VisualStudio installation. Please refer to the OpenCV3 tutorials like [here](https://docs.opencv.org/master/d3/d52/tutorial_windows_install.html) |
| 24 | +- Quandl API Key (for `stockParse` sample) |
| 25 | + - sign up for a free key [here](https://quandl.com) and add the key to a file `private.py` created in a repository root folder with the following content: |
| 26 | + - `quandl_key = <the key you got from quandl>` |
| 27 | + |
| 28 | +### Python packages |
| 29 | + |
| 30 | +In order to run all samples, you need to install dependencies as follows: |
| 31 | + |
| 32 | +On Windows: |
| 33 | + |
| 34 | +``` |
| 35 | +pip install -r requirements-win.txt |
| 36 | +``` |
| 37 | + |
| 38 | +On Linux or Mac: |
| 39 | + |
| 40 | +``` |
| 41 | +pip install -r requirements.txt |
| 42 | +``` |
0 commit comments