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.3.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.3-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: opmentis-0.2.3.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.3.tar.gz
Algorithm Hash digest
SHA256 8f13347c4fcb88f27d1e3dfe5340370388b63ca46c9884252372772f16c42ea0
MD5 596dd3243605e7b07a6c50426d1b5ab1
BLAKE2b-256 b96f9659606251aa6cc7eb99f88f8e3d08a298da88b15016efa2ab8a4edd6928

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opmentis-0.2.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b67a34a69c27a0ff40618737992218e34554a1377856454d31f557b2616d93e5
MD5 e7b435e6762ec6d027e96e309b3e286a
BLAKE2b-256 0d832c36396d04922ed4bc596e86f5e13ba4aecbcda716022b1257cd490182ef

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