Name | opmentis JSON |
Version |
0.2.1
JSON |
| download |
home_page | https://github.com/OpMentis-Ai |
Summary | Library to register opmentis miners and check data and start new chat and many more |
upload_time | 2024-12-08 02:52:31 |
maintainer | None |
docs_url | None |
author | opmentis |
requires_python | >=3.6 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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:
```bash
pip install opmentis
```
# Usage
### Registering as Miner
To register a new user as a miner:
```python
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:
```python
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:
```python
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
Raw data
{
"_id": null,
"home_page": "https://github.com/OpMentis-Ai",
"name": "opmentis",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "opmentis",
"author_email": "admin@opmentis.xyz",
"download_url": "https://files.pythonhosted.org/packages/82/a9/18840d235905dc94e48055c47de07cd6f47f371ac3f470502cb99f31c419/opmentis-0.2.1.tar.gz",
"platform": null,
"description": "# Opmentis\n\nOpmentis 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.\n\n## Features\n\n- **User Registration**: Simplified user registration that supports different roles (miner or validator).\n- **Scalable and Secure**: scalable and secure data storage.\n\n## Installation\n\nInstall Opmentis using pip:\n\n```bash\npip install opmentis\n```\n\n# Usage\n\n### Registering as Miner\nTo register a new user as a miner:\n\n\n\n```python\nfrom opmentis import get_active_lab, register_user\n\n# Fetch active lab information\nactive_lab = get_active_lab()\nprint(\"Active Lab Information:\", active_lab)\n\n\n# Register a user as a miner\nwallet_address = \"your_wallet_address\"\nlabid = \"your_lab_id\"\nrole_type = \"miner\"\nregister_response = register_user(wallet_address, labid, role_type)\nprint(\"Registration Response:\", register_response)\n\n```\n\n\n### Check your data\nTo check miners data:\n\n```python\nfrom opmentis import userdata, userpoint, request_reward_payment, check_user_balance\n\n# Example: check miners data\nminer_wallet_address = \"miner_wallet_address\"\nlabid = \"your_lab_id\"\nuserdata(labid=labid, wallet_address=miner_wallet_address)\n\nlabid = \"your_lab_id\"\nuserpoint(labid, miner_wallet_address)\n\n\nrequest_amount = 250\nprint(request_reward_payment(labid, miner_wallet_address,request_amount))\n\nprint(check_user_balance(labid, miner_wallet_address))\n\n```\n### Start new Chat\nTo end the current chat and update your points for the session, use the following code:\n\n```python\nfrom opmentis import endchat\n\n# Example\nendchat()\n\n```\n\n### Contributing\nContributions to Opmentis will be welcomed soon. \n\n### License\n\n\nFor more information and updates, contact the project maintainers @admin@opmentis.xyz \n\n",
"bugtrack_url": null,
"license": null,
"summary": "Library to register opmentis miners and check data and start new chat and many more",
"version": "0.2.1",
"project_urls": {
"Homepage": "https://github.com/OpMentis-Ai"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "36b8f601e3fbe408ea7edf3a8eabd05b4efbfdd773473da397384962953b12d3",
"md5": "50db88b49f961723c2d22686b18a9225",
"sha256": "ead8288539ffd3eeaabccd5cb07f3a89b7712a6f5d8de5a77560de281e8b4ca1"
},
"downloads": -1,
"filename": "opmentis-0.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "50db88b49f961723c2d22686b18a9225",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 7238,
"upload_time": "2024-12-08T02:52:30",
"upload_time_iso_8601": "2024-12-08T02:52:30.891071Z",
"url": "https://files.pythonhosted.org/packages/36/b8/f601e3fbe408ea7edf3a8eabd05b4efbfdd773473da397384962953b12d3/opmentis-0.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "82a918840d235905dc94e48055c47de07cd6f47f371ac3f470502cb99f31c419",
"md5": "ccf89f96edfb827fb4b3ead88127ca58",
"sha256": "9fc3d55c29e0eb4a33abe6ac7cff5eeac97d45d2a1bfea41519b2c9b234b42fd"
},
"downloads": -1,
"filename": "opmentis-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "ccf89f96edfb827fb4b3ead88127ca58",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 7158,
"upload_time": "2024-12-08T02:52:31",
"upload_time_iso_8601": "2024-12-08T02:52:31.705660Z",
"url": "https://files.pythonhosted.org/packages/82/a9/18840d235905dc94e48055c47de07cd6f47f371ac3f470502cb99f31c419/opmentis-0.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-08 02:52:31",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "opmentis"
}