Is it possible to call Python libraries within Golang application.

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • PyO3

    Rust bindings for the Python interpreter

  • I couldn't find anything like it through searching I was wondering if there was a similar library like Rust has called https://pyo3.rs/ in Go?

  • fibratus

    A modern tool for Windows kernel exploration and tracing with a focus on security

  • I've implemented a CPython wrapper to interact with the embedded Python interpreter. https://github.com/rabbitstack/fibratus/tree/master/pkg/filament/cpython

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • cpy3

    Go bindings to the CPython-3 API

  • If you are trying to call python code from Go then you can use a CPython binding to embed an interpreter: https://github.com/go-python/cpy3

  • gpython

    gpython is a python interpreter written in go "batteries not included"

  • In my case, it was good enough to use https://github.com/go-python/gpython . One downside is that you can't use python libraries though.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts