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.4.1.tar.gz (6.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.4.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: opmentis-0.2.4.1.tar.gz
  • Upload date:
  • Size: 6.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.4.1.tar.gz
Algorithm Hash digest
SHA256 e437a59f3f263cea43d388ef9f36f3c74d4652e334bbb532413efc2734e7cd9d
MD5 952bdbf36f3fd530ac7ab39db94a9e16
BLAKE2b-256 80ecc6ede4956050696f96b9e80cdeff63d8ba0fa2c8af2c55718c81f1c41fde

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opmentis-0.2.4.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 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.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8fbe377e11afb0ce36f5071c34f29703f37f55bf155d03672e6e85f130211cd3
MD5 1ab536809c84a309205dfdf374cdbfea
BLAKE2b-256 4ae07e631850649d2ee5233672ac9d168ec4a1996739655b96cefd4e362547e2

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