InlinePlus plugin for Beets
This beets plugin is like the builtin inline plugin: it "lets you
use Python to customize your path formats. Using it, you can define template
fields in your beets configuration file and refer to them from your template
strings in the paths: section."
However, inlineplus adds a fields_base: block where you can define python
functions you want to use in multiple template fields.
Installation
Install the plugin into beets' Python environment with
pip install beets-inlineplus
(or the respective equivalent if you use e.g. pipx).
Usage
Add the inlineplus plugin to your config.
Then under a new fields_base: block write python functions and constants you want to use in your fielddefinition under item_fields: or album_fields:. Python function can be used in both of these section. Example:
You want to use a function anartist() both in the item field myiteminfo and in the album fields myartistinfo. Define this function in your config.yaml like this:
fields_base: |
def anartist():
return "AnArtist"
Then you can refer to it the item and album fields for example liek this:
item_fields:
myiteminfo: anartist()
album_fields:
myartistinfo: |
return "Artist_" + anartist().upper()
and then in the paths section you can use your new fields:
paths:
default: $albumartist/$album%aunique{}/$track $title $myiteminfo
singelton: $myartistinfo/$title
Metadata
Release files for beets-inlineplus 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| beets_inlineplus-0.1.0.tar.gz | 4.8 kB | Without provenance | Details for beets_inlineplus-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| beets_inlineplus-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for beets_inlineplus-0.1.0-py3-none-any.whl |
Total release size: 10.1 kB
Release files / beets_inlineplus-0.1.0.tar.gz
| Download URL | beets_inlineplus-0.1.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2c22fb0dd444d602c02a51c99614c3108df7e7443bf255f68d870d672a6a6e0
|
|
BLAKE2b-256 checksum How to use checksums |
479bac77cd335ebca279c2554c34cb5a7d68a9729a57ddf42f65ee0988d4eff5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.14
|
Release files / beets_inlineplus-0.1.0-py3-none-any.whl
| Download URL | beets_inlineplus-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2db055681ec850100006d339b85966431e81a604260109441c86b1306bf264c4
|
|
BLAKE2b-256 checksum How to use checksums |
2a346425e3404f3960063346aa59331c29af1daa03f4f8c79458c80abdbbe3b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.14
|
Security for beets-inlineplus 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.