Skip to main content

No project description provided

Project description

discogs track

A tool for completists and other pop music collectors. It is inspired by R.I.P the discogs.com Tracks Beta project.

Installation

This tool is not yet in pypi.org.

$ pip -v install https://github.com/decitre/discogs_track.git

To install the dev/test tools and contribute to the project, do in your virtualenv:

$ pip install -e ".[dev]"

To start Redis service on Macos:

$ brew services start redis

Shell completion on zsh:

_DISCOGS_TRACK_COMPLETE=zsh_source discogs_track > ~/.discogs_track-complete.zsh
echo ". ~/.discogs_track-complete.zsh" >> ~/.zshrc

Usage

discogs_track --help
Usage: discogs_track [OPTIONS] COMMAND [ARGS]...

Options:
    --version             Show the version and exit.
    -v, --verbose         [x>=0]
    --cache / --no-cache
    --help                Show this message and exit.

Commands:
    artist

Examples:

$ discogs_track artist -i 3281311 show-tracks
$ discogs_track artist -i 3281311 show-completing
$ discogs_track --no-cache artist -i 3281311 show-completing --for-sale
$ discogs_track artist -i 3281311 release -i 20846845 show

The tool expects in ~/.dt.cfg a INI config file containing a Discogs user credentials:

[Discogs]
user_name = ...
consumer_key = ...
consumer_secret = ...
access_token_here = ...
access_secret_here = ...    

SDK

Some classes can be used as a SDK giving access to a subset of Discogs API features.

class comment
api.API A very light asynchronous wrapper around the Discogs API.

Uses a local redis instance if cached=True is passed to its constructor.

artist.Artist

Hosts the Json returned by /artists/{artist_id}.

and a few derived attributes.
record.Record
record.Track An abstraction of releases tracklist array elements

missing tracks ratio

It calculates for a specified artist, a per record missing_tracks_ratio: The number of tracks none of the records of the user's collection contain, over the number of tracks in the record. A record with a 0% score is either already in the collection as one of its various releases, or all its tracks are contained by a set of other records in the collection. A record with a 100% score only contains tracks not present in any other record of the user's collection.

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

discogs_track-0.0.2.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

discogs_track-0.0.2-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file discogs_track-0.0.2.tar.gz.

File metadata

  • Download URL: discogs_track-0.0.2.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.10

File hashes

Hashes for discogs_track-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2d954733330c088c1a1c209cf42a419484eb32ab0bb0639ea45f277da5b86cb9
MD5 787fb9403dd0f95859db0e101866d3f5
BLAKE2b-256 feed15db25a6750c056c7f39cab8e4fc40b82dcf5c753a8713a3d88b10c1ee79

See more details on using hashes here.

File details

Details for the file discogs_track-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for discogs_track-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8ae73972223796d6b207d9ddcd750aaf85c26c16f4d9c67d0ee8c170a9c693af
MD5 43fd5a5329f53615935c67da3a67fd54
BLAKE2b-256 86740dad2084b5e74edd31f2558af4a50bee45d5ed505d0a81387c182d4d16c1

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