Go-pypi

Using PyPI with Go

View the Project on GitHub ccpgames/go-pypi

go-pypi

Build status Coverage Status License

Using PyPI with Go

install

$ go get github.com/ccpgames/go-pypi

use

Get the latest version of packages by default:

$ go-pypi requests
requests-2.7.0-py2.py3-none-any.whl downloaded (470641 bytes)
requests-2.7.0.tar.gz downloaded (451723 bytes)

Get a specific version (and/or multiple packages at once):

$ go-pypi requests=1.0.0 Flask
requests-1.0.0.tar.gz downloaded (335548 bytes)
Flask-0.10.1.tar.gz downloaded (544247 bytes)

Get a specific format:

$ go-pypi --extension=whl requests
requests-2.7.0-py2.py3-none-any.whl downloaded (470641 bytes)

Get from a different PyPI server:

$ go-pypi --url=https://pypi.yourcompany.com/pypi requests
requests-2.7.0-py2.py3-none-any.whl downloaded (470641 bytes)
requests-2.7.0.tar.gz downloaded (451723 bytes)