Skip to main content

Automatically upload Signal stickers from a given path and YAML configuration

Project description

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

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

packpath-0.9.4.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

packpath-0.9.4-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file packpath-0.9.4.tar.gz.

File metadata

  • Download URL: packpath-0.9.4.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for packpath-0.9.4.tar.gz
Algorithm Hash digest
SHA256 d9412bd809b5d2736b0d6472d4f9a98066c5c19cbea76fa3c4ee2e0d707130d7
MD5 4672bc2c77564cbb7201883f1db6aea4
BLAKE2b-256 d6795828505b2d5532336977ae64e35f364a6f0ea46ab9051b0e5b0c5b1b7754

See more details on using hashes here.

File details

Details for the file packpath-0.9.4-py3-none-any.whl.

File metadata

  • Download URL: packpath-0.9.4-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for packpath-0.9.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e0d1e90fd55346a87a1581e6444f7aa4ef04dfd3dcfc285a91ff0b2bdb8684e8
MD5 2971755530d28d965c80234419566f85
BLAKE2b-256 1b22491ae33a487aa28b3276e0933a045ca48614e763b33bdff4d29f5020f420

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