CS2 inspect link utility
Project description
cs2inspect
Overview
cs2inspect is a python package used for creating and working with counter-strike inspect links and gen codes.
Features
- Creating 'unmasked' inspect links (containing the owners steam id)
- Creating 'masked' (XOR-capable) inspect links
- Decoding/Parsing inspect links back into data or protobuf objects
- Schema Enrichment (Parsing): Resolve numeric IDs to human-readable names (Weapon, Skin, Rarity, Origin, Quality, etc.)
- Creating gen codes
- Creating console pasteable inspect links
- Checking inspect link validity (robust regex supporting modern CS2 formats)
Installation
pip install cs2inspect
Quick Start
Link Creation
import cs2inspect
# Create a modern 'masked' link using the Builder
proto = cs2inspect.Builder(
defindex=7,
paintindex=941,
paintseed=0,
paintwear=0.15,
rarity=5
)
link = cs2inspect.link(proto.build())
print(link) # steam://run/730//+csgo_econ_action_preview%2000180720AD072805389AB3E6F00340006F59908E
Basic Parsing
import cs2inspect
# Parse a modern 'masked' inspect link
link = "steam://run/730//+csgo_econ_action_preview%206A7AC7C6BEDED06B72704ACE6F426F5A635296868780692AAC6C226A3A6A02E9EAEAEA661A625E7EE646"
data = cs2inspect.parse(link)
print(data['defindex']) # 26 (PP-Bizon)
print(data['floatvalue']) # 0.05357979
Schema Enrichment
import cs2inspect
# Resolve IDs to names using an external schema
cs2inspect.download_schema()
info = cs2inspect.parse(link, enrich=True)
print(info['full_item_name']) # StatTrak™ PP-Bizon | High Roller (Factory New)
Documentation
For detailed information, please refer to the following docs:
- Example Usage: Comprehensive examples for link creation, parsing, and enrichment.
- Output Model: Detailed specification of the dictionary structure returned by
parse().
Technical Limitations (Parsing)
cs2inspect is a local, offline decoder. Masked/Modern links (binary Protobuf payload) are fully supported with offline enrichment of stickers, floats, and charms. Unmasked/Legacy links (S/M A D pointers) have only minimal support as they contain no binary property data; resolving their attributes requires a call to the GameCoordinator (GC), which is outside the scope of this offline library.
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for development setup and guidelines.
License
GPLv3 License. See the LICENSE file for details.
Acknowledgements
Special thanks to these projects for their foundational work and metadata tracking:
- csfloat/inspect - Foundational skin inspect library
- ByMykel/CSGO-API - Primary source for the schema files
- SteamTracking/GameTracking-CS2 - Source for
RarityandQualityenums - SteamDatabase/SteamTracking - Source for
Originenum
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cs2inspect-0.6.0.tar.gz.
File metadata
- Download URL: cs2inspect-0.6.0.tar.gz
- Upload date:
- Size: 37.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d9a69f6d1dcd3d937e85340bc367689ae7cff1912ff8d51839077c0d43752fb
|
|
| MD5 |
3ee5444b6f668424c28a16006b0aebb8
|
|
| BLAKE2b-256 |
df81c47a232ff8dbce22c8f9596c65586fee126cd1dac5a9c6f91d53b211b542
|
Provenance
The following attestation bundles were made for cs2inspect-0.6.0.tar.gz:
Publisher:
python-publish.yml on Helyux/cs2inspect
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cs2inspect-0.6.0.tar.gz -
Subject digest:
0d9a69f6d1dcd3d937e85340bc367689ae7cff1912ff8d51839077c0d43752fb - Sigstore transparency entry: 1358806164
- Sigstore integration time:
-
Permalink:
Helyux/cs2inspect@6fe57cd824173d33994e57b45321913a4f22c66b -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/Helyux
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6fe57cd824173d33994e57b45321913a4f22c66b -
Trigger Event:
release
-
Statement type:
File details
Details for the file cs2inspect-0.6.0-py3-none-any.whl.
File metadata
- Download URL: cs2inspect-0.6.0-py3-none-any.whl
- Upload date:
- Size: 41.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4325f6c1a58b4b9d39a5bcfce17f93929c1d0270d9a96f666bf957b1033b6aa
|
|
| MD5 |
876235d61253668731d5c88b7d37b13e
|
|
| BLAKE2b-256 |
65a5ad5957802f2b9eb3aa0bd7ea5767ec30a4f538bd0ccd489fc782ef3c9615
|
Provenance
The following attestation bundles were made for cs2inspect-0.6.0-py3-none-any.whl:
Publisher:
python-publish.yml on Helyux/cs2inspect
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cs2inspect-0.6.0-py3-none-any.whl -
Subject digest:
b4325f6c1a58b4b9d39a5bcfce17f93929c1d0270d9a96f666bf957b1033b6aa - Sigstore transparency entry: 1358806259
- Sigstore integration time:
-
Permalink:
Helyux/cs2inspect@6fe57cd824173d33994e57b45321913a4f22c66b -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/Helyux
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6fe57cd824173d33994e57b45321913a4f22c66b -
Trigger Event:
release
-
Statement type: