PyCoder’s Weekly: Issue #364 (April 16, 2019)

#364 – APRIL 16, 2019
View in Browser »

The PyCoder’s Weekly Logo

Hands-On Python 3 Concurrency With the asyncio Module

Learn how to speed up your Python 3 programs using concurrency and the asyncio module in the standard library. See step-by-step how to leverage concurrency and parallelism in your own programs, all the way to building a complete HTTP downloader example app using asyncio and aiohttp.

Python Used to Take Photo of Black Hole

“Scientists have used a new algorithm to take a photo of a black hole. One of the most exciting parts about it to me is that they used a lot of Python libraries to do the magic.”

Monitor Python Applications With Datadog APM and Distributed Tracing


Datadog’s tracing client integrates with asynchronous libraries like asyncio, gevent, and Tornado. Trace requests across service boundaries to identify bottlenecks, and get the necessary context to debug critical errors. Dive into your Python applications today with a free 14-day trial of Datadog →
DATADOG sponsor

Django: Keeping Logic Out of Templates (And Views)

Solid advice! Keep your Django templates and views clean by moving application logic into model methods and model managers.

How to Create an Index in Django Without Downtime

In this step-by-step Python tutorial, you’ll get a solid understanding of the limitations of Django migrations by tackling a well known problem: creating an index in Django without downtime.

Meet Python Content Creators at PyCharm’s PyCon Booth

I’ll be there, the Real Python team will be there, and so will Mike Kennedy from Talk Python, Brian Okken from Test & Code, Matt Harrison, the PyBites team, Chris Medina, and Miguel Grinberg. Be sure to stop by and say hi 🙂 Thanks JetBrains!

list.sort() vs sorted(list)

Taking a closer look at Python’s built-in list sorting methods with regards to memory consumption and time efficiency. Nice writeup!

PyCon 2019 Close to Sell Out

Get your ticket before it’s too late 🙂


Just Found the Best Python Book…Cover

(Potentially not safe for work)

Python Jobs

Senior Python Developer (Copenhagen, Denmark)

GameAnalytics Ltd.

Senior Python Engineer (Remote)

ReCharge Payments

Python Engineer in Healthcare (Burlington, MA)

Nuance Communications

Machine Learning and Data Science Developer (Austin, TX)

Protection Engineering Consultants LLC

More Python Jobs >>>

Articles & Tutorials

Python String Formatting Tips & Best Practices

Learn the four main approaches to string formatting in Python, as well as their strengths and weaknesses. You’ll also get a simple rule of thumb for how to pick the best general purpose string formatting approach in your own programs.

Python App Settings Management With Dynaconf

Nice little project for managing settings in your Python apps: “The only line of code you need to manage your Python 3 configurations”

Stop Reviewing Code Manually


Take the hassle out of code reviews—Codacy flags errors so you can fix them quickly. Address security concerns, code duplication, code complexity and drops in coverage, directly from your workflow. Click here to get started →
CODACY sponsor

Introduction to the Python Calendar Module

Short & sweet intro to the calendar module in the Python standard library.

Be Your Own Certificate Authority

How to create a simple, internal CA for your microservice architecture or integration testing—with Python.

Linear Regression in Python

In this step-by-step tutorial, you’ll get started with linear regression in Python. Linear regression is one of the fundamental statistical and machine learning techniques, and Python is a popular choice for machine learning.

LSTMs for Human Activity Recognition

An example of using TensorFlow for Human Activity Recognition (HAR) on a smartphone data set in order to classify types of movement, e.g. “walking”, “sitting”, “standing” etc.

Raspberry Pi for Computer Vision and Deep Learning

You can teach your Raspberry Pi to “see” using Computer Vision, Deep Learning, and OpenCV. Let Adrian Rosebrock show you how →

How to Write a Python Web Framework (Part 4)

In this part of Jahongir’s blog post series you’ll see how to expand your web framework with custom exception handlers, support for static files, and middleware processing.

Using Python to Analyze Game of Thrones

Want to learn Python? What better way to learn than by having a Game of Thrones project to complete as motivation.
ROCKY KEV • Shared by Ricky White

Projects & Code

eht-imaging: The Code Behind the Black Hole Image

Imaging, analysis, and simulation software for radio interferometry used for generating the famous black hole image. Python FTW!


PyColorado 2019 CFP

September 6 to September 8 in Denver, CO

PyLadies Dublin

April 18, 2019


April 20, 2019

SciPy Japan 2019

April 23 to April 25, 2019

Happy Pythoning!
This was PyCoder’s Weekly Issue #364.
View in Browser »


[ Subscribe to 🐍 PyCoder’s Weekly 💌 – Get the best Python news, articles, and tutorials delivered to your inbox once a week >> Click here to learn more ]

Planet Python

MacADUK 2019 Presentation Video online

The recording of my MacADUK 2019 presentation: “Modern Deployment Workflows for Business” is online and available:

