#254: Do Excel things, get notebook Python code with Mito
Watch the live stream:
About the show
Sponsored by us:
Special guest: Muhammad Raza
Brian #1: yaml, GH Actions, and Python 3.10
python: [3.7, 3.8, 3.9, 3.10-dev]
python: ["3.7", "3.8", "3.9", "3.10"]
- Github Actions use yaml.
- yaml treats 3.10-dev as a string, since it’s got non-numbers in it.
- yaml treats 3.10 as a number, and is the same as 3.1
- hence, we have to use quotes for “3.10”
- using them on “3.7”, etc is not necessary, but is a nice consistency
- via Brian Skin
- "For the first time in more than 20 years we have a new leader of the pack..." the TIOBE Index announced this month. "The long-standing hegemony of Java and C is over.”
- For Tiobe, its enterprise focus, has seen Java and C dominate in recent years, but Python has been snapping at the heels of Java, and has now overtaken it...
- "Its ease of learning, its huge amount of libraries, and its widespread use in all kinds of domains, has made it the most popular programming language of today. Congratulations Guido van Rossum!"
Muhammad #3: Newspaper3k: Article scraping & curation
- News, full-text, and article metadata extraction
- This allows you extract useful information from news articles, similar to Pocket or InstaPaper.
Brian #4: PEP 660, pip 21.3, flit 3.4 -> easy editable installs
pip install -e /local/diris a great way to have a project installed while you are developing it.
- It used to not work with
- Flit worked around this with
- PEP660 - Editable installs for pyproject.toml based builds (wheel based)
- Plus tons of work by Stéphane Bidoul and others, see Test & Code, episode 163
- pip 21.3 (Oct 11), flit 3.4 (Oct 10) now support PEP660
- And now with pip 21.3 and flit 3.4,
pip install -eworks for flit projects
- If you are using optional dependencies, for example:
[project.optional-dependencies] test = [ "pytest", "tox", ]
- Then you need to use a quotes:
pip install -e ".[test]"
- via Tomas Rollo
- Mito is a spreadsheet that helps you complete your Python analyses 10x faster.
- You edit the Mitosheet, and it generates Python code for you.
- Best way to experience it is to watch the video
Muhammad #6: troposphere
- Python library to create AWS CloudFormation descriptions
- The troposphere library allows easier creation of CloudFormation templates by writing Python code to describe AWS resources.
- PyCon 2022 site is live, https://us.pycon.org/2022/
Joke: Alphabet cancels Loon