Skip to main content

Python client for Talk stickers

A client to interact with the Talk stickers API.

  • Fetch sticker packs
  • Get images files
  • Upload sticker packs
  • etc.

Note: despite its name, this client does not interacts with talkapps.github.io/sticker-store, so information defined there (tags, etc.) will not be fetched.

This client connects to the Talk sticker API. Please do not flood it.

Installation

pip3 install --user talkapps-client

This module requires cryptography, protobuf, anyio, and httpx (but they should be installed with the previous command).

Downloading a pack

The StickerPack object returned by await StickersClient().get_pack(<pack_id>, <pack_key>) exposes the following attributes:

  • id (string): the pack id. Equals to pack_id;
  • key (string): the pack key. Equals to pack_key;
  • title (string): the title of the pack;
  • author (string): the author of the pack;
  • nb_stickers (int): the number of stickers in the pack;
  • cover (Sticker): the cover sticker;
  • stickers (list): the list of stickers in the pack (which are Sticker objects).

A Sticker object exposes the following attributes:

  • id (int): the id of the sticker in the pack;
  • emoji (string): the emoji mapped to this sticker;
  • image_data (bytes): the webp image of the sticker.

Uploading a pack

Same thing, but use LocalStickerPack (that does not contains id and key) instead of StickerPack.

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

Example usage

See examples/

Development

  • Create a pipenv with pipenv install --dev;
  • Edit the code you want;
  • Don't forget to launch tests with pipenv run py.test.

License

See LICENSE

Legal

This is not an official Talk project. This is an independant project.
Talk is a registered trademark in the United States and other countries.

Author

NKDuy kn145660@gmail.com

Metadata

Release files for talkapps-client 3.1.0

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

Source distribution (sdist)

Source distribution for talkapps-client 3.1.0
File Size Uploaded Provenance
talkapps-client-3.1.0.tar.gz 10.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for talkapps-client 3.1.0
File Interpreter ABI Platform
talkapps_client-3.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.6 kB

Release files / talkapps-client-3.1.0.tar.gz

Download URL talkapps-client-3.1.0.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f07938d3213eee14b31757fa7155bd8d2f5429d833f34805602afcd55c3a6a02
BLAKE2b-256 checksum
How to use checksums
51b22aab5f58eba1c74b89cb3382026b638ae1d676fa082ffaf60cc62ed07707
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.7.9

Release files / talkapps_client-3.1.0-py3-none-any.whl

Download URL talkapps_client-3.1.0-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
143090902e051cc8d3570e80ae625ba7b0b7da9033c5cd8668e22c2a53e025a8
BLAKE2b-256 checksum
How to use checksums
665b63b891ab1a62e0d581029bfff76352c5616beded3a3b4753cc6fd8e43b47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.7.9

Security for talkapps-client 3.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.1.0 This release

2 release files No provenance

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