Tuesday, March 3, 2020

PyCoder’s Weekly: Issue #410 (March 3, 2020)

#410 – MARCH 3, 2020
View in Browser »

The PyCoder’s Weekly Logo


Advanced Usage of Python Requests

“While it’s easy to immediately be productive with requests because of the simple API, the library also offers extensibility for advanced use cases. If you’re writing an API-heavy client or a web scraper you’ll probably need tolerance for network failures, helpful debugging traces and syntactic sugar.”
DANI HODOVIC

EOF Is Not a Character

Do you know how an application knows when a read operation reaches the end of a file? In this interesting read, explore what EOF (end-of-file) really is by writing your own version of the Linux cat command in ANSI C, Python, Go, and JavaScript.
RUSLAN SPIVAK

Automate & Standardize Code Reviews for Python

alt

Take the hassle out of code reviews - Codacy flags errors automatically, directly from your Git workflow. Customize standards on coverage, duplication, complexity & style violations. Use in the cloud or on your servers for 30 different languages. Get started for free →
CODACY sponsor

Double-Checked Locking With Django ORM

The double-checked locking pattern is useful when you need to restrict access to a certain resource to stop simultaneous process from working on it at the same time. Learn how to apply this pattern in Django using the ORM and database level locking features.
LUKE PLANT

Python Bindings: Calling C or C++ From Python

What are Python bindings? Should you use ctypes, CFFI, or a different tool? In this step-by-step tutorial, you’ll get an overview of some of the options you can use to call C or C++ code from Python.
REAL PYTHON

PyPy Status Blog: PyPy and CFFI Have Moved to Heptapod

PyPy has moved the center of their development off Bitbucket and to the new foss.heptapod.net/pypy
MOREPYPY.BLOGSPOT.COM

PyCon 2020: March 2 Update on COVID-19

“As of March 2, PyCon 2020 in Pittsburgh, PA is scheduled to happen.”
PYCON.BLOGSPOT.COM

Discussions

Python Jobs

Senior Python/Django Software Engineer (London, UK)

Zego

Python Developer (Malta)

Gaming Innovation Group

Senior Python Software Engineer (London, UK)

Tessian

Sr Software Engineer Backend (Denver, CO, USA)

CyberGRX

Senior Software Developer (Vancouver, BC, Canada)

AbCellera

More Python Jobs >>>

Articles & Tutorials

Packaging and Distributing cppyy-Generated Python Bindings for C++ Projects With CMake and Setuptools

“I rewrote the cppyy CMake modules to be much more user friendly and to work using only Anaconda/PyPI packages, and to generate more feature-complete and customizable Python packages using CMake’s configure_file, while also supporting distribution of cppyy pythonization functions.”
CAMILLE SCOTT

Polynomial Regression From Scratch in Python

Polynomial regression is a core concept underlying machine learning. Learn how to build a polynomial regression model from scratch in Python by working you a real world example to predict salaries based on job position.
RICK WIERENGA

How To Build A Digital Virtual Assistant In Python

alt

The rise of AI has resulted in rapid growth of the digital assistant market, including Siri and Alexa. With Python, it’s easy to code your own digital assistant with voice activation and responses to basic inquiries. Check out ActiveState’s tutorial to learn how →
ACTIVESTATE sponsor

How to Implement a Python Stack

Learn how to implement a stack data structure in Python. You’ll see how to recognize when a stack is a good choice for data structures, how to decide which implementation is best for a program, and what extra considerations to make about stacks in a threading or multiprocessing environment.
REAL PYTHON video

Pass the Python Thread State Explicitly

Eric Snow has been working on solving multi-core Python via subinterpreters since 2015. In this article, core developer Victor Stinner discusses how state is passed between interpreters and summarizes his proposal for explicitly passing state to internal C function calls.
VICTOR STINNER

nbdev: Use Jupyter Notebooks for Everything

A Python programming environment called nbdev, which allows you to create complete python packages, including tests and a rich documentation system, all in Jupyter Notebooks.
JEREMY HOWARD

Dealing With Legacy Code

Learn about some of the common problems you encounter when dealing with legacy codebases and how to overcome them in an efficient way that balances delivery with code quality.
ISHA TRIPATHI

Totally Ordered Enums in Python With ordered_enum

Python’s enum.Enum does not provide ordering by default. See how ordering can be added to enums and why these orderings are useful in the first place.
WILLIAM WOODRUFF

Conditional Coverage

Sometimes your code has to take different paths based on the external environment. Make sure that your coverage follows it smoothly.
NIKITA SOBOLEV • Shared by sobolevn

Deploying Machine Learning Models: gRPC and TensorFLow Serving

Learn how to deploy TensorFlow models and consume predictions via gRPC.
RUBIKSCODE.NET

Blackfire Profiler Public Beta Open—Get Started in Minutes

Blackfire Profiler now supports Python, through a Public Beta. Profile Python code with Blackfire’s intuitive developer experience and appealing user interface. Spot bottlenecks in your code, and compare code iterations profiles.
BLACKFIRE sponsor

Projects & Code

Events

PyTexas 2020

May 16 to 17, 2020 in Austin, TX
PYTEXAS.ORG


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

alt

[ 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 ]



from Planet Python
via read more

No comments:

Post a Comment

TestDriven.io: Working with Static and Media Files in Django

This article looks at how to work with static and media files in a Django project, locally and in production. from Planet Python via read...