GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Convert a Go module into a Python file · Issue #246 · go-python/gpython

Convert a Go module into a Python file #246

New issue
Copy link
New issue
Copy link
Open
Open
Convert a Go module into a Python file#246
Copy link

Description

@tenny1225
tenny1225
opened on Jul 22, 2025
Issue body actions

Hello! Is there a one-click way to convert a Go module like mylib.module.go into a Python file so our Python teammates can continue development more easily?

Activity

  1. ncw commented on Jul 25, 2025

    @ncw
    ncw
    on Jul 25, 2025
    Collaborator
    More actions

    If you want to integrate it into gpython then you need to add a bit of boilerplate to turn it into a gpython module.

    If you want to integrate it with cpython then you'll need to make a shared library with CGO. I did this for another project - you might want to this check out to see how it is done: https://github.com/rclone/rclone/tree/master/librclone which has python bindings for Go via CGO.

  2. sbinet commented on Jul 25, 2025

    @sbinet
    sbinet
    on Jul 25, 2025
    Member
    More actions

    another option (for the CPython use case), is to use go-python/gopy.

    Reacted by Nick Craig-Wood
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.