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 with AWS DynamoDB. 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).
- Easy Configuration: Configuration managed through environment variables for AWS settings.
- Scalable and Secure: Uses AWS DynamoDB for 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 check miners data:
from opmentis import endchat
# Example
endchat()
Contributing
Contributions to Opmentis are welcome. Please fork the repository, make your changes, and submit a pull request.
License
For more information and updates, visit GitHub repository URL or contact the project maintainers.
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.5.tar.gz
.
File metadata
- Download URL: opmentis-0.1.5.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbecba07953ac86ccdf3bb40172ea6cc6a5d8fccdd14f387e7475d0218a887db |
|
MD5 | a1db4f64467d7060b8454ac5e1a90855 |
|
BLAKE2b-256 | 1b636219a004f885e372cdf1c5fa65e09413cf02a42699667564f5ee10fc380a |
File details
Details for the file opmentis-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: opmentis-0.1.5-py3-none-any.whl
- Upload date:
- Size: 5.5 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 | c53419b5c5baf36acd1b884e063e4d5a498ee718d41ff8c51b47d45d77975272 |
|
MD5 | 6f7a24147ade328cdb6e1957b5216be0 |
|
BLAKE2b-256 | f99a3710c9dec4e6d60d64f7a717f2c76194f191fac83d57b256e1b9c1be93d9 |