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.

Installation

This module requires Python v3+ to run.

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

pip install tf2calc

Syntax

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.

License

MIT

Project details


Download files

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

Source Distribution

tf2calc-1.0.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

tf2calc-1.0.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file tf2calc-1.0.0.tar.gz.

File metadata

  • Download URL: tf2calc-1.0.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.6

File hashes

Hashes for tf2calc-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6ea6499df123eda1007ab81eb3f585f2ac67dfcc5c59459cfb71f4b1c3f49ba6
MD5 7915db2cf790c56dc778671b8b60dc6c
BLAKE2b-256 001bc79ebcffd546ab055cd5b517208621005bfdc6316d3db8f56466440e9cc6

See more details on using hashes here.

File details

Details for the file tf2calc-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: tf2calc-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.6

File hashes

Hashes for tf2calc-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 310e83b77ce578e2c105340f7b83d0e9e8e9bbc883a33023f30f432e6a4ce5c0
MD5 409f5a24656ec37ca876870cf5af2f3c
BLAKE2b-256 6038a2b0bbd033d3b7a01da70d5c47a8e8144fcf91e5a3516c6d7179785484e7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page