Skip to main content
HomePythonDeveloping Python Packages

Developing Python Packages

Learn to create your own Python packages to make your code easier to use and share with others.

Comece O Curso Gratuitamente
4 Horas14 Videos47 Exercicios
13.365 AprendizesTrophyDeclaração de Realização

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.
GroupTreinar 2 ou mais pessoas?Experimente o DataCamp For Business

Loved by learners at thousands of companies


Descrição do Curso

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.
Para Empresas

GroupTreinar 2 ou mais pessoas?

Obtenha acesso à biblioteca completa do DataCamp, com relatórios, atribuições, projetos e muito mais centralizados
Experimente O DataCamp for BusinessPara uma solução sob medida , agende uma demonstração.

Nas seguintes faixas

Certificação disponível

Cientista de dados em Python

Ir para a trilha

Desenvolvedor Python

Ir para a trilha
  1. 1

    From Loose Code to Local Package

    Grátis

    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.

    Reproduzir Capítulo Agora
    Starting a package
    50 xp
    Modules, packages and subpackages
    100 xp
    From script to package
    100 xp
    Putting your package to work
    100 xp
    Documentation
    50 xp
    Writing function documentation with pyment
    100 xp
    Writing function documentation with pyment II
    100 xp
    Package and module documentation
    100 xp
    Structuring imports
    50 xp
    Sibling imports
    100 xp
    Importing from parents
    100 xp
    Exposing functions to users
    100 xp
  2. 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.

    Reproduzir Capítulo Agora
  3. 3

    Increasing Your Package Quality

    Bring your package up to a professional standard. Discover how to use pytest to guard against errors, tox to test if your package functions with multiple versions of Python, and flake8 to maintain great code style.

    Reproduzir Capítulo Agora
  4. 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.

    Reproduzir Capítulo Agora
Para Empresas

GroupTreinar 2 ou mais pessoas?

Obtenha acesso à biblioteca completa do DataCamp, com relatórios, atribuições, projetos e muito mais centralizados

Nas seguintes faixas

Certificação disponível

Cientista de dados em Python

Ir para a trilha

Desenvolvedor Python

Ir para a trilha

Colaboradores

Collaborator's avatar
Amy Peterson
Collaborator's avatar
Maggie Matsui

Pre Requisitos

Introduction to ShellWriting Functions in Python
James Fulton HeadshotJames Fulton

Climate Informatics Researcher

Veja Mais

O que os outros alunos têm a dizer?

Cadastre-se mais 13 milhões de alunos e comece Developing Python Packages Hoje!

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.