Skip to main content

Summary

Golocity is a young project and while there is testing, there still may be bugs. Be sure and test thoroughly prior to use in a production environment.

Golocity is an easy to use CLI execution manager for the Golem Network. It aims to convert and deploy your dockerized project on the Golem Network in as little time as possible. It is perfect for developers who want to deploy their preexisting projects on the Network or those who need a starting point to harness all of the Network’s features.

Installation

Golocity is available on PyPI. This will install the latest stable version.

To install Golocity, simply use pip:

pip install --user golocity

Getting Started

Building the images

Before your project can be deployed on the Network, we must first build the docker image as well as the Golem virtual machine image. Before issuing the command, make sure you have Docker installed and running on your computer.

To do so, use the build command:

golocity build /path/to/your/project

This will build the requisite images as well as create a .golocity directory in your projects directory. This directory holds configuration files needed by Golocity as well as logs.

The build command also pushes the Golem virtual machine image to the Network’s public repository. To preform a dry-run, append the --info flag to the command.

Under the hood, Golocity parses your Dockerfile for ENTRYPOINT and CMD commands. These commands currently are not supported in the Golem virtual machine format, so Golocity removes them and manually calls them from within the deploy command. Don’t worry, Golocity will not alter your project files, it only operates on temporary copies.

Deploying to the Network

Once you have successfully built and pushed the images, you are ready to deploy your project on the Network! First, make sure you have the yagna daemon running on your machine, for more information, refer to the Golem Handbook.

Now, deploying is one line away!

golocity deploy [budget]

Replace budget with the limit of what to spend while running the project. From here Golocity will handle the rest. It will find the best provider and handle the output.

Contributing

Poetry

We use poetry to manage dependencies, to get started follow these steps:

git clone https://github.com/davidstyers/golocity
cd golocity
poetry install
poetry run pytest

Pre-Commit

We have a configuration for pre-commit to add the hook run the following command:

pre-commit install

Metadata

Release files for golocity 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for golocity 0.0.1
File Size Uploaded Provenance Actions
golocity-0.0.1.tar.gz 11.7 kB Without provenance Details for golocity-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for golocity 0.0.1
File Interpreter ABI Platform Actions
golocity-0.0.1-py3-none-any.whl Python 3 none any Details for golocity-0.0.1-py3-none-any.whl

Total release size: 24.1 kB

Release files / golocity-0.0.1.tar.gz

Download URL golocity-0.0.1.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ac8dca65b77a84d2f2f995ebdf0928207653ac931f8b33ff47fcabf06b48b839
BLAKE2b-256 checksum
How to use checksums
d18e23086b41fb6fb47189195ef9de059f5f84bebad4f3c746ef38b803b867c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.9.6 Darwin/20.6.0

Release files / golocity-0.0.1-py3-none-any.whl

Download URL golocity-0.0.1-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9993aa550e99af649d6abba157420d2c647c04d26e6926f92bc556138b4b679
BLAKE2b-256 checksum
How to use checksums
ae1f1c1ad90a53d3c82fe84a1a52a751f279b9d731c141b57db7de3fa3dc2f43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.9.6 Darwin/20.6.0

Security for golocity 0.0.1

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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page