|
| 1 | +tf2-utils |
| 2 | +========= |
| 3 | +|license| |stars| |issues| |repo_size| |discord| |code_style| |downloads| |
| 4 | + |
| 5 | +``tf2-utils`` is a collection of tools and utilities for TF2 trading. |
| 6 | +Use 3rd party inventory providers, SKUs formatting, interact with various APIs, websockets and more. |
| 7 | +``tf2-utils`` is built on top of `tf2-sku <https://github.com/offish/tf2-sku>`_ and `tf2-data <https://github.com/offish/tf2-data>`_. |
| 8 | +``tf2-utils`` is a key dependency of `tf2-express <https://github.com/offish/tf2-express>`_. |
| 9 | + |
| 10 | +Donate |
| 11 | +------ |
| 12 | + |
| 13 | +- BTC: ``bc1qntlxs7v76j0zpgkwm62f6z0spsvyezhcmsp0z2`` |
| 14 | +- `Steam Trade Offer <https://steamcommunity.com/tradeoffer/new/?partner=293059984&token=0-l_idZR>`_ |
| 15 | + |
| 16 | +You can reach me at `Steam <https://steamcommunity.com/id/confern>`_, |
| 17 | +my `Discord server <https://discord.gg/t8nHSvA>`_ |
| 18 | +or `Discord profile <https://discord.com/users/252183247843229696>`_. |
| 19 | + |
| 20 | +Features |
| 21 | +-------- |
| 22 | + |
| 23 | +- Built-in currency picking (metal + keys) for sending offers |
| 24 | +- Interact with BackpackTF's API |
| 25 | +- Interact with PricesTF's API |
| 26 | +- Get MarketplaceTF item prices and stocks |
| 27 | +- Get SKUs directly from inventories/offers |
| 28 | +- Convert names to SKUs and vice versa |
| 29 | +- Fetch inventories using 3rd party providers or your own (avoid being rate-limited) |
| 30 | +- Listen for Backpack.TF websocket events |
| 31 | +- Listen for Prices.TF websocket events |
| 32 | +- Get item properties (``is_craft_hat``, ``get_paint``, ``get_effect`` and more) |
| 33 | +- Fetch TF2 Schema data |
| 34 | +- Convert SKU/defindex to item image URL |
| 35 | +- Calculate scrap and refined prices |
| 36 | +- Convert SteamIDs |
| 37 | +- and more... |
| 38 | + |
| 39 | +Documentation |
| 40 | +------------- |
| 41 | +Documentation including usage and examples can be found `here <https://offish.github.io/tf2-utils/>`_. |
| 42 | + |
| 43 | +Installing |
| 44 | +---------- |
| 45 | + |
| 46 | +.. code-block:: bash |
| 47 | +
|
| 48 | + pip install tf2-utils |
| 49 | + # or |
| 50 | + python -m pip install tf2-utils |
| 51 | +
|
| 52 | +Updating |
| 53 | +~~~~~~~~ |
| 54 | + |
| 55 | +.. code-block:: bash |
| 56 | +
|
| 57 | + pip install --upgrade tf2-utils tf2-sku tf2-data |
| 58 | + # or |
| 59 | + python -m pip install --upgrade tf2-utils tf2-sku tf2-data |
| 60 | +
|
| 61 | +
|
| 62 | +Development |
| 63 | +----------- |
| 64 | + |
| 65 | +Testing |
| 66 | +~~~~~~~ |
| 67 | +.. code-block:: bash |
| 68 | +
|
| 69 | + # tf2-utils/ |
| 70 | + python -m unittest |
| 71 | +
|
| 72 | +Documentation |
| 73 | +~~~~~~~~~~~~~ |
| 74 | +.. code-block:: bash |
| 75 | +
|
| 76 | + # tf2-utils/docs/ |
| 77 | + pip install sphinx furo |
| 78 | + make clean # .\make.bat <command> on windows |
| 79 | + make html |
| 80 | +
|
| 81 | +When submitting a pull request, please make sure to run the tests (+ make new ones if applicable) |
| 82 | +and update the documentation. Run the code through ``black`` and ``flake8`` before submitting. |
| 83 | + |
| 84 | +License |
| 85 | +------- |
| 86 | +MIT License |
| 87 | + |
| 88 | +Copyright (c) 2019-2024 offish (`confern <https://steamcommunity.com/id/confern>`_) |
| 89 | + |
| 90 | +Permission is hereby granted, free of charge, to any person obtaining a copy |
| 91 | +of this software and associated documentation files (the "Software"), to deal |
| 92 | +in the Software without restriction, including without limitation the rights |
| 93 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 94 | +copies of the Software, and to permit persons to whom the Software is |
| 95 | +furnished to do so, subject to the following conditions: |
| 96 | + |
| 97 | +The above copyright notice and this permission notice shall be included in all |
| 98 | +copies or substantial portions of the Software. |
| 99 | + |
| 100 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 101 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 102 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 103 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 104 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 105 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 106 | +SOFTWARE. |
| 107 | + |
| 108 | +.. |license| image:: https://img.shields.io/github/license/offish/tf2-utils.svg |
| 109 | + :target: https://github.com/offish/tf2-utils/blob/master/LICENSE |
| 110 | + :alt: License |
| 111 | + |
| 112 | +.. |stars| image:: https://img.shields.io/github/stars/offish/tf2-utils.svg |
| 113 | + :target: https://github.com/offish/tf2-utils/stargazers |
| 114 | + :alt: Stars |
| 115 | + |
| 116 | +.. |issues| image:: https://img.shields.io/github/issues/offish/tf2-utils.svg |
| 117 | + :target: https://github.com/offish/tf2-utils/issues |
| 118 | + :alt: Issues |
| 119 | + |
| 120 | +.. |repo_size| image:: https://img.shields.io/github/repo-size/offish/tf2-utils.svg |
| 121 | + :target: https://github.com/offish/tf2-utils |
| 122 | + :alt: Size |
| 123 | + |
| 124 | +.. |discord| image:: https://img.shields.io/discord/467040686982692865?color=7289da&label=Discord&logo=discord |
| 125 | + :target: https://discord.gg/t8nHSvA |
| 126 | + :alt: Discord |
| 127 | + |
| 128 | +.. |code_style| image:: https://img.shields.io/badge/code%20style-black-000000.svg |
| 129 | + :target: https://github.com/psf/black |
| 130 | + :alt: Code style |
| 131 | + |
| 132 | +.. |downloads| image:: https://img.shields.io/pypi/dm/tf2-utils |
| 133 | + :target: https://pypi.org/project/tf2-utils/ |
| 134 | + :alt: Downloads |
0 commit comments