Skip to main content

python package to calculate tf2 prices

Project description

PricesTF Python API

This modul is a simple python package to calcualte tf2 prices.


This module requires Python v3+ to run.

For install the module type this to your command line...

pip install tf2calc


calculate(<amount>, <"type">)
- amount (intriger)
- type (string):
  - "scrap"
  - "rec"
  - "ref"
  - "key"
  - "earbuds"

Quick Example

from tf2clac import *

calculation = calculate(1, "ref")

It will return a dictionary with the calculated values.

{"scrap": 9, "rec": 3, "ref": 1, "key": 0.02, "earbuds": 0.0}

If you write an unknown type, it will return 0.



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tf2calc, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size tf2calc-1.0.0-py3-none-any.whl (3.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size tf2calc-1.0.0.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page