Library to register opmentis miners and check data and start new chat
Project description
Opmentis
Opmentis is a Python package designed to manage user registrations within a decentralized application, allowing users to register as miners or validators. This package simplifies the process of user registration by providing a single function that can handle different user roles based on the presence of a stake.
Features
- User Registration: Simplified user registration that supports different roles (miner or validator).
- Scalable and Secure: scalable and secure data storage.
Installation
Install Opmentis using pip:
pip install opmentis
Usage
Registering as Miner
To register a new user as a miner:
from opmentis import get_active_lab, register_user
# Fetch active lab information
active_lab = get_active_lab()
print("Active Lab Information:", active_lab)
# Register a user as a miner
wallet_address = "your_wallet_address"
labid = "your_lab_id"
role_type = "miner"
register_response = register_user(wallet_address, labid, role_type)
print("Registration Response:", register_response)
Check your data
To check miners data:
from opmentis import userdata
# Example: check miners data
miner_wallet_address = "miner_wallet_address"
userdata(wallet_address=miner_wallet_address)
Start new Chat
To end the current chat and update your points for the session, use the following code:
from opmentis import endchat
# Example
endchat()
Contributing
Contributions to Opmentis will be welcomed soon.
License
For more information and updates, contact the project maintainers @admin@opmentis.xyz
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
File details
Details for the file opmentis-0.1.8.tar.gz
.
File metadata
- Download URL: opmentis-0.1.8.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4211599b586a923742f7c4021e63f70004f5a3eccb3a0b3bec55d3e00ecddd4e |
|
MD5 | fb6f7cae6bf59b19e46c1d66623300e3 |
|
BLAKE2b-256 | addb7f7701dc2e49e18153991594401404e10e633e8e4f07331a7543eb4e3625 |
File details
Details for the file opmentis-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: opmentis-0.1.8-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 185bf26b7930273753f880809b0e7b96fbf307b973458b79daaa4cd096e46674 |
|
MD5 | 0116b2dde91ea98289c13b6ba9578f8e |
|
BLAKE2b-256 | f8ac832bf967cb085dadf545944994e703c85556923c2c31520a548bdfce53b0 |