Hoppa till huvudinnehållet
HemPython

course

Developing Python Packages

MedelnivåNivå
Uppdaterad 2026-02
Learn to create your own Python packages to make your code easier to use and share with others.
Starta Kursen Gratis
PythonProgramming
4 tim
14 videos
47 exercises
3,900 XP
23,108
Intyg om genomförd kurs

Skapa ditt gratis konto

Fortsätt Med GoogleVisa fler alternativ

eller


Genom att fortsätta godkänner du våra Användarvillkor, vår Integritetspolicy och att dina uppgifter lagras i USA.

Älskad av elever på tusentals företag

Group

Tränar du ett team?

Prova för företag

Kursbeskrivning

Do you find yourself copying and pasting the same code between files, wishing it was easier to reuse and share your awesome snippets? Wrapping your code into Python packages can help! In this course, you’ll learn about package structure and the extra files needed to turn loose code into convenient packages. You'll also learn about import structure, documentation, and how to maintain code style using flake8. You’ll then speed up your package development by building templates, using cookiecutter to create package skeletons. Finally, you'll learn how to use setuptools and twine to build and publish your packages to PyPI—the world stage for Python packages.

Förkunskaper

Introduction to ShellWriting Functions in Python
1

From Loose Code to Local Package

Get your package started by converting scripts you have already written. You'll create a simple package which you can use on your own computer.
Starta Kapitel
2

Install Your Package from Anywhere

Make your package installable for yourself and others. In this chapter, you'll learn to deal with dependencies, write READMEs, and include licenses. You'll also complete all the steps to publish your package on PyPI—the main home of Python packages.
Starta Kapitel
3

Increasing Your Package Quality

4

Rapid Package Development

Create your packages more quickly. In this final chapter, you’ll learn how to use cookiecutter to generate all the supporting files your package needs, Makefiles to simplify releasing new versions, and be introduced to the last few files your package needs to attract users and contributors.
Starta Kapitel
Developing Python Packages
Kurs
slutförd

Få ett intyg om genomförd kurs

Lägg till denna merit i din LinkedIn-profil, ditt CV eller din meritförteckning
Dela det på sociala medier och i din prestationsbedömning
Anmäl Dig Nu

Gå med över 19 miljoner elever och börja Developing Python Packages i dag!

Skapa ditt gratis konto

Fortsätt Med GoogleVisa fler alternativ

eller


Genom att fortsätta godkänner du våra Användarvillkor, vår Integritetspolicy och att dina uppgifter lagras i USA.

Utveckla dina datakunskaper med DataCamp för mobilen

Gör framsteg när du är på språng med våra mobila kurser och dagliga 5-minuters kodningsutmaningar.