Skip to main content

scan a music directory to find concerts near a specified location

Project description

metalfinder is a command-line tool that scans a music directory to find concerts near a specified location.

Installation

Using pip

You can install metalfinder using pip:

$ pip install metalfinder

From source

You can install metalfinder from source using flit:

$ apt install flit
$ git clone https://gitlab.com/baldurmen/metalfinder
$ cd metafinder
$ flit install

API Providers

Bandsintown

To use the Bandsintown API provider, you will need a Bandsintown App ID. This is your API key and it should be kept private.

Other providers

Do you know a good website that tracks concerts and has a somewhat public API? If keys are not too hard to get, I’d be more than happy to implement it!

CLI options

Here is an example of how to use metalfinder:

$ metalfinder -d "/home/foo/Music" -o "/home/foo/metalfinder.atom" -l "Montreal"

The complete CLI parameters can be found below and in the man page:

Usage:
    metalfinder -d <directory> -o <output> -l <location> -b <app_id> [-c <cache>] [-m <date>] [--verbose]
    metalfinder (-h | --help)
    metalfinder --version

Options:
    -h  --help                   Show the help screen
    --version                    Output version information
    --verbose                    Run the program in verbose mode
    -d  --directory <directory>  Music directory to scan to create artist list
    -o  --output    <output>     Path to the desired output file. You can either
                                 chose a text file (foo.txt), a JSON file (foo.json)
                                 or an ATOM file (foo.atom)
    -l  --location  <location>   Name of the city to use when looking for concerts
    -b  --bit-appid <app_id>     Bandsintown App ID (API key)
    -c  --cache     <cache>      Path to the cache directory. Defaults to
                                 XDG_CACHE/metalfinder
    -m  --max-date  <date>       Max date in YYYY-MM-DD format (ISO 8601)

Development

Running the test suite

Building the man page

The man page for metalfinder can be generated using the rst2man command line tool provided by the docutils project:

$ rst2man manpage.rst metalfinder.1

License

This project was written by Louis-Philippe Véronneau and is licensed under the GNU GPLv3 or any later version.

The code to query Bandsintown comes from the python-bandsintown project, was written by Chris Forrette and is licensed under the MIT license.

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

metalfinder-1.1.0.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

metalfinder-1.1.0-py2.py3-none-any.whl (22.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file metalfinder-1.1.0.tar.gz.

File metadata

  • Download URL: metalfinder-1.1.0.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for metalfinder-1.1.0.tar.gz
Algorithm Hash digest
SHA256 28cb5c661d51b4c36e8c92511553b05c484fc4877ef1c545c438104175e0afa1
MD5 9e24a173fa3c43e940c90a74b19e0d68
BLAKE2b-256 87a3119f76ae631b0fdbf81b0cc708c5cf0de6509cbd8856a398676a80a97c62

See more details on using hashes here.

File details

Details for the file metalfinder-1.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for metalfinder-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 017a4844e3622b0ec8faa2fc9d471f168c59ca771b6ade4c76de80ea732eadec
MD5 7d1b5b090ac36b74de4cb12398ca48ac
BLAKE2b-256 a6fd28e777fb30c9cfdf9eda873b8e913f67bd1b3203a8b08b5cac0f2d18096f

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