Skip to main content

A Python package for creating CS:GO shuffle config files.

Project description

Description

csgoinvshuffle is a Python package designed to create shuffle configs for the game CS:GO.

With this package you can easily shuffle between different weapon types (e.g. M4A4 and M4A1-S) and have less limits in cusomizing the shuffle experience than in the in-game settings.

##Note: CS:GO never really queues your items in a random order. The items are arranged in one simple cycle.

You can use the config file it creates and replace <path_to_your_steam>/userdata/<your_steam_3id>/730/remote/cfg/csgo_saved_item_shuffles.txt with it to apply your config.

###HINT: CS:GO needs to be closed while replacing the file

How to install

The package requires Python 3.9: pip install csgoinvshuffle

Basic usage

Your steam inventory needs to be public!

Basic shuffle for everything in your inventory

from csgoinvshuffle import ShuffleConfig, get_inventory

with ShuffleConfig() as sc:
    sc.add_items(get_inventory("YOUR_STEAM_ID_64"))

Give items a certain order in the cycle

from csgoinvshuffle import ShuffleConfig, get_inventory
from csgoinvshuffle.enums import TagsInternalName

# This example only works if you have at least 4 music kits in your inventory
sc = ShuffleConfig()
inv = get_inventory("YOUR_STEAM_ID_64")
music_kits = inv.filter_by_tags_internal_name(TagsInternalName.MUSIC_KITS)
sc.set_item(0 , music_kits[3])
sc.set_item(1, music_kits[1])
sc.save()

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

csgoinvshuffle-1.0.0b0.tar.gz (22.0 kB view hashes)

Uploaded Source

Built Distribution

csgoinvshuffle-1.0.0b0-py3-none-any.whl (22.9 kB view hashes)

Uploaded Python 3

Supported by

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