Skip to main content

golem-workers

Getting started

The are multiple ways to start interacting with golem-workers. Below are two of the most common ways to start it.

Docker example

Docker example will take care for installation, proper processes setup (golem-workers web server and golem-node service) and their basic configuration. Note that because of decentralized fashion, golem-node needs a few moments to gather information from the Golem Network, during that time, amount of returned proposals can be impacted.

To run docker example, checkout the repository and go to examples/docker directory, or directly copy its contents to your preferred destination.

  1. Make sure that Docker is running on your machine and your current user have access to it.

  2. Build and start docker compose project.

    docker compose up -d --build
    
  3. Prepare some funds for Golem's free test network. Note that this step is needed mostly once per yagna-data volume.

    docker compose exec golem-node yagna payment fund
    
  4. Golem-workers can be interacted with web api at http://localhost:8000. It's OpenApi Specification is available at http://localhost:8000/docs or http://localhost:8000/redoc

Web server

  1. Install golem-workers via:

    pip install golem-workers
    

    This step should install yagna binary for the next steps.

  2. Start golem-node instance. This will occupy your terminal session, so it's best to do it in separate session.

    yagna service run
    
  3. Prepare some funds for Golem's free test network. Note that this step is needed mostly once per golem-node installation.

    yagna payment fund
    
  4. Create new golem-node application token

    yagna app-key create <your-token-name>
    

    and put generated app-key into the .env file in the current directory

    YAGNA_APPKEY=<your-application-token>
    
  5. If you want to use Golem Reputation put new entry in .env file in the current directory

    GLOBAL_CONTEXTS=["golem_reputation.ReputationService"]
    
  6. Start golem-workers web server instance

    uvicorn golem_workers.entrypoints.web.main:app
    
  7. Golem-workers can be interacted with web api at http://localhost:8000. It's OpenApi Specification is available at http://localhost:8000/docs or http://localhost:8000/redoc

Metadata

Release files for golem-workers 0.5.0

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

Source distribution (sdist)

Source distribution for golem-workers 0.5.0
File Size Uploaded Provenance
golem_workers-0.5.0.tar.gz 56.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for golem-workers 0.5.0
File Interpreter ABI Platform
golem_workers-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 130.2 kB

Release files / golem_workers-0.5.0.tar.gz

Download URL golem_workers-0.5.0.tar.gz
Size 56.4 kB
Tags Source
SHA-256 checksum
How to use checksums
64ac1ddd4835713a21eaa35fd7db5fcb2a779561002064c6d2634247c68e461f
BLAKE2b-256 checksum
How to use checksums
c5b762b580049e1239be1c00e881e53ec2fb35c9b5723d1f33ac04ebd4a3aa4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.10.12 Linux/6.12.10-76061203-generic

Release files / golem_workers-0.5.0-py3-none-any.whl

Download URL golem_workers-0.5.0-py3-none-any.whl
Size 73.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cbb62c59e60932ad9dac521f28126fd6a2a140530456cbe74980bca141fbd053
BLAKE2b-256 checksum
How to use checksums
eb727b5975106b2eb25507ec71f45ed0463f6fab5efb8bc1e8bf1d2bcb3548a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.10.12 Linux/6.12.10-76061203-generic

Security for golem-workers 0.5.0

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.

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