Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opmentis-0.1.7.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

opmentis-0.1.7-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file opmentis-0.1.7.tar.gz.

File metadata

  • Download URL: opmentis-0.1.7.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

Hashes for opmentis-0.1.7.tar.gz
Algorithm Hash digest
SHA256 f19a6cff2137a130fc156cf8f78f939044318fa659b79689bf35b45358a8e662
MD5 be7c0081c5e53b51d4963b109fcfe7f5
BLAKE2b-256 1298131aaeccad079d15a7eec15ba2711f8523012eacaeaf9cc4a95f5e0dc2a9

See more details on using hashes here.

File details

Details for the file opmentis-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: opmentis-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for opmentis-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 00bc3d0e2b6ef45bab6081ecb222883bbb467a58e5b65302b49ca92e47a5dc80
MD5 d272b871a9dfb3861bc2b80ec8263ce6
BLAKE2b-256 0b34662fe1a253539216536fd7c15c3b501c4525b80138b7eca176f8f20b100b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page