CSXhair is a simple package for decoding/encoding CS:GO (and CS2!) crosshairs using game share codes.
All share codes are fully compatible with CS:GO/CS2.
from csxhair import Crosshair
my_crosshair = Crosshair.decode('CSGO-ZEw8O-KGXNu-4TTUU-VyXbD-SBCtG')
print(my_crosshair.gap) # -3.0
my_crosshair.size += 5
my_crosshair.recoil = True # exclusive to CS2
print(my_crosshair.encode()) # CSGO-hbBNp-7jd43-34SWO-9ck6v-p4FyB
print(my_crosshair.csgo_commands) # ['cl_crosshairgap -3.0', ..., 'cl_crosshairdot 0', ...]
print(my_crosshair.cs2_commands) # ['cl_crosshairgap -3.0', ..., 'cl_crosshairdot false', ...]
Special thanks to Aquarius for making a rough implementation led to this package.