# Python and Go : Part III - Packaging Python Code

DevFeed: [Python and Go : Part III - Packaging Python Code](<https://devfeed.tech/articles/python-and-go-part-iii-packaging-python-code-22169.md>)

Original publisher: [Read original article](<https://www.ardanlabs.com/blog/2020/08/packaging-python-code.html>)

Published: 2020-08-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [William Kennedy](<https://devfeed.tech/sources/william-kennedy.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>), [Code](<https://devfeed.tech/topics/code.md>), [Development](<https://devfeed.tech/topics/development.md>), [Library](<https://devfeed.tech/topics/library.md>)

Tags: [ardan-labs](<https://devfeed.tech/tags/ardan-labs.md>), [blog](<https://devfeed.tech/tags/blog.md>), [code](<https://devfeed.tech/tags/code.md>), [development](<https://devfeed.tech/tags/development.md>), [go](<https://devfeed.tech/tags/go.md>), [go-programming](<https://devfeed.tech/tags/go-programming.md>), [golang](<https://devfeed.tech/tags/golang.md>), [library](<https://devfeed.tech/tags/library.md>), [packaging](<https://devfeed.tech/tags/packaging.md>), [programming](<https://devfeed.tech/tags/programming.md>), [python](<https://devfeed.tech/tags/python.md>)

## AI overview

This tutorial explains how to package Python code that wraps a Go shared library. It covers writing a Python module with a Pythonic API, defining the package, and the simplified workflow pip uses to install Python packages.

## Source excerpt

Series Index Python and Go: Part I - gRPC Python and Go: Part II - Extending Python With Go Python and Go: Part III - Packaging Python Code Python and Go: Part IV - Using Python in Memory Introduction In the previous post we compiled Go code to a shared library and used it from the Python interactive shell. In this post we're going to finish the development process by writing a Python module that hides the low level details of working with a shared library and then package this code as a Python package.