Cantitate/Preț
Produs

Hillard, D: Publishing Python Packages

Autor Dane Hillard
en Limba Engleză Paperback – 12 ian 2023

Ne-a atras atenția modul în care Publishing Python Packages transformă procesul adesea arid al distribuției de cod într-o metodologie riguroasă, bazată pe design patterns și automatizare. Găsim în această carte un flux de lucru complet pentru arhitectura pachetelor, începând cu bazele structurii unui proiect și avansând rapid către integrarea continuă (CI) și securitatea dependențelor. Dane Hillard nu se limitează la simpla grupare a modulelor, ci pune accent pe crearea de software mențenabil, utilizând Manning Publications drept platformă pentru a livra bune practici în testare și DevOps.

Apreciem structura progresivă a volumului, care ghidează cititorul prin cele patru etape critice: de la 'Foundations' la 'The Long Haul'. Autorul detaliază implementarea testelor automate cu tox și rafinarea codului prin instrumente de analiză statică precum black și mypy. Ca și Tomas Beuzen în Python Packages, Dane Hillard distilează experiență reală în principii acționabile, însă pune un accent mai puternic pe scalabilitate și pe utilizarea GitHub Actions pentru pipeline-uri de livrare continuă. Un element distinctiv este includerea instrucțiunilor pentru extensii C și scripturi de consolă, aspecte tehnice esențiale pentru pachetele profesionale care trebuie să performeze în ecosistemul Python Package Index.

Spre deosebire de lucrări axate strict pe operațiuni, precum DevOps in Python de Moshe Zadka, acest volum este centrat pe produsul software în sine. Ne sunt prezentate soluții concrete pentru menținerea pachetelor 'evergreen' prin Dependabot și pyupgrade, asigurând astfel o viață lungă proiectelor open source sau interne. Este o resursă tehnică ce echilibrează perfect execuția practică cu standardele industriei.

Citește tot Restrânge

Preț: 30541 lei

Preț vechi: 38176 lei
-20%

Puncte Express: 458

Carte disponibilă

Livrare economică 23 mai-06 iunie
Livrare express 09-15 mai pentru 3012 lei


Specificații

ISBN-13: 9781617299919
ISBN-10: 161729991X
Pagini: 275
Dimensiuni: 185 x 232 x 13 mm
Greutate: 0.44 kg
Editura: Manning Publications

De ce să citești această carte

Recomandăm această carte programatorilor Python de nivel intermediar care doresc să treacă de la scrierea de scripturi izolate la dezvoltarea de biblioteci profesionale. Veți câștiga o metodologie clară pentru automatizarea testării, documentării și publicării pe PyPI. Este ghidul ideal pentru cei care vor să contribuie la ecosistemul open source sau să optimizeze distribuția de cod în cadrul echipelor lor, asigurând o mentenanță minimă pe termen lung.


Cuprins

table of contents
PART 1: FOUNDATIONS
READ IN LIVEBOOK1THE WHAT AND WHY OF PYTHON PACKAGES
READ IN LIVEBOOK2PREPARING FOR PACKAGE DEVELOPMENT
READ IN LIVEBOOK3THE ANATOMY OF A MINIMAL PYTHON PACKAGE
PART 2: CREATING A VIABLE PACKAGE
READ IN LIVEBOOK4HANDLING PACKAGE DEPENDENCIES, ENTRY POINTS, AND EXTENSIONS
READ IN LIVEBOOK5BUILDING AND MAINTAINING A TEST SUITE
READ IN LIVEBOOK6AUTOMATING CODE QUALITY TOOLING
PART 3: GOING PUBLIC
7 AUTOMATING WORK THROUGH CONTINUOUS INTEGRATION
8 AUTHORING AND MAINTAINING DOCUMENTATION
9 MAKING A PACKAGE EVERGREEN
PART 4: THE LONG HAUL
10 CREATING A REPEATABLE PROCESS
11 BUILDING AN OPEN SOURCE COMMUNITY
APPENDIXES
READ IN LIVEBOOKAPPENDIX A: INSTALLING ASDF AND PYTHON-LAUNCHER
READ IN LIVEBOOKAPPENDIX B: INSTALLING PIPX, BUILD, AND TOX

Descriere

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. Foreword by David Beazley. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. 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. Table of Contents PART 1 FOUNDATIONS 1 The what and why of Python packages 2 Preparing for package development 3 The anatomy of a minimal Python package PART 2 CREATING A VIABLE PACKAGE 4 Handling package dependencies, entry points, and extensions 5 Building and maintaining a test suite 6 Automating code quality tooling PART 3 GOING PUBLIC 7 Automating work through continuous integration 8 Authoring and maintaining documentation 9 Making a package evergreen 10 Scaling and solidifying your practices 11 Building a community