updating README and CHANGELOG
This commit is contained in:
10
CHANGELOG.md
10
CHANGELOG.md
@@ -1,10 +0,0 @@
|
|||||||
# Changelog
|
|
||||||
All notable changes to this project will be documented in this file.
|
|
||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
||||||
|
|
||||||
## [1.0.0] - 2020-03-07
|
|
||||||
### Added
|
|
||||||
|
|
||||||
- Initial version
|
|
||||||
21
CHANGELOG.rst
Normal file
21
CHANGELOG.rst
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
Changelog
|
||||||
|
==========
|
||||||
|
|
||||||
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
This format is based on `Keep a Changelog`_
|
||||||
|
|
||||||
|
.. _Keep a Changelog: https://keepachangelog.com/en/1.0.0/
|
||||||
|
|
||||||
|
and this project adheres to `Semantic Versioning`_
|
||||||
|
|
||||||
|
.. _Semantic Versioning: https://semver.org/spec/v2.0.0.html
|
||||||
|
|
||||||
|
|
||||||
|
[1.0.0] - 2020-03-07
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
Added
|
||||||
|
######
|
||||||
|
|
||||||
|
- Initial version
|
||||||
121
README.rst
121
README.rst
@@ -1,5 +1,6 @@
|
|||||||
musicbrainzapi
|
=============
|
||||||
===============
|
Introduction
|
||||||
|
=============
|
||||||
|
|
||||||
.. image:: https://img.shields.io/readthedocs/panaetius?style=for-the-badge :target: https://panaetius.readthedocs.io/en/latest/?badge=latest
|
.. image:: https://img.shields.io/readthedocs/panaetius?style=for-the-badge :target: https://panaetius.readthedocs.io/en/latest/?badge=latest
|
||||||
:alt: Documentation Status
|
:alt: Documentation Status
|
||||||
@@ -17,3 +18,119 @@ musicbrainzapi
|
|||||||
.. image:: https://img.shields.io/github/languages/top/dtomlinson91/musicbrainzapi-cv-airelogic?style=for-the-badge :alt: GitHub top language
|
.. image:: https://img.shields.io/github/languages/top/dtomlinson91/musicbrainzapi-cv-airelogic?style=for-the-badge :alt: GitHub top language
|
||||||
|
|
||||||
.. image:: https://img.shields.io/requires/github/dtomlinson91/musicbrainzapi-cv-airelogic?style=for-the-badge :alt: Requires.io
|
.. image:: https://img.shields.io/requires/github/dtomlinson91/musicbrainzapi-cv-airelogic?style=for-the-badge :alt: Requires.io
|
||||||
|
|
||||||
|
Summary
|
||||||
|
========
|
||||||
|
|
||||||
|
Musicbrainzapi is a Python module with a CLI that allows you to search for an artist and receive summary statistics on lyrics across all albums + tracks.
|
||||||
|
|
||||||
|
In addition to basic statistics the module further allows you to save details of an artist. You can save album information, the lyrics themselves and track lists.
|
||||||
|
|
||||||
|
The module (currently) provides a simple CLI with some underlying assumptions:
|
||||||
|
|
||||||
|
- We are interested in albums only - no singles.
|
||||||
|
- We are interested in any album where the artist is listed as a primary artist on a release. This could include compilations or joint albums with other artists.
|
||||||
|
- Where an album has been released multiple times, in different regions, we take the album with the longest track list.
|
||||||
|
|
||||||
|
These assumptions are not configurable in the current version - but this functionality could be added to the module if needed.
|
||||||
|
|
||||||
|
Further information, and a brief summary of decisions taken and current caveats can be found in the documentation which is linked below.
|
||||||
|
|
||||||
|
Documentation
|
||||||
|
=============
|
||||||
|
|
||||||
|
The documentation for the module can be found at https://musicbrainzapi-cv-airelogic.readthedocs.io/en/latest/
|
||||||
|
|
||||||
|
Installation
|
||||||
|
============
|
||||||
|
|
||||||
|
You will need ``python>=3.7``. Installation to a python virtual environment is recommended.
|
||||||
|
|
||||||
|
PIP
|
||||||
|
---
|
||||||
|
|
||||||
|
Download the latest release ``.whl`` file from the `releases`_ page
|
||||||
|
|
||||||
|
.. _releases: https://github.com/dtomlinson91/musicbrainzapi-cv-airelogic/releases
|
||||||
|
|
||||||
|
In a virtual environment run:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
pip install -U musicbrainzapi.whl
|
||||||
|
|
||||||
|
Replacing ``musicbrainzapi.whl`` with the filename you downloaded.
|
||||||
|
|
||||||
|
setup.py
|
||||||
|
--------
|
||||||
|
|
||||||
|
Clone the repo:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
git clone https://github.com/dtomlinson91/musicbrainzapi-cv-airelogic.git
|
||||||
|
|
||||||
|
In the root of the repo in a virtual environment run:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
python ./setup.py install
|
||||||
|
|
||||||
|
Docker
|
||||||
|
------
|
||||||
|
|
||||||
|
.. note:: Using Docker will mean you cannot view a wordcloud, as the default behaviour is to show the plot interactively which the container cannot do.
|
||||||
|
|
||||||
|
If you don't have ``python>=3.7`` installed, or would rather use Docker, you can build a Docker image and run the module using Docker.
|
||||||
|
|
||||||
|
Clone the repo:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
git clone https://github.com/dtomlinson91/musicbrainzapi-cv-airelogic.git
|
||||||
|
|
||||||
|
In the root of the repo build the Docker image:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
docker build . -t musicbrainzapi
|
||||||
|
|
||||||
|
No entrypoint is provided in the ``Dockerfile`` - you will have to specify the command at runtime and run the container in interactive mode:
|
||||||
|
|
||||||
|
Using Docker run
|
||||||
|
^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
docker run --rm -it --volume=$(pwd):/outputs \
|
||||||
|
musicbrainzapi:latest musicbrainzapi --path /outputs \
|
||||||
|
lyrics -a "Savage Garden" -c gb --show-summary all --save-output
|
||||||
|
|
||||||
|
|
||||||
|
Usage
|
||||||
|
=====
|
||||||
|
|
||||||
|
Once installed you can access the command running:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
musicbrainzapi
|
||||||
|
|
||||||
|
To see all options available you can run:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
musicbrainzapi --help
|
||||||
|
|
||||||
|
In the current release there is one command available ``lyrics``:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
musicbrainzapi lyrics --help
|
||||||
|
|
||||||
|
License information
|
||||||
|
===================
|
||||||
|
|
||||||
|
Released under the `MIT License`_
|
||||||
|
|
||||||
|
.. _MIT License: https://github.com/dtomlinson91/musicbrainzapi-cv-airelogic/blob/master/LICENSE
|
||||||
|
|||||||
@@ -1,21 +1 @@
|
|||||||
Changelog
|
.. include:: ../../CHANGELOG.rst
|
||||||
==========
|
|
||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
|
||||||
|
|
||||||
This format is based on `Keep a Changelog`_
|
|
||||||
|
|
||||||
.. _Keep a Changelog: https://keepachangelog.com/en/1.0.0/
|
|
||||||
|
|
||||||
and this project adheres to `Semantic Versioning`_
|
|
||||||
|
|
||||||
.. _Semantic Versioning: https://semver.org/spec/v2.0.0.html
|
|
||||||
|
|
||||||
|
|
||||||
[1.0.0] - 2020-03-07
|
|
||||||
------------------------
|
|
||||||
|
|
||||||
Added
|
|
||||||
######
|
|
||||||
|
|
||||||
- Initial version
|
|
||||||
|
|||||||
@@ -39,7 +39,8 @@ extensions = [
|
|||||||
'sphinx.ext.napoleon',
|
'sphinx.ext.napoleon',
|
||||||
'sphinx.ext.todo',
|
'sphinx.ext.todo',
|
||||||
'sphinx_click.ext',
|
'sphinx_click.ext',
|
||||||
'sphinx.ext.intersphinx'
|
'sphinx.ext.intersphinx',
|
||||||
|
'sphinx.ext.autosectionlabel'
|
||||||
]
|
]
|
||||||
|
|
||||||
# -- Napoleon Settings -----------------------------------------------------
|
# -- Napoleon Settings -----------------------------------------------------
|
||||||
|
|||||||
@@ -1,13 +1 @@
|
|||||||
=============
|
.. include:: ../../README.rst
|
||||||
Introduction
|
|
||||||
=============
|
|
||||||
|
|
||||||
#####
|
|
||||||
Test
|
|
||||||
#####
|
|
||||||
|
|
||||||
testing
|
|
||||||
|
|
||||||
test code::
|
|
||||||
|
|
||||||
some test code
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
musicbrainzapi.api.lyrics.director
|
musicbrainzapi.api.lyrics.director
|
||||||
----------------------------------------------------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
.. automodule:: musicbrainzapi.api.lyrics.director
|
.. automodule:: musicbrainzapi.api.lyrics.director
|
||||||
:members:
|
:members:
|
||||||
|
|||||||
@@ -9,8 +9,7 @@ from musicbrainzapi.api.lyrics import Lyrics
|
|||||||
|
|
||||||
|
|
||||||
class LyricsClickDirector:
|
class LyricsClickDirector:
|
||||||
"""Director for Lyrics builder.
|
"""Director for Lyrics builder."""
|
||||||
"""
|
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
self._builder = None
|
self._builder = None
|
||||||
|
|||||||
Reference in New Issue
Block a user