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.1.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.1-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cs2fade-0.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 1f83e9846f398afd4382a3cfb1503d5043ee683b1c1ef8b02463384456cec41f
MD5 ee035a87b0fcd730378b1e0a25f6cf33
BLAKE2b-256 6ca48d9edceaed0348613e50f9d4b2bbe17e1e775a4b4e153bb8e0b7c137900e

See more details on using hashes here.

Provenance

The following attestation bundles were made for cs2fade-0.3.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: cs2fade-0.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 73e34d9ac65ddd6b5bf9a582452c973f05508dcedaf95d4b2b20ee3366cfbaa0
MD5 26a2120fd35d2d02bf04c2888308c79e
BLAKE2b-256 436e4488c267afca6eb93d767cfa8b9c1a67756510053ea72fa067cb8730b15a

See more details on using hashes here.

Provenance

The following attestation bundles were made for cs2fade-0.3.1-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