Skip to main content

CS2 fade utility

Project description

Contributors Forks Stargazers Issues Downloads GPLv3 License

cs2fade

Python port of @chescos original csgo-fade-percentage-calculator.
Check out his repository for more information.
For a usage example, refer to example.py.

Quick start

import cs2fade

info = cs2fade.get("M4A1-S", 374)
print(f"#{info.ranking} / {info.percentage} / {info.finish}")
# => "#1 / 100.0 / fade"

info = cs2fade.get("M4A1-S", 739)
print(f"#{info.ranking} / {info.percentage} / {info.finish}")
# => "#1 / 80.0 / fade"

The helper infers the correct finish for the given weapon. If you need low-level access to the calculators, the original classes remain available:

from cs2fade import AcidFade

fade = AcidFade.get_percentage("SSG 08", 374)

If you notice any errors, please feel free to open an issue or pull request.

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

cs2fade-0.3.0.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cs2fade-0.3.0-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file cs2fade-0.3.0.tar.gz.

File metadata

  • Download URL: cs2fade-0.3.0.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cs2fade-0.3.0.tar.gz
Algorithm Hash digest
SHA256 fd4ae87614ab3b9891e780cca0a1deba25a797baa10a3cd1f2bac712bb173cb5
MD5 29965b30587d7838619f00f1d6784d4a
BLAKE2b-256 1c99d8963f99ee7396320f4d973507fa99e83c88387935587836c433db56f3c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for cs2fade-0.3.0.tar.gz:

Publisher: python-publish.yml on Helyux/cs2fade

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cs2fade-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: cs2fade-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cs2fade-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a15bf8c9d9e9bc494199169cf24871f89c312f504d1a9fd0567848200bedc6e6
MD5 0984a2482d0aa59cc0b66754efce3708
BLAKE2b-256 88f0b050f7af12e296986198f39655a9080664bedaeaef057199443959fafdb3

See more details on using hashes here.

Provenance

The following attestation bundles were made for cs2fade-0.3.0-py3-none-any.whl:

Publisher: python-publish.yml on Helyux/cs2fade

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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