opmentis


Nameopmentis JSON
Version 0.2.4.1 PyPI version JSON
download
home_pagehttps://github.com/OpMentis-Ai
SummaryLibrary to register opmentis miners and check data and start new chat and many more
upload_time2025-01-05 19:59:16
maintainerNone
docs_urlNone
authoropmentis
requires_python>=3.8.1
licenseMIT
keywords opmentis miners chat data-analysis ai
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.8.1",
    "maintainer_email": null,
    "keywords": "opmentis, miners, chat, data-analysis, ai",
    "author": "opmentis",
    "author_email": "admin@opmentis.xyz",
    "download_url": "https://files.pythonhosted.org/packages/80/ec/c6ede4956050696f96b9e80cdeff63d8ba0fa2c8af2c55718c81f1c41fde/opmentis-0.2.4.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\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Library to register opmentis miners and check data and start new chat and many more",
    "version": "0.2.4.1",
    "project_urls": {
        "Documentation": "https://github.com/OpMentis-Ai/wiki",
        "Homepage": "https://github.com/OpMentis-Ai",
        "Repository": "https://github.com/OpMentis-Ai"
    },
    "split_keywords": [
        "opmentis",
        " miners",
        " chat",
        " data-analysis",
        " ai"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4ae07e631850649d2ee5233672ac9d168ec4a1996739655b96cefd4e362547e2",
                "md5": "1ab536809c84a309205dfdf374cdbfea",
                "sha256": "8fbe377e11afb0ce36f5071c34f29703f37f55bf155d03672e6e85f130211cd3"
            },
            "downloads": -1,
            "filename": "opmentis-0.2.4.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1ab536809c84a309205dfdf374cdbfea",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8.1",
            "size": 7429,
            "upload_time": "2025-01-05T19:59:15",
            "upload_time_iso_8601": "2025-01-05T19:59:15.216410Z",
            "url": "https://files.pythonhosted.org/packages/4a/e0/7e631850649d2ee5233672ac9d168ec4a1996739655b96cefd4e362547e2/opmentis-0.2.4.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "80ecc6ede4956050696f96b9e80cdeff63d8ba0fa2c8af2c55718c81f1c41fde",
                "md5": "952bdbf36f3fd530ac7ab39db94a9e16",
                "sha256": "e437a59f3f263cea43d388ef9f36f3c74d4652e334bbb532413efc2734e7cd9d"
            },
            "downloads": -1,
            "filename": "opmentis-0.2.4.1.tar.gz",
            "has_sig": false,
            "md5_digest": "952bdbf36f3fd530ac7ab39db94a9e16",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8.1",
            "size": 6100,
            "upload_time": "2025-01-05T19:59:16",
            "upload_time_iso_8601": "2025-01-05T19:59:16.297238Z",
            "url": "https://files.pythonhosted.org/packages/80/ec/c6ede4956050696f96b9e80cdeff63d8ba0fa2c8af2c55718c81f1c41fde/opmentis-0.2.4.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-05 19:59:16",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "OpMentis-Ai",
    "github_project": "wiki",
    "github_not_found": true,
    "lcname": "opmentis"
}
        
Elapsed time: 1.05506s