Skip to main content

metadata-filter

License: MIT

Cleaner metadata (e.g. artist, album, track titles) for scrobbling.

Install

pip install metadata-filter

Usage

from metadata_filter import *

artist = "Iron Maiden"
album = "Powerslave (2015 Remaster)"
track = "Aces High - 2015 Remaster"

rules = (
    REMASTERED_FILTER_RULES
    + SUFFIX_FILTER_RULES
    + VERSION_FILTER_RULES
    + ORIGIN_FILTER_RULES
    + FEATURE_FILTER_RULES
    + CLEAN_EXPLICIT_FILTER_RULES
    + LIVE_FILTER_RULES
    + TRIM_WHITESPACE_FILTER_RULES
)

track = apply_filters(rules, track)
album = apply_filters(rules, album)

print(f"{artist} - {album} - {track}")

# Prints:
# Iron Maiden - Powerslave - Aces High

Metadata

Release files for metadata-filter 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for metadata-filter 0.1.0
File Size Uploaded Provenance Actions
metadata_filter-0.1.0.tar.gz 6.5 kB Without provenance Details for metadata_filter-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for metadata-filter 0.1.0
File Interpreter ABI Platform Actions
metadata_filter-0.1.0-py3-none-any.whl Python 3 none any Details for metadata_filter-0.1.0-py3-none-any.whl

Total release size: 13.9 kB

Release files / metadata_filter-0.1.0.tar.gz

Download URL metadata_filter-0.1.0.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e0984b9a7b700869dd0831f9b75ce350b32ac988ab4151ae183e6ee77439ada8
BLAKE2b-256 checksum
How to use checksums
72e6227ea23364254833127151f55d2bb276b7daef5d4382bb7ce5304f2aa437
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

Release files / metadata_filter-0.1.0-py3-none-any.whl

Download URL metadata_filter-0.1.0-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e677f9cc077de94cf0ca9dcf62eaac39a627c6232671a625cdc85596e9f3ca03
BLAKE2b-256 checksum
How to use checksums
3d3a901ab6db39916d6742604d8048ca48c32ba424ba5a2c5c488d6534bd6c1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

Security for metadata-filter 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page