Create masterful, maintainable Python packages! This book includes pro tips for design, automation, testing, deployment, and even release as an open source project!
In Publishing Python Packages you will learn how to:
Build extensions and console script commands
Use tox to automate packaging, installing, and testing
Build a continuous integration pipeline using GitHub Actions
Improve code quality and reduce manual review using black, mypy, and flake8
Create published documentation for your packages
Keep packages up to date with pyupgrade and Dependabot
Foster an open source community using GitHub features
Publishing Python Packages teaches you how to easily share your Python code with your team and the outside world. Learn a repeatable and highly automated process for package maintenance that’s based on the best practices, tools, and standards of Python packaging. This book walks you through creating a complete package, including a C extension, and guides you all the way to publishing on the Python Package Index. Whether you’re entirely new to Python packaging or looking for optimal ways to maintain and scale your packages, this fast-paced and engaging guide is for you.
about the technology
Successful Python packages install easily, run flawlessly, and stay reliably up to date. Publishing perfect Python packages requires a rigorous process that supports systematic testing and review, along with excellent documentation. Fortunately, the Python ecosystem includes tools and techniques to automate package creation and publishing.
about the book
Publishing Python Packages presents a practical process for sharing Python code in an automated and scalable way. Get hands-on experience with the latest packaging tools, and learn the ins and outs of package testing and continuous integration. You’ll even get pro tips for setting up a maintainable open source project, including licensing, documentation, and nurturing a community of contributors.
what's inside
Build extensions and console script commands
Improve code quality with automated review and testing
Create excellent documentation
Keep packages up to date with pyupgrade and Dependabot
about the reader
For intermediate Python programmers.
about the author
Dane Hillard has spent the majority of his development career using Python to build web applications.
A comprehensive guide to the Python packaging landscape. Dane takes a complicated topic and makes you think, ‘Yeah, I got this.’ It’s impressively done. Recommended.
A comprehensive guide for Python programmers ready to share their code with the world.
5
Out of 5.0
Overall Rating
100%
of customers that buy this product give it a 4 or 5-Star rating.
Verified Buyer
“Great buy”
Level Up Your Python Packaging Skillset
April 24, 2022 by Ian (NY, United States)
“This book does a great job of explaining not only the how, but the why re Python packaging.”
Company Choice
I’ve purchased Manning books in the past and they’re always well written with timely advice and expertise.
Product Choice
I needed to quickly get up to speed on Python packaging for new projects at work.
Verified Buyer
“Great buy”
February 19, 2022 by A Reviewer (IE)
“Interesting read.”
Verified Buyer
“Great value”
Learn how to create and publish Python packages
January 15, 2022 by A Reviewer (US)
“I've been loving the book and learning a ton! I highly recommend it for Pythonistas.”
related titles
related titles
choose your plan
pro
monthly
annual
$24.99
$249.99
only $20.83 per month
access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
choose another free product every time you renew
choose twelve free products per year
exclusive 50% discount on all purchases
Publishing Python Packages ebook for free
team
monthly
annual
$49.99
$399.99
only $33.33 per month
five seats for your team
access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!