What Is a Python Package?

A Python package is simply a directory, usually containing Python modules (source files with the .py extension). It frequently will include a special marker file, __init__.py. Packages can easily be created and used locally, and published packages can be installed using pip. Learning to install public packages and create packages locally is not difficult, though … Read more

Is Python Slow? Separating the Myths from the Facts

Winning the foot race.

Yes, it’s true that Python is slower at runtime than some other languages, but it’s fast enough for the tasks for which it is commonly used. Yes, it’s true that Python is slower at runtime than some other languages, but it’s fast enough for the tasks for which it is commonly used. For the most common tasks, the popular libraries use well-optimized C code — but you don’t need to know C to use them. We separate the facts from the myths.

Python Package Example: Setuptools

Have you ever wondered about how to create a package like the ones you can install into your python environment using tools like pip or pipenv? This article starts with the complete source code plus a how-to guide to publishing a minimal Python package to PyPi. The source is also available on GitHub. Once we … Read more

Pip vs Pipenv: Which is better and which to learn first?

Pipenv and pip are both excellent tools for installing and managing Python dependencies that are widely adopted and work extremely well.

Learning pip well first is the choice we recommend. Pip is established and widely known, so many teams prefer pip and venv to manage dependencies and virtual environments. Pipenv makes a few things simpler, but for every thing it simplifies, it makes other things more complex than they need to be.

How to Learn To Program

For many of us, programming is not only a great career, it’s also a set of fun puzzles to solve and a fun creative outlet. But how do you get started? Is there a way to do it without spending a fortune on a bootcamp, or — if you do decide on that option — … Read more