In which we teach programs to share.
- multiprocessing is the Python package that helps spawn and connect processes from our code. Create new processes with a call to Process(). Use a Queue to help processes pass objects back and forth.
- The getkey package is super helpful for grabbing keypresses.
- The flake8 package is worth its weight in gold for catching syntax errors ahead of time.
- The black package is also a useful tool. It reformats Python code to a readable and PEP 8-compliant format.
- The logging package is useful for creating, managing, and writing to log files.
- JSON is a helpful text format for communicating data between human and machine. Python's json package unlocks a toolset for working with it.
- Numpy and Matplotlib are invaluable numerical processing and plotting packages. We will become much better acquainted with them in future chapters.
- black: https://pypi.org/project/black/
- flake8: https://pypi.org/project/flake8/
- getkey: https://pypi.org/project/getkey/
- json: https://docs.python.org/3/library/json.html
- logging: https://docs.python.org/3/library/logging.html
- matplotlib: https://matplotlib.org/
- multiprocessing: https://docs.python.org/3/library/multiprocessing.html
- numpy: https://numpy.org/
- pip: https://pypi.org/project/pip
1. The Robot Operating System
2. Billie Eilish is a popular musician.
3. PyPI, the Python Package Index.
- 4. It looks like it wasn't actually Ford who first said this. But as (probably someone other than) Mark Twain said, "Never let the truth get in the way of a good story."
5. PEP-8. Python Extension Proposals
are a catch-all for several diverse types of documents, such as
proposed syntax changes, reference materials, philosophical essays,
and third party packages. They are mostly numbered in order of
creation, so PEP-8 is an early one. Although most of it is in the form
of recommendations rather than commandments, it has the weight of
consensus and tenure behind it. Unless you have a good reason to do
otherwise, you're always safe following PEP-8 style.
6. Rust is a popular programming language. It emphasizes speed,
but with fewer opportunities to shoot yourself in the foot than are
offered by C and C++.