Skip to main content

API Wrapper for Rolimon's

Project description

roliLib banner

Installation

pip install rolilib

Examples

Item's name and RAP

import rolilib

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

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

Output:

Name: Dominus Aureus
RAP: 4316150

Player's name, id and RAP

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:

Name: Rolimon
Id: 152588760
RAP: 478207
--------------------
Name: And23102
Id: 489694314
RAP: 2155

Every limited's name

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)

['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

rolipy

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

rolilib-0.1.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

rolilib-0.1.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file rolilib-0.1.2.tar.gz.

File metadata

  • Download URL: rolilib-0.1.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.3

File hashes

Hashes for rolilib-0.1.2.tar.gz
Algorithm Hash digest
SHA256 271e02792c066984db303e03939c57a28ffc19b1d652659bfea36d68b6fc6c44
MD5 8f66ca9181e8748c251d8c1b7ddf033f
BLAKE2b-256 679a83ed19218d01018451c107a379ca63d7ba24a6b6b4276e7edb17ce0e880a

See more details on using hashes here.

File details

Details for the file rolilib-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: rolilib-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.3

File hashes

Hashes for rolilib-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b10c5e69f70a91263574e3ffcdcd7939b52c7908be0dbf830d26f278123e2a08
MD5 321d4c24ab7ac051ae60f46a72be5165
BLAKE2b-256 aed57c840902a5ec55ce7bbd7801bf3a475c6b6ee29da4b0fecbb938156fad56

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page