2021-01-18 12:26:28 +00:00
|
|
|
bcao
|
|
|
|
====
|
|
|
|
|
|
|
|
bandcamp album organiser - a python script to organise, rename, and apply cover art to zip files downloaded from bandcamp.
|
|
|
|
|
|
|
|
## usage
|
|
|
|
```
|
|
|
|
./bcao.py [zip file] [options]
|
|
|
|
```
|
|
|
|
see the help menu (`--help`) for more.
|
|
|
|
|
|
|
|
## installing
|
2021-01-18 13:06:13 +00:00
|
|
|
### the astoundingly easy way
|
|
|
|
*requires [pipx](https://pipxproject.github.io/pipx/).*
|
2021-04-19 00:08:52 +00:00
|
|
|
this will install and run bcao from a temporary location.
|
2021-01-18 13:06:13 +00:00
|
|
|
```
|
|
|
|
pipx run --spec git+https://git.bune.city/lynnesbian/bcao bcao [album name.zip]
|
|
|
|
```
|
2021-01-18 12:26:28 +00:00
|
|
|
### the very easy way
|
|
|
|
download [bcao.pex](https://git.bune.city/lynnesbian/bcao/raw/branch/master/bcao.pex) and run it:
|
|
|
|
```
|
|
|
|
python bcao.pex [album name.zip]
|
|
|
|
```
|
2021-01-18 13:06:13 +00:00
|
|
|
a [pex file](https://github.com/pantsbuild/pex/) is a zip that contains everything needed for a python program to run,
|
|
|
|
including its dependencies.
|
2021-01-18 12:26:28 +00:00
|
|
|
|
|
|
|
### the pretty easy way
|
|
|
|
requires [poetry](https://python-poetry.org/).
|
2021-01-18 13:06:13 +00:00
|
|
|
installs the package into a virtual environment in the current directory.
|
2021-01-18 12:26:28 +00:00
|
|
|
```
|
|
|
|
git clone https://git.bune.city/lynnesbian/bcao
|
|
|
|
cd bcao
|
|
|
|
poetry install
|
2021-01-18 13:06:13 +00:00
|
|
|
poetry run bcao [album name.zip]
|
2021-01-18 12:26:28 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### the other way
|
2021-01-18 13:06:13 +00:00
|
|
|
you don't *have* to create a virtualenv, but, y'know, you should and all
|
2021-01-18 12:26:28 +00:00
|
|
|
```
|
|
|
|
git clone https://git.bune.city/lynnesbian/bcao
|
|
|
|
cd bcao
|
|
|
|
virtualenv venv
|
|
|
|
source venv/bin/activate
|
|
|
|
pip install -r requirements.txt
|
2021-01-18 13:06:13 +00:00
|
|
|
python -m bcao [album name.zip]
|
2021-01-18 12:26:28 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## building it yourself
|
|
|
|
see `build.sh`
|