Skip to main content

Library to register opmentis miners and check data and start new chat and many more

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, userpoint, request_reward_payment, check_user_balance

# Example: check miners data
miner_wallet_address = "miner_wallet_address"
labid = "your_lab_id"
userdata(labid=labid, wallet_address=miner_wallet_address)

labid = "your_lab_id"
userpoint(labid, miner_wallet_address)


request_amount = 250
print(request_reward_payment(labid, miner_wallet_address,request_amount))

print(check_user_balance(labid, 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


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.2.2.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opmentis-0.2.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: opmentis-0.2.2.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for opmentis-0.2.2.tar.gz
Algorithm Hash digest
SHA256 9addb844711b1484121f41f9980c01090e34417f874da5d8188e411f81e8c408
MD5 2e696b381ec76483c4e0994c608118cc
BLAKE2b-256 f4e62c9049b5608cd1cd93f08bf4c952dd2686705436ab0f59fd737a9fd113f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opmentis-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for opmentis-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dbb9dd4ca191c6dd4c888ff9780e696ffa4ecbfdf9d964f6294349432f3ddd5e
MD5 18fc38761dca77039bf58822cd438b21
BLAKE2b-256 cce699771b7d18f86a192a19c02c9188acce9dc940cfcf12e40b2e5723b09b4e

See more details on using hashes here.

Supported by

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