Python Bytes

#24 I have a local PyPI server and so do you!


Listen Later

Welcome to Python bytes. Episode 24, recorded May 2, 2017. This episode is sponsored by rollbar: **Brian #1:[Learning Python Series by Doug Farrell](https://dbader.org/blog/python-intro-statements-variables-and-loops), published on dbader.org** * Doug Ferrell wrote for [Robotics and Beyond](https://roboticsandbeyond.org/) , a STEM educational space * This is part 1: **Let’s Program with Python: Statements, Variables, and Loops** **Michael #2:** [**Geeking out in your older years**](http://www.pgbovine.net/publications/older-adults-learning- programming_CHI-2017.pdf) * Over 500 respondents on * Age group: 60-85 * Opportunities: Help older adults become software dev proficient to * Connect with their grand children * Fill the growing tech / teacher gap * Mentor others * Keep mentally active * Pursue their hobbies * Used MOOCs, online courses, books, and more to learn * Felt somewhat isolated and disconnected * How could we all help? Or help them help themselves as a group? **Brian #3:** **Local package store** * Not a story, just something I used for the plane trip that didn’t know worked before. * Stops my quest for a easy to use local pypi server. * Download without installing `$ cd /tmp/wheelhouse` `$ python3.6 -m pip download [HTML_REMOVED]` * Then, later, probably within a virtual env `$ python3.6 -m pip install --no-index --find-links=/tmp/wheelhouse somePackage` * **Does it work with requirements files? Yes!** `pip3 download -r /full_path_to/requirements.txt` **Sponsored by rollbar** * **Adding the Rollbar Python SDK is as easy as`pip install rollbar`.** * **Make sure to check out Rollbar at Pycon. Grab swag and get a product demo.** * Visit and get the get the Bootstrap Plan free for free * 100,000 rollbar events / mo, 180 days retention **Michael #4:** [**Modifying the Python language in 6 minutes**](https://hackernoon.com/modifying-the-python-language- in-7-minutes-b94b0a99ce14) * Anthony Shaw * I’m writing my findings on how CPython works and show you how easy it is to modify the Python syntax. * I’m going to show you how to add a new **feature** to the Python syntax. * **Level 1: PEPs** * **Level 2: Grammar** * The [Grammar](https://github.com/python/cpython/blob/v3.6.1/Grammar/Grammar) file is simple text file describing all the elements of the Python language. This is used by not just CPython, but other implementations like PyPy to keep consistency and agree on the types of language semantics. * New statements * `incr_stmt: '++'` * `decr_stmt: '--'` * **Level 3 : Lexer:** There are four steps that Python takes when you hit return: lexing, parsing, compiling, and interpreting. Lexing is breaking the line of code you just typed into tokens. * **Level 4 : Parser** : The parser takes those tokens and generates a structure that shows their relationship to each other. For Python and many other languages, this is the Abstract Syntax Tree (or AST). * **Level 5: Compiler:** The compiler then takes the syntax tree and ‘visits’ each branch, the CPython compiler has a method for visiting a statement, called `compile_visit_stmt` which is just a big switch statement looking at the statement kind. * **Brian #5:** [**colorful**](https://github.com/timofurrer/colorful) * “Terminal string styling done right, in Python” * Add color to terminal applications with a pretty easy to read syntax **Michael #6:** [**Five steps to add the _bling_ factor your Python package**](https://www.reddit.com/r/Python/comments/65v1kx/five_steps_to_add_the_bling_factor_your_python/) _*_ * * by Tjelvar Olsson * Step 1: Host the documentation on readthedocs * Step 2: Set up continuous integration testing on Travis Ci * Step 3: Calculate your code coverage using Codecov * Step 4: Upload your Package to PyPi * Step 5: Add badges to your project’s README file
...more
View all episodesView all episodes
Download on the App Store

Python BytesBy Michael Kennedy and Brian Okken

  • 4.7
  • 4.7
  • 4.7
  • 4.7
  • 4.7

4.7

212 ratings


More shows like Python Bytes

View all
Software Engineering Radio - the podcast for professional software developers by se-radio@computer.org

Software Engineering Radio - the podcast for professional software developers

272 Listeners

The Changelog: Software Development, Open Source by Changelog Media

The Changelog: Software Development, Open Source

284 Listeners

Data Skeptic by Kyle Polich

Data Skeptic

480 Listeners

Talk Python To Me by Michael Kennedy

Talk Python To Me

590 Listeners

Software Engineering Daily by Software Engineering Daily

Software Engineering Daily

621 Listeners

Test & Code by Brian Okken

Test & Code

70 Listeners

Super Data Science: ML & AI Podcast with Jon Krohn by Jon Krohn

Super Data Science: ML & AI Podcast with Jon Krohn

298 Listeners

Data Engineering Podcast by Tobias Macey

Data Engineering Podcast

140 Listeners

Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

Syntax - Tasty Web Development Treats

987 Listeners

CoRecursive: Coding Stories by Adam Gordon Bell - Software Developer

CoRecursive: Coding Stories

189 Listeners

DataFramed by DataCamp

DataFramed

267 Listeners

Practical AI by Practical AI LLC

Practical AI

192 Listeners

The Stack Overflow Podcast by The Stack Overflow Podcast

The Stack Overflow Podcast

62 Listeners

The Real Python Podcast by Real Python

The Real Python Podcast

139 Listeners

Oxide and Friends by Oxide Computer Company

Oxide and Friends

47 Listeners