rolilib


Namerolilib JSON
Version 0.1.2 PyPI version JSON
download
home_pageNone
SummaryAPI Wrapper for Rolimon's
upload_time2024-06-21 20:06:12
maintainerNone
docs_urlNone
authorThunderFound
requires_pythonNone
licenseNone
keywords python api rolimons
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![roliLib banner](https://github.com/ThunderFound/rolilib/assets/90287659/b7c011fb-69b6-4c9e-8514-9f919d5f84af)
## Installation

```bash
pip install rolilib
```
    
## Examples

### Item's name and RAP
```python
import rolilib

item = rolilib.getItem('138932314')   # Item's id

print('Name:', item.name)
print('RAP:', item.rap)
```

Output:
```bash
Name: Dominus Aureus
RAP: 4316150
```

### Player's name, id and RAP
```python
import rolilib

player = rolilib.getPlayer('Rolimon')   # Letter case does not matter

print('Name:', player.name)
print('Id:', player.id)
print('RAP:', player.rap)

print('--------------------')

player = rolilib.getPlayer('489694314')   # Also, you can pass id

print('Name:', player.name)
print('Id:', player.id)
print('RAP:', player.rap)
```

Output:
```bash
Name: Rolimon
Id: 152588760
RAP: 478207
--------------------
Name: And23102
Id: 489694314
RAP: 2155
```

### Every limited's name
```python
import rolilib

limiteds = rolilib.getLimiteds()   # Gets data of every limited item. From oldest to newest
print(limiteds.name)   # Prints only names of limiteds
```

Output: (I won't show the full output because it contains more than 50,000 characters)
```bash
['Red Baseball Cap', 'Classic ROBLOX Viking Helm', 'The Classic ROBLOX Fedora', 'Domino Crown' ... 'Vault Commando', 'Vault Swordpack', 'Vault Glider Wings', 'Daemonshank']
```
## Documentation

### rolilib.getItem()

#### getItem().id

Returns item's id

#### getItem().name

Returns item's name

#### getItem().acronym

Returns item's acronym

#### getItem().rap

Returns item's rap

#### getItem().value

Returns item's value

#### getItem().default_value

Returns item's original/default value

#### getItem().demand

Returns item's demand

| Unassigned | Terrible   | Low        | Normal     | High       | Amazing    |
| ---------- | ---------- | ---------- | ---------- | ---------- | ---------- |
| -1         | 0          | 1          | 2          | 3          | 4          |

#### getItem().trend

Returns item's trend

| Unassigned | Unstable   | Lowering   | Stable     | Raising    | Fluctuating |
| ---------- | ---------- | ---------- | ---------- | ---------- | ----------  |
| -1         | 0          | 1          | 2          | 3          | 4           |

#### getItem().projected

Returns whether the item is projected

| False | True  |
| ----- | ----- |
| -1    | 1     |

#### getItem().hyped

Returns whether the item is hyped

| False | True  |
| ----- | ----- |
| -1    | 1     |

#### getItem().rare

Returns whether the item is rare

| False | True  |
| ----- | ----- |
| -1    | 1     |

### rolilib.getPlayer()

#### getPlayer().id

Returns players's id

#### getPlayer().name

Returns players's username

#### getPlayer().value

Returns players's value

#### getPlayer().rap

Returns players's rap

#### getPlayer().rank

Returns players's rank in leaderboard

| Outside top 1000 | Inside top 1000      |
| ---------------- | -------------------- |
| None             | Value from 1 to 1000 |

#### getPlayer().premium

Returns whether the player has premium

#### getPlayer().privacy_enabled

Returns whether the player has inventory private

#### getPlayer().terminated

Returns whether the player is terminated

#### getPlayer().stats_updated

Returns when player's stats were updated the last time. Returns unix timestamp

#### getPlayer().stats_updated_utc

Returns when player's stats were updated the last time. Returns date in UTC

#### getPlayer().last_scan

Returns when player's stats were scanned the last time. Returns unix timestamp

#### getPlayer().last_scan_utc

Returns when player's stats were scanned the last time. Returns date in UTC

#### getPlayer().last_online

Returns when the player was online last time. Returns unix timestamp

#### getPlayer().last_online_utc

Returns when the player was online last time. Returns date in UTC

#### getPlayer().last_location

Returns where was the player when he was checked the last time



## You can also try out these packages

[rolimons.py](https://github.com/wa1ker38552/rolimons.py)

[rolipy](https://github.com/acierp/rolipy)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "rolilib",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "python, api, rolimons",
    "author": "ThunderFound",
    "author_email": "<contact.thunderfound@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/67/9a/83ed19218d01018451c107a379ca63d7ba24a6b6b4276e7edb17ce0e880a/rolilib-0.1.2.tar.gz",
    "platform": null,
    "description": "![roliLib banner](https://github.com/ThunderFound/rolilib/assets/90287659/b7c011fb-69b6-4c9e-8514-9f919d5f84af)\r\n## Installation\r\n\r\n```bash\r\npip install rolilib\r\n```\r\n    \r\n## Examples\r\n\r\n### Item's name and RAP\r\n```python\r\nimport rolilib\r\n\r\nitem = rolilib.getItem('138932314')   # Item's id\r\n\r\nprint('Name:', item.name)\r\nprint('RAP:', item.rap)\r\n```\r\n\r\nOutput:\r\n```bash\r\nName: Dominus Aureus\r\nRAP: 4316150\r\n```\r\n\r\n### Player's name, id and RAP\r\n```python\r\nimport rolilib\r\n\r\nplayer = rolilib.getPlayer('Rolimon')   # Letter case does not matter\r\n\r\nprint('Name:', player.name)\r\nprint('Id:', player.id)\r\nprint('RAP:', player.rap)\r\n\r\nprint('--------------------')\r\n\r\nplayer = rolilib.getPlayer('489694314')   # Also, you can pass id\r\n\r\nprint('Name:', player.name)\r\nprint('Id:', player.id)\r\nprint('RAP:', player.rap)\r\n```\r\n\r\nOutput:\r\n```bash\r\nName: Rolimon\r\nId: 152588760\r\nRAP: 478207\r\n--------------------\r\nName: And23102\r\nId: 489694314\r\nRAP: 2155\r\n```\r\n\r\n### Every limited's name\r\n```python\r\nimport rolilib\r\n\r\nlimiteds = rolilib.getLimiteds()   # Gets data of every limited item. From oldest to newest\r\nprint(limiteds.name)   # Prints only names of limiteds\r\n```\r\n\r\nOutput: (I won't show the full output because it contains more than 50,000 characters)\r\n```bash\r\n['Red Baseball Cap', 'Classic ROBLOX Viking Helm', 'The Classic ROBLOX Fedora', 'Domino Crown' ... 'Vault Commando', 'Vault Swordpack', 'Vault Glider Wings', 'Daemonshank']\r\n```\r\n## Documentation\r\n\r\n### rolilib.getItem()\r\n\r\n#### getItem().id\r\n\r\nReturns item's id\r\n\r\n#### getItem().name\r\n\r\nReturns item's name\r\n\r\n#### getItem().acronym\r\n\r\nReturns item's acronym\r\n\r\n#### getItem().rap\r\n\r\nReturns item's rap\r\n\r\n#### getItem().value\r\n\r\nReturns item's value\r\n\r\n#### getItem().default_value\r\n\r\nReturns item's original/default value\r\n\r\n#### getItem().demand\r\n\r\nReturns item's demand\r\n\r\n| Unassigned | Terrible   | Low        | Normal     | High       | Amazing    |\r\n| ---------- | ---------- | ---------- | ---------- | ---------- | ---------- |\r\n| -1         | 0          | 1          | 2          | 3          | 4          |\r\n\r\n#### getItem().trend\r\n\r\nReturns item's trend\r\n\r\n| Unassigned | Unstable   | Lowering   | Stable     | Raising    | Fluctuating |\r\n| ---------- | ---------- | ---------- | ---------- | ---------- | ----------  |\r\n| -1         | 0          | 1          | 2          | 3          | 4           |\r\n\r\n#### getItem().projected\r\n\r\nReturns whether the item is projected\r\n\r\n| False | True  |\r\n| ----- | ----- |\r\n| -1    | 1     |\r\n\r\n#### getItem().hyped\r\n\r\nReturns whether the item is hyped\r\n\r\n| False | True  |\r\n| ----- | ----- |\r\n| -1    | 1     |\r\n\r\n#### getItem().rare\r\n\r\nReturns whether the item is rare\r\n\r\n| False | True  |\r\n| ----- | ----- |\r\n| -1    | 1     |\r\n\r\n### rolilib.getPlayer()\r\n\r\n#### getPlayer().id\r\n\r\nReturns players's id\r\n\r\n#### getPlayer().name\r\n\r\nReturns players's username\r\n\r\n#### getPlayer().value\r\n\r\nReturns players's value\r\n\r\n#### getPlayer().rap\r\n\r\nReturns players's rap\r\n\r\n#### getPlayer().rank\r\n\r\nReturns players's rank in leaderboard\r\n\r\n| Outside top 1000 | Inside top 1000      |\r\n| ---------------- | -------------------- |\r\n| None             | Value from 1 to 1000 |\r\n\r\n#### getPlayer().premium\r\n\r\nReturns whether the player has premium\r\n\r\n#### getPlayer().privacy_enabled\r\n\r\nReturns whether the player has inventory private\r\n\r\n#### getPlayer().terminated\r\n\r\nReturns whether the player is terminated\r\n\r\n#### getPlayer().stats_updated\r\n\r\nReturns when player's stats were updated the last time. Returns unix timestamp\r\n\r\n#### getPlayer().stats_updated_utc\r\n\r\nReturns when player's stats were updated the last time. Returns date in UTC\r\n\r\n#### getPlayer().last_scan\r\n\r\nReturns when player's stats were scanned the last time. Returns unix timestamp\r\n\r\n#### getPlayer().last_scan_utc\r\n\r\nReturns when player's stats were scanned the last time. Returns date in UTC\r\n\r\n#### getPlayer().last_online\r\n\r\nReturns when the player was online last time. Returns unix timestamp\r\n\r\n#### getPlayer().last_online_utc\r\n\r\nReturns when the player was online last time. Returns date in UTC\r\n\r\n#### getPlayer().last_location\r\n\r\nReturns where was the player when he was checked the last time\r\n\r\n\r\n\r\n## You can also try out these packages\r\n\r\n[rolimons.py](https://github.com/wa1ker38552/rolimons.py)\r\n\r\n[rolipy](https://github.com/acierp/rolipy)\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "API Wrapper for Rolimon's",
    "version": "0.1.2",
    "project_urls": null,
    "split_keywords": [
        "python",
        " api",
        " rolimons"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "aed57c840902a5ec55ce7bbd7801bf3a475c6b6ee29da4b0fecbb938156fad56",
                "md5": "321d4c24ab7ac051ae60f46a72be5165",
                "sha256": "b10c5e69f70a91263574e3ffcdcd7939b52c7908be0dbf830d26f278123e2a08"
            },
            "downloads": -1,
            "filename": "rolilib-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "321d4c24ab7ac051ae60f46a72be5165",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4859,
            "upload_time": "2024-06-21T20:06:10",
            "upload_time_iso_8601": "2024-06-21T20:06:10.028367Z",
            "url": "https://files.pythonhosted.org/packages/ae/d5/7c840902a5ec55ce7bbd7801bf3a475c6b6ee29da4b0fecbb938156fad56/rolilib-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "679a83ed19218d01018451c107a379ca63d7ba24a6b6b4276e7edb17ce0e880a",
                "md5": "8f66ca9181e8748c251d8c1b7ddf033f",
                "sha256": "271e02792c066984db303e03939c57a28ffc19b1d652659bfea36d68b6fc6c44"
            },
            "downloads": -1,
            "filename": "rolilib-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "8f66ca9181e8748c251d8c1b7ddf033f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3988,
            "upload_time": "2024-06-21T20:06:12",
            "upload_time_iso_8601": "2024-06-21T20:06:12.067003Z",
            "url": "https://files.pythonhosted.org/packages/67/9a/83ed19218d01018451c107a379ca63d7ba24a6b6b4276e7edb17ce0e880a/rolilib-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-21 20:06:12",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "rolilib"
}
        
Elapsed time: 0.29917s