Lablink Client Service that will be installed in the lablink-client-base-image
Project description
lablink-client-service
Description
This folder contains the Python Package installed in the VM instance. The service is designed to run on a Ubuntu system with NVIDIA GPU support, specifically for use with Chrome Remote Desktop. This is the client side (VM instance) of the LabLink infrastructure. The subscribe.py will run as a startup script in the VM.
Depdenencies
While the VMs will just install these dependencies globally, developers should use a venv. For developers:
- Open terminal in project root directory
- Create a virtual environment
python3 -m venv venv
- Activate the virtual environment
source venv/bin/activate
- Install the dependencies
pip install -e ".[dev]"
- Deactivate the virtual environment when done
deactivate
- To remove the virtual environment, delete the
venvdirectory
Usage
Run the subscribe.py script to start the service. This script will subscribe to the LabLink server and listen for incoming messages.
python -m lablink_client_service.subscribe
This script will run with the default configuration. To change the configuration, you can modify the
config.yamlfile in thelablink_client_servicedirectory. The script will automatically load the configuration from this file.
Configuration
The configuration can be overridden by passing a different config file path as an argument to the script. For example:
python -m lablink_client_service.subscribe db.dbname=<db-name> db.host=<db-host> db.port=<db-port> db.user=<db-user> db.password=<db-password> db.table_name=<db-table-name>
db.dbname: The name of the PostgreSQL database to connect to.db.host: The host of the database.db.port: The port of the database.db.user: The user to connect to the database.db.password: The password to connect to the database.db.table_name: The name of the table to use in the database.
You can also fix the configuration by modifying the config.yaml file in the lablink_client_service directory. The script will automatically load the configuration from this file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lablink_client_service-0.0.1.tar.gz.
File metadata
- Download URL: lablink_client_service-0.0.1.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21fc03741981c064c6c5f77c61069aff988757ee2243c4d673dcca13c245c34b
|
|
| MD5 |
ac43d810be84c8baaf78323c313485d5
|
|
| BLAKE2b-256 |
06b38f88b736c87ee5e9e0612ac5322d97320e039d92735b9535155c2b07f5c0
|
Provenance
The following attestation bundles were made for lablink_client_service-0.0.1.tar.gz:
Publisher:
publish-pip.yml on talmolab/lablink
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lablink_client_service-0.0.1.tar.gz -
Subject digest:
21fc03741981c064c6c5f77c61069aff988757ee2243c4d673dcca13c245c34b - Sigstore transparency entry: 201948829
- Sigstore integration time:
-
Permalink:
talmolab/lablink@2b4e3f81814dbe09cc2b70c1eeabf91c16398333 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/talmolab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pip.yml@2b4e3f81814dbe09cc2b70c1eeabf91c16398333 -
Trigger Event:
release
-
Statement type:
File details
Details for the file lablink_client_service-0.0.1-py3-none-any.whl.
File metadata
- Download URL: lablink_client_service-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d108d1a9a068a91c1f878905dfbde612a53cf7935fca1f2b7457152c6ae4d9f9
|
|
| MD5 |
bd7dfd0ab2055c918c53d11c88e4c717
|
|
| BLAKE2b-256 |
991df878c1b4769ce0f410b72e2122cb9054c982adccde25780de528cd12c476
|
Provenance
The following attestation bundles were made for lablink_client_service-0.0.1-py3-none-any.whl:
Publisher:
publish-pip.yml on talmolab/lablink
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lablink_client_service-0.0.1-py3-none-any.whl -
Subject digest:
d108d1a9a068a91c1f878905dfbde612a53cf7935fca1f2b7457152c6ae4d9f9 - Sigstore transparency entry: 201948832
- Sigstore integration time:
-
Permalink:
talmolab/lablink@2b4e3f81814dbe09cc2b70c1eeabf91c16398333 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/talmolab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pip.yml@2b4e3f81814dbe09cc2b70c1eeabf91c16398333 -
Trigger Event:
release
-
Statement type: