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

# 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)

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.1.9.tar.gz (5.8 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.1.9-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for opmentis-0.1.9.tar.gz
Algorithm Hash digest
SHA256 8ae5556d2474a87cdc5b135d5fbd1be7bf245987adce0a79c1bb6a647b54ff02
MD5 33215d08a58ce70500a9f02f4b587618
BLAKE2b-256 b9952ae57570930e8a6e692382f5fa96d1c6eca93acd59d5a286373833cdbb15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opmentis-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 6.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.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 200e30bdfe3f100c0a0ac8e65df5fdf2ed5863b33c42025c76bd825922e4c638
MD5 eb8e80580596140f072504388db287e7
BLAKE2b-256 d196477d3017b54a231943589ae81fec5316e0228f506492ea388d0669e55e30

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