see more at: https://github.com/menduo/golang
golang
Run Go code in Python.
⚠️: WIP
install
pip install golang
or
pip install git+ssh://git@github.com/menduo/golang.git
example
run code
import golang
code = """
package main
import "fmt"
func main(){
fmt.Println("Hello World from github.com/menduo/golang")
}
"""
golang.run_code(code)
run file
import golang
filepath = "~/ws/contrib/golang/golang/testdata/gocode/code1/main.go"
golang.run_file(filepath)
Metadata
Release files for golang 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| golang-0.0.3.tar.gz | 2.7 kB | Without provenance | Details for golang-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| golang-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for golang-0.0.3-py3-none-any.whl |
Total release size: 4.8 kB
Release files / golang-0.0.3.tar.gz
| Download URL | golang-0.0.3.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40e72ee0ac6b25a5e91b6f38daa05a5d2f5741ed2b9098fad8acb2ea0730cdab
|
|
BLAKE2b-256 checksum How to use checksums |
80ec9f67006802c4bfb0c9114259f69404e3520ca7b1877a313bf7b4653dbb8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.5
|
Release files / golang-0.0.3-py3-none-any.whl
| Download URL | golang-0.0.3-py3-none-any.whl |
|---|---|
| Size | 2.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e167f2627144a699263dbeef7e957f39d0c97c2d1ed76fc52e57bbf4b70cce3
|
|
BLAKE2b-256 checksum How to use checksums |
50c52d927b3d3e8de62389160f3922b6e00a08a7886221e793c5ffe5e1459d04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.5
|
Security for golang 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.