Discover this podcast and so much more

Podcasts are free to enjoy without a subscription. We also offer ebooks, audiobooks, and so much more for just $11.99/month.

Unavailable#124 This is not the None you're looking for
Currently unavailable

#124 This is not the None you're looking for

FromPython Bytes


Currently unavailable

#124 This is not the None you're looking for

FromPython Bytes

ratings:
Length:
28 minutes
Released:
Apr 5, 2019
Format:
Podcast episode

Description

Sponsored by DigitalOcean: pythonbytes.fm/digitalocean

Brian #1: pytest 4.4.0


Lots of amazing new features here (at least for testing nerds)
testpaths displayed in output, if used.

pytest.ini setting that allows you to specify a list of directories or tests (relative to test rootdir) to test. (can speed up test collection).

Lots of goodies for plugin writers.
Internal changes to allow subtests to work with a new plugin, pytest-subtests.
Just started playing with it, but I’m excited already. Planning on a full Test & Code episode after I play with it a bit more.


# unittest example:
class T(unittest.TestCase):
def test_foo(self):
for i in range(5):
with self.subTest("custom message", i=i):
self.assertEqual(i % 2, 0)
# pytest example:
def test(subtests):
for i in range(5):
with subtests.test(msg="custom message", i=i):
assert i % 2 == 0


Michael #2: requests-async


async-await support for requests
Just finished talking with Kenneth Reitz, native async coming to requests, but awhile off
Nice interm solution
Requires modern Python (3.6)
Interesting Flask, Quart, Starlette, etc. framework wrapper for testing


Brian #3: Reasons why PyPI should not be a service


Dustin Ingram’s article: PyPI as a Service
“Layoffs at JavaScript package registry raise questions about fate of community resource” - The Register article
Apparently PyPI gets requests for a private form of their service regularly, but there are problems with that.
Currently a non-profit project under the PSF. That may be hard to maintain if they have a for-profit part.
Donated services and infrastructure of more than $1M/year would be hard to replace.
There are already other package repository options. Although there is probably room for others to compete.
Currently run by volunteers for the most part. (<1 employee). Don’t think they would stick around to volunteer for a for-profit enterprise.
conclusion: not impossible, but probably not worth it.


Michael #4: Jupyter in the cloud


Six easy ways to run your Jupyter Notebook in the cloud by Kevin Markham
six services you can use to easily run your Jupyter notebook in the cloud. All of them have the following characteristics:

They don't require you to install anything on your local machine.
They are completely free (or they have a free plan).
They give you access to the Jupyter Notebook environment (or a Jupyter-like environment).
They allow you to import and export notebooks using the standard .ipynb file format.
They support the Python language (and most support other languages as well).

Binder is a service provided by the Binder Project, which is a member of the Project Jupyter open source ecosystem. It allows you to input the URL of any public Git repository, and it will open that repository within the native Jupyter Notebook interface.
Kaggle is best known as a platform for data science competitions. However, they also provide a free service called Kernels that can be used independently of their competitions.
Google Colaboratory, usually referred to as "Google Colab," is available to anyone with a Google account. As long as you are signed into Google, you can quickly get started by creating an empty notebook, uploading an existing notebook, or importing a notebook from any public GitHub repository.
To get started with Azure Notebooks, you first sign in with a Microsoft or Outlook account (or create one). The next step is to create a "project", which is structured identically to a GitHub repository: it can contain one or more notebooks, Markdown files, datasets, and any other file you want to create or upload, and all of these can be organized into folders.
CoCalc, short for "collaborative calculation", is an online workspace for computation in Python, R, Julia, and many other languages. It allows you to create and edit Jupyter Notebooks, Sage worksheets, and LaTeX documents.
Datalore was created by JetBrains, the same company who makes PyCharm (a popular Python IDE). Getting started is as easy as creating a
Released:
Apr 5, 2019
Format:
Podcast episode