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.
-
Make sure that Docker is running on your machine and your current user have access to it.
-
Build and start docker compose project.
docker compose up -d --build
-
Prepare some funds for Golem's free test network. Note that this step is needed mostly once per
yagna-datavolume.docker compose exec golem-node yagna payment fund
-
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
-
Install golem-workers via:
pip install golem-workers
This step should install
yagnabinary for the next steps. -
Start
golem-nodeinstance. This will occupy your terminal session, so it's best to do it in separate session.yagna service run
-
Prepare some funds for Golem's free test network. Note that this step is needed mostly once per
golem-nodeinstallation.yagna payment fund
-
Create new
golem-nodeapplication tokenyagna app-key create <your-token-name>
and put generated app-key into the
.envfile in the current directoryYAGNA_APPKEY=<your-application-token>
-
If you want to use Golem Reputation put new entry in
.envfile in the current directoryGLOBAL_CONTEXTS=["golem_reputation.ReputationService"]
-
Start golem-workers web server instance
uvicorn golem_workers.entrypoints.web.main:app -
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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| golem_workers-0.5.0.tar.gz | 56.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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.