Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/offish/tf2-data
Item schemas, unusual effects, SKUs and more which can be useful for TF2 trading
https://github.com/offish/tf2-data
backpacktf marketplace-tf sku steam steam-api steamcommunity team-fortress-2 tf2 tf2-trading tf2-trading-bot
Last synced: 3 months ago
JSON representation
Item schemas, unusual effects, SKUs and more which can be useful for TF2 trading
- Host: GitHub
- URL: https://github.com/offish/tf2-data
- Owner: offish
- License: mit
- Created: 2023-10-10T18:00:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-13T17:33:09.000Z (11 months ago)
- Last Synced: 2024-03-14T16:43:58.333Z (10 months ago)
- Topics: backpacktf, marketplace-tf, sku, steam, steam-api, steamcommunity, team-fortress-2, tf2, tf2-trading, tf2-trading-bot
- Language: Python
- Homepage:
- Size: 2.82 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tf2-data
[![License](https://img.shields.io/github/license/offish/tf2-data.svg)](https://github.com/offish/tf2-data/blob/master/LICENSE)
[![Stars](https://img.shields.io/github/stars/offish/tf2-data.svg)](https://github.com/offish/tf2-data/stargazers)
[![Issues](https://img.shields.io/github/issues/offish/tf2-data.svg)](https://github.com/offish/tf2-data/issues)
[![Size](https://img.shields.io/github/repo-size/offish/tf2-data.svg)](https://github.com/offish/tf2-data)
[![Discord](https://img.shields.io/discord/467040686982692865?color=7289da&label=Discord&logo=discord)](https://discord.gg/t8nHSvA)
[![Code style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)Item schemas, unusual effects, SKUs and more which can be useful for TF2 trading. Implemented by [tf2-utils](https://github.com/offish/tf2-utils).
## Donate
- BTC: `bc1qntlxs7v76j0zpgkwm62f6z0spsvyezhcmsp0z2`
- [Steam Trade Offer](https://steamcommunity.com/tradeoffer/new/?partner=293059984&token=0-l_idZR)## Setup
### Install
```bash
pip install tf2-data
# or
python -m pip install tf2-data
```### Updating
```bash
pip install --upgrade tf2-data
# or
python -m pip install --upgrade tf2-data
```## Testing
```bash
# tf2-data/
python -m unittest
```## Update files after new update
To update the local files after a TF2 update run this snippet.```python
from tf2_data.schema import Schema, SchemaItems, IEconItemsapi_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()
```