Skip to main content

Mosaic of custom Signal stickers with the Signal logo in the middle

packpath

Automatically upload Signal stickers from a given path and YAML configuration

Install it

The package is available in PyPI, through pip:

  $ pip3 install packpath

But you can also simply checkout this repository and run it as a module:

  $ git clone https://github.com/diegoe/packpath.git
  $ cd packpath
  $ python3 -m packpath (plus arguments, see below)

How it works

packpath reads a path and loads a config.yaml file from it to automatically fill a signalstickers-client client, and submit stickers.

It subclasses signalstickers_client.models.LocalStickerPack to add a load_path() method.

You need to provide your username and password, as well as the path to a sticker directory containing a config.yaml file. See below for details on both, or run packpath --help:

  $ packpath --user [uuid_id] --password [password] [path_to_sticker_dir]

  # Most of this README and its instructions are available in the
  # command's help:
  $ packpath --help

YAML format

The YAML format is rather simple:

pack:
  title: Your sticker pack title
  author: An author name
  cover: filename-for-the-cover.png

stickers:
  filename.png: 👀
  another-filename.png: 👋
  (...)

To save yourself some work, you can use ls to output an almost ready list of filenames to use on your config.yaml:

  $ ls -1 >> config.yaml

Signal credentials

From https://github.com/signalstickers/signalstickers-client#uploading-a-pack:

You will need your Signal credentials To obtain them, open the Developer Tools in Signal Desktop, and type window.reduxStore.getState().items.uuid_id to get your USER, and window.reduxStore.getState().items.password to get your PASSWORD.

The above is also available in python3 -m packpath --help.

Credits

This is a simple wrapper on top of the very handy signalstickers-client.

Go check it out.

Disclaimer

All boiler plate disclaimers apply. But also please be respectful of Signal's service. Don't abuse this or any other script. This is meant to help legitimate users make the most of the service.

Development

Make sure to run flake8 on any changes you make, and also to run the tests:

  $ flake8 packpath
  $ python3 -m unittest discover

Metadata

Release files for packpath 0.9.4

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

Source distribution (sdist)

Source distribution for packpath 0.9.4
File Size Uploaded
packpath-0.9.4.tar.gz 5.7 kB Details

Built distribution (wheel)

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

Total release size: 24.2 kB

Release files / packpath-0.9.4.tar.gz

Download URL packpath-0.9.4.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d9412bd809b5d2736b0d6472d4f9a98066c5c19cbea76fa3c4ee2e0d707130d7
BLAKE2b-256 checksum
How to use checksums
d6795828505b2d5532336977ae64e35f364a6f0ea46ab9051b0e5b0c5b1b7754
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Release files / packpath-0.9.4-py3-none-any.whl

Download URL packpath-0.9.4-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0d1e90fd55346a87a1581e6444f7aa4ef04dfd3dcfc285a91ff0b2bdb8684e8
BLAKE2b-256 checksum
How to use checksums
1b22491ae33a487aa28b3276e0933a045ca48614e763b33bdff4d29f5020f420
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Release history Release notifications | RSS feed

This release

0.9.4 This release

2 release files

0.9.3

2 release files

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