Skip to main content

A CLI interface for quickly making sprays for Team Fortress 2.

Project description

pyspray

CLI interface to streamline the process of making TF2 sprays.

Installation

In order to use pyspray, you must have python installed on your system.

pyspray can be installed via pip with py -m pip install pyspray or python -m pip install pyspray via the command line, depending on your platform. For simplicity, all commands will be given using py (which is the default alias on some Windows systems).

Usage And CLI Help

pyspray should be run as a module using py -m pyspray <args>. In order to see a list of available commands, run py -m pyspray --help.

To get further information about any of these commands, run py -m pyspray <command_name> --help.

Commands and Basic Usage Examples

Before creating any sprays, pyspray needs to know where your Team Fortress 2 directory is. These files can be found by right clicking on Team Fortress 2 in your Steam games menu, mousing over the Manage tab, and then clicking Browse Local Files.

Once you have the file path of the Team Fortress 2 directory, run py -m pyspray set-directory <file_path>

Static Sprays

A static spray is simply a single image. To create one, run py -m pyspray static -s <filepath_or_url_of_image> --name <name_of_spray>. The name can be omitted, but the autogenerated names are simply the timestamps of creation, and are easy to mix up.

Faded Sprays

A faded spray is a spray that changes as you move closer or further away from it. To create a faded spray, run py -m pyspray fade -s <url_or_filepath_of_image> -s <url_or_filepath_of_image>... --name <name_of_spray>. The images should be listed such that the first image is the one you want shown from furthest away, and the last image is the one you want shown from nearest.

Animated Sprays

An animated spray is a spray that moves, and can be made from filetypes like gifs, webms, and mp4s. To create an animated spray, run py -m pyspray anim <path_or_url_to_animated_file> --name <name_of_spray>. Note that this works best with short animations, as sprays have a filesize limit of 512 KB.

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

pyspray-0.0.3.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

pyspray-0.0.3-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file pyspray-0.0.3.tar.gz.

File metadata

  • Download URL: pyspray-0.0.3.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for pyspray-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a848684f606761f1fba6fd4deaeedcd8f092908ea52c1ce580b44b9e929d3e29
MD5 894b3d26d56d669df2d6ea5994ace133
BLAKE2b-256 c359de08ec4eb4f7ea42d8c2b50cf7efb73d378f834d479bd6fac383ec693255

See more details on using hashes here.

File details

Details for the file pyspray-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyspray-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for pyspray-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cd0be885dcf3f2772e8f86b629b33aed0b942b54f7f4aba389c4916fceabedc0
MD5 edaf402a714ad6faedf4a1b8aaf60d7a
BLAKE2b-256 a0d242d8808b2513c7dfaef9f56ae2d5225a3dc8e61bbfd4c7948700b13fdc88

See more details on using hashes here.

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