tf2-data


Nametf2-data JSON
Version 0.2.0 PyPI version JSON
download
home_pageNone
SummaryItem schemas, unusual effects, SKUs and more useful data for TF2 trading
upload_time2024-11-20 21:36:18
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords tf2 data sku
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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, 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()
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "tf2-data",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "tf2, data, sku",
    "author": null,
    "author_email": "offish <overutilization@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/2a/93/131728386e17423ba08103e05fd0b8ef0c9a25f0ae2f86e3e95333697dcb/tf2_data-0.2.0.tar.gz",
    "platform": null,
    "description": "# tf2-data\n[![License](https://img.shields.io/github/license/offish/tf2-data.svg)](https://github.com/offish/tf2-data/blob/master/LICENSE)\n[![Stars](https://img.shields.io/github/stars/offish/tf2-data.svg)](https://github.com/offish/tf2-data/stargazers)\n[![Issues](https://img.shields.io/github/issues/offish/tf2-data.svg)](https://github.com/offish/tf2-data/issues)\n[![Size](https://img.shields.io/github/repo-size/offish/tf2-data.svg)](https://github.com/offish/tf2-data)\n[![Discord](https://img.shields.io/discord/467040686982692865?color=7289da&label=Discord&logo=discord)](https://discord.gg/t8nHSvA)\n[![Code style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\nItem schemas, unusual effects, SKUs and more which can be useful for TF2 trading. Implemented by [tf2-utils](https://github.com/offish/tf2-utils).\n\n## Donate\n- BTC: `bc1qntlxs7v76j0zpgkwm62f6z0spsvyezhcmsp0z2`\n- [Steam Trade Offer](https://steamcommunity.com/tradeoffer/new/?partner=293059984&token=0-l_idZR)\n\n## Setup\n### Install\n```bash\npip install tf2-data\n# or \npython -m pip install tf2-data\n```\n\n### Updating\n```bash\npip install --upgrade tf2-data\n# or \npython -m pip install --upgrade tf2-data\n```\n\n## Testing\n```bash\n# tf2-data/\npython -m unittest\n```\n\n## Update files after new update\nTo update the local files after a TF2 update run this snippet.\n\n```python\nfrom tf2_data.schema import Schema, SchemaItems, IEconItems\n\napi_key = \"STEAM_API_KEY\"\nschema = Schema(api_key=api_key)\nschema.set_effects()\n\nieconitems = IEconItems(api_key)\nitems = ieconitems.set_all_schema_items()\n\nschema_items = SchemaItems(items)\nschema_items.map_defindex_name()\nschema_items.map_defindex_full_name()\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Item schemas, unusual effects, SKUs and more useful data for TF2 trading",
    "version": "0.2.0",
    "project_urls": {
        "Bug Tracker": "https://github.com/offish/tf2-data/issues",
        "Homepage": "https://github.com/offish/tf2-data"
    },
    "split_keywords": [
        "tf2",
        " data",
        " sku"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e0062e67f1141b5fd5a3f258fe8e9402e8416d95ab8736ca8fed8a8a2dc5c688",
                "md5": "6d94ac105e14ec2a08c8073cc6d759ea",
                "sha256": "61bcdebeff6ffe0ac109731acbed62b8f269126eb71de5a8f1a1805b6e9e630c"
            },
            "downloads": -1,
            "filename": "tf2_data-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6d94ac105e14ec2a08c8073cc6d759ea",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 1296782,
            "upload_time": "2024-11-20T21:36:15",
            "upload_time_iso_8601": "2024-11-20T21:36:15.115194Z",
            "url": "https://files.pythonhosted.org/packages/e0/06/2e67f1141b5fd5a3f258fe8e9402e8416d95ab8736ca8fed8a8a2dc5c688/tf2_data-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2a93131728386e17423ba08103e05fd0b8ef0c9a25f0ae2f86e3e95333697dcb",
                "md5": "f3a225c7bb24ef5a3db42147900f0b92",
                "sha256": "40f57b00f0e87e12e942cdd94ad793f23c4e041d07c3fef68366dabe85c465a6"
            },
            "downloads": -1,
            "filename": "tf2_data-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f3a225c7bb24ef5a3db42147900f0b92",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 1235446,
            "upload_time": "2024-11-20T21:36:18",
            "upload_time_iso_8601": "2024-11-20T21:36:18.102796Z",
            "url": "https://files.pythonhosted.org/packages/2a/93/131728386e17423ba08103e05fd0b8ef0c9a25f0ae2f86e3e95333697dcb/tf2_data-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-20 21:36:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "offish",
    "github_project": "tf2-data",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "tf2-data"
}
        
Elapsed time: 0.44441s