Skip to main content
https://img.shields.io/pypi/v/last-shout.svg https://img.shields.io/pypi/pyversions/last-shout.svg Code coverage Status https://travis-ci.org/bpepple/last-shout.svg?branch=master https://img.shields.io/badge/code%20style-black-000000.svg

Quick Description

A command line tool to tweet a user’s top artist statistics from Last.fm to Twitter and Mastodon.

Installation

PyPi

Install it yourself:

$ pip install --user last-shout

GitHub

Installing the latest version from Github:

$ git clone https://github.com/bpepple/last-shout.git
$ cd last-shout
$ python3 setup.py install

Getting started

In order to use Last-Shout, you need at a minimum to get authentication keys for Twitter and Last.fm.

  • To get the necessary authenticaton keys for Twitter, refer to the documentation here.

  • To get the necessary authentication keys for Last.fm, refer to their documentation.

Help

usage: main.py [-h] [-u USER] [--last-access-key LAST_ACCESS_KEY]
               [--set-lastfm] [-n NUMBER] [-p PERIOD] [-t]
               [--consumer-key CONSUMER_KEY]
               [--consumer-secret CONSUMER_SECRET] [--access-key ACCESS_KEY]
               [--access-secret ACCESS_SECRET] [--set-twitter]
               [--create-mastodon-app] [--create-mastodon-user] [--toot]
               [--version]

A program to post last.fm statistics to Twitter and/or Mastodon.

optional arguments:
  -h, --help            show this help message and exit
  -u USER, --user USER  Last.fm username (default: None)
  --last-access-key LAST_ACCESS_KEY
                        Last.fm access key (default: None)
  --set-lastfm          Set Last.fm credentials (default: False)
  -n NUMBER, --number NUMBER
                        Number of last.fm top artists (default: 10)
  -p PERIOD, --period PERIOD
                        The time period over which to retrieve top artists.
                        Options are: overall | 7day | 1month | 3month | 6month
                        | 12month (default: 7day)
  -t, --tweet           Post Last.fm stats to Twitter (default: False)
  --consumer-key CONSUMER_KEY
                        Twitter consumer key (default: None)
  --consumer-secret CONSUMER_SECRET
                        Twitter consumer secret (default: None)
  --access-key ACCESS_KEY
                        Twitter access token key (default: None)
  --access-secret ACCESS_SECRET
                        Twitter access secret (default: None)
  --set-twitter         Set Twitter credentials (default: False)
  --create-mastodon-app
                        Create mastodon application (default: False)
  --create-mastodon-user
                        Create Mastodon user token (default: False)
  --toot                Post Last.fm stats to Mastodon (default: False)
  --version             Show the version number and exit

Metadata

Release files for last-shout 0.7.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 last-shout 0.7.0
File Size Uploaded
last-shout-0.7.0.tar.gz 8.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for last-shout 0.7.0
File Interpreter ABI Platform
last_shout-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.7 kB

Release files / last-shout-0.7.0.tar.gz

Download URL last-shout-0.7.0.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2b359b5db673e794cb8ebf68dbe0517f3bb5a7b5017bbe163ed7ad7873ca97bf
BLAKE2b-256 checksum
How to use checksums
92c922143388f6544d1935d95a65b92b2bc708034cf73622f45db10f614601df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9

Release files / last_shout-0.7.0-py3-none-any.whl

Download URL last_shout-0.7.0-py3-none-any.whl
Size 20.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e48bc6c21bdc962dee85cb1114a213779d079069701ecbc680af8795cf8e700d
BLAKE2b-256 checksum
How to use checksums
e0d057b8106088a0c87c72ed1283215a8bd52f34c45afcc08371ef857094ba9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9

Release history Release notifications | RSS feed

0.10.1

2 release files

0.10.0

2 release files

0.9.1

2 release files

0.9.0

2 release files

This release

0.7.0 This release

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.1.0

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