You can find this video and the other recorded presentations in the MacADUK 2019 playlist on YouTube.

I am really happy with how this presentation turned out and I could be more happy with the keyframe that was chosen for the video.

You can find the notes and slides at the session’s permanent page.

Many thanks again to all those who put a lot of effort into making MacADUK 2019 the great conference it was. Also thanks to the attendees with all their great feedback and applause. See you all again next year!

Scripting OS X

Caktus Consulting Group: We're Eagerly Preparing for PyCon 2019!

Pictured: The final rush is on! Staff quickly check materials for our PyCon booth.

PyCon 2019 is almost here, and we’re excited to continue to sponsor this premier Python event, which takes place in Cleveland, OH, from May 1 – 9. PyCon attracts attendees from around the world, and for the first time, the conference will include a track of Spanish talks.

Caktus at PyCon

Connecting with the Python community is one of our favorite parts of participating in PyCon. We love to catch up with people we’ve met before and see new faces, too! We’ll be in the Exhibit Hall at booth 645 on May 2 – 4, where we’ll have swag, games, and giveaways.

Ultimate Tic Tac Toe Game by Caktus Some of you may remember our Ultimate Tic Tac Toe game from previous years. Only a few committed players were able to beat the AI opponent last year. This year, any (human) champions will earn a Caktus hoodie and be entered into a drawing to win a Google AIY Vision Kit and a Google AIY Voice Kit.

Must-See Talks & Events

PyCon consistently attracts top-notch speakers who present on a variety of informative topics. Our team is especially looking forward to the following:

Check out the full schedule of talks. Some of these will likely appear in our follow-up PyCon Must-See Talks series, so if you can’t make it to the event, check back in June for our top picks.

Open Spaces: Beyond the scheduled talks, our Technology Support Specialist Scott Morningstar is looking forward to the Open Spaces sessions, which are self-organizing, meetup-like events. Scott plans to run a game of WINTERHORN during one of the open spaces times. The live-action game allows players to reflect on the government and opportunities for activism. “I’m not sure if playing WINTERHORN will make you a better developer, but it may make you a better citizen, or at least better informed about what is happening in the world,” Scott said.

Arts Festival: This year, PyCon includes a mini arts festival called The Art of Python, which will “showcase novel art that helps us share our emotionally charged experiences of programming (particularly in Python).” With his background in STEAM education (STEM + the Arts), account executive Tim Scales is particularly excited about the arts festival, which will provide a creative complement to the technical presentations and lectures.

Grow with us. Now hiring Django contractors.

Job Fair Open to Public

Are you a sharp Django web developer searching for your next opportunity? Good news — we’re hiring! View the spec and apply from our Careers page. We’ll also be at table 34 during the PyCon job fair on May 5, which is open to the public, so come meet the hiring manager and learn more about what it’s like to work at Caktus.

Don’t be a Stranger!

Come see us at our booth, look for members of the Caktus team in our T-shirts during the event, or go ahead and schedule a meeting with us.

Whether you’ll be at PyCon or following along from home, we’ll tweet from @CaktusGroup. Be sure to follow us for the latest updates from the event.

Planet Python

PyCon: PyCon 2019 close to sell out!

We are all very excited that, once again, PyCon will sell out.  Time is running out so act fast if you are planning to attend, there are 60 tickets left as of April 12th at 11:00am central time.

Time is moving fast!

Things to remember:

  • Hotels:
    • PyCon Hotel Blocks are sold out, we suggest using online hotel booking sites to search for the best options near the Huntington Convention Center
    • Hotel changes and cancellations should be made by contacting the hotels directly.  
    • Hotel cancellations should be made directly with the individual properties 48 hours prior to arrival to avoid a one night cancellation charge
  • Dietary Restrictions:
    • If you indicated ‘dietary allergy’ when registering and have not provided specifics, please email with your dietary restrictions.
  • Registration Cancellation Deadline:
    • April 19th is the final date to submit an email requesting a conference registration cancellation for the $ 50.00 ($ 25.00 for students) cancellation fee.
    • April 20th and after there will be no refunds for cancellations.  You will, however, be able to transfer the registration to another person after that date.  Further details can be found here.
We are looking forward to seeing everyone in Cleveland!

PyCon 2019 Staff

Planet Python

Continuum Analytics Blog: AnacondaCON 2019 Day 3 Recap: The Need for Speed, “Delightful UX” in Dev Tools, LOTR Jokes and More.

Everyone at Anaconda is still feeling the love AnacondaCON 2019. Day 3 wrapped up last Friday with one more day of talks and sessions, highlighted by some powerhouse keynotes. Let’s get right to the good…

The post AnacondaCON 2019 Day 3 Recap: The Need for Speed, “Delightful UX” in Dev Tools, LOTR Jokes and More. appeared first on Anaconda.

Planet Python