Skip to content

TF2 item schemas, unusual effects, SKUs and other data

License

Notifications You must be signed in to change notification settings

offish/tf2-data

Repository files navigation

tf2-data

Stars Issues Size Discord Downloads Code style Ruff

Item schemas, unusual effects, SKUs and more which can be useful for TF2 trading. Implemented by tf2-utils.

Donate

Setup

Install

pip install tf2-data
# or 
python -m pip install tf2-data

Updating

pip install --upgrade tf2-data
# or 
python -m pip install --upgrade tf2-data

Testing

# tf2-data/
pytest

Update files after new update

If the package is not up-to-date, run this snippet to update your local files.

from tf2_data import Schema, SchemaItems, IEconItems

api_key = "STEAM_API_KEY"
schema = Schema(api_key=api_key)
schema.set_effects()

ieconitems = IEconItems(api_key)
items = ieconitems.set_all_schema_items()

schema_items = SchemaItems(items)
schema_items.map_defindex_name()
schema_items.map_defindex_full_name()