Skip to main content

CSXhair

PyPI release Python supported versions License

CSXhair is a simple package for decoding, changing and encoding CS2 crosshairs using game share codes.

from csxhair import Crosshair

my_crosshair = Crosshair.decode('CSjNcfcGjo8LLy2pDpCynr5e5efCGW6yXuf7B6aQ7wkWmU')
print(my_crosshair.gap)  #> 2

my_crosshair.length += 5
my_crosshair.recoil = True
print(my_crosshair.encode())  #> "CSpQo2QSOSE2jXKTFHKei7T4mK5fznKeT2ziT8qXK9uN3Z"

my_crosshair.color = "#00FFFF"  # alpha is set to 255
my_crosshair.outline_color = (48, 57, 68, 128)

print(my_crosshair.commands) #> ['cl_crosshair_drawoutline 0', ..., 'cl_ironsight_usecrosshaircolor true', 'cl_ironsight_dot_scale 1.0']

Special thanks to Aquarius for making a rough implementation led to this package.

Metadata

Release files for csxhair 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for csxhair 2.0.1
File Size Uploaded Provenance
csxhair-2.0.1.tar.gz 7.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for csxhair 2.0.1
File Interpreter ABI Platform
csxhair-2.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.8 kB

Release files / csxhair-2.0.1.tar.gz

Download URL csxhair-2.0.1.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b90956c9477fae1743ecf3e304a7fdd8246b8081ee5a11dd3bb183f78076a513
BLAKE2b-256 checksum
How to use checksums
b016f229f2eceb07b17a20e1fa4e8c62933b93032a41fd778a7ede8484a93d9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / csxhair-2.0.1-py3-none-any.whl

Download URL csxhair-2.0.1-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b87c6ef62e68524063fd3bbda241f07e67c00326baeb01a145ca74f913bf3b3b
BLAKE2b-256 checksum
How to use checksums
72e8cd2a93b5f164d8a71c70c99f521e02d6bb83e6b01a1bd340d79c9008634b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for csxhair 2.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page