From 4a14c38ecd6bb8552621f2b80a97b850d9cef4df Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 11 Apr 2023 21:57:10 +0000 Subject: automatic import of python-audio-metadata --- .gitignore | 1 + python-audio-metadata.spec | 480 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 482 insertions(+) create mode 100644 python-audio-metadata.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..5c3808e 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/audio-metadata-0.11.1.tar.gz diff --git a/python-audio-metadata.spec b/python-audio-metadata.spec new file mode 100644 index 0000000..7cebace --- /dev/null +++ b/python-audio-metadata.spec @@ -0,0 +1,480 @@ +%global _empty_manifest_terminate_build 0 +Name: python-audio-metadata +Version: 0.11.1 +Release: 1 +Summary: A library for reading and, in the future, writing metadata from audio files. +License: MIT +URL: https://github.com/thebigmunch/audio-metadata +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/29/a3/3e6657b60b31199ff74827e92d807e83e628503c3bc27d34186bb5306e6f/audio-metadata-0.11.1.tar.gz +BuildArch: noarch + +Requires: python3-attrs +Requires: python3-bidict +Requires: python3-bitstruct +Requires: python3-more-itertools +Requires: python3-pendulum +Requires: python3-pprintpp +Requires: python3-tbm-utils +Requires: python3-wrapt +Requires: python3-coverage[toml] +Requires: python3-flake8 +Requires: python3-flake8-builtins +Requires: python3-flake8-comprehensions +Requires: python3-flake8-import-order +Requires: python3-flake8-import-order-tbm +Requires: python3-nox +Requires: python3-sphinx +Requires: python3-sphinx-material +Requires: python3-ward + +%description +# audio-metadata + +[![PyPI](https://img.shields.io/pypi/v/audio-metadata.svg?label=PyPI)](https://pypi.org/project/audio-metadata/) +![](https://img.shields.io/badge/Python-3.6%2B-blue.svg) +[![GitHub CI](https://img.shields.io/github/workflow/status/thebigmunch/audio-metadata/CI?label=GitHub%20CI)](https://github.com/thebigmunch/audio-metadata/actions?query=workflow%3ACI) +[![Codecov](https://img.shields.io/codecov/c/github/thebigmunch/audio-metadata.svg?label=Codecov)](https://codecov.io/gh/thebigmunch/audio-metadata) +[![Docs - Stable](https://img.shields.io/readthedocs/audio-metadata/stable.svg?label=Docs%20%28Stable%29)](https://audio-metadata.readthedocs.io/en/stable/) +[![Docs - Latest](https://img.shields.io/readthedocs/audio-metadata/latest.svg?label=Docs%20%28Latest%29)](https://audio-metadata.readthedocs.io/en/latest/) + +[audio-metadata](https://github.com/thebigmunch/audio-metadata) is a library for reading and, in the future, writing audio metadata. + +### Why another audio metadata library? / Why not just use mutagen et al? + +Clean and understandable code, nice API, and good UX (user experience) are the focal points of audio-metadata. +One or more of these things I feel are lacking from already existing alternatives +enough to want to write something from scratch with them in mind. +Also, there are certain features not present in other solutions that would be prohibitively painful to add. + + +### So, why should I use it? + +Features and functionality that set it apart: + +* Uses the Python standard load(s)/dump(s) API. + * Can load filepaths, os.PathLike objects, file-like objects, and bytes-like objects. +* Metadata objects look like a dict **and** act like a dict. + * Some common libraries shadow the representation of a dict + and/or dict methods but do not behave like a dict. + * Supports attribute-style access that can be mixed with dict key-subscription. +* All metadata objects have user-friendly representations. + * This includes *humanized* representations of certain values + like filesize, bitrate, duration, and sample rate. + +``` +>>> import audio_metadata + +>>> metadata = audio_metadata.load('05 - Heart of Hearts.flac') + +>>> metadata +, + 'streaminfo': , + 'tags': , +})> + +>>> metadata['streaminfo'] + + +>>> metadata.streaminfo.bitrate +1022134.0362995076 + +>>> metadata.streaminfo['duration'] +362.9066666666667 + +>>> metadata['streaminfo'].sample_rate +44100 +``` + + +## Installation + +``pip install -U audio-metadata`` + + +## Usage + +For the release version, see the [stable docs](https://audio-metadata.readthedocs.io/en/stable/). +For the development version, see the [latest docs](https://audio-metadata.readthedocs.io/en/latest/). + +The high-level API and basic usage are covered, but more advanced features/functionality need documentation. + + +## TODO + +If you're willing to [contribute](https://github.com/thebigmunch/audio-metadata/blob/master/.github/CONTRIBUTING.md) +your time to work on [audio-metadata](https://github.com/thebigmunch/audio-metadata/), you can: + +* Post in the [Development](https://forum.thebigmunch.me/c/dev/) category on the [Discourse forum](https://forum.thebigmunch.me/). +* Browse and comment on [issues](https://github.com/thebigmunch/audio-metadata/issues) or [pull requests](https://github.com/thebigmunch/audio-metadata/pulls). +* [Open an issue](https://github.com/thebigmunch/audio-metadata/issues/new) with a bug report or feature request. +* See current [projects](https://github.com/thebigmunch/audio-metadata/projects). +* Contact me by email at mail@thebigmunch.me. + + +## Appreciation + +Showing appreciation is always welcome. + +#### Thank + +[![Say Thanks](https://img.shields.io/badge/thank-thebigmunch-blue.svg?style=flat-square)](https://saythanks.io/to/thebigmunch) + +Get your own thanks inbox at [SayThanks.io](https://saythanks.io/). + +#### Contribute + +[Contribute](https://github.com/thebigmunch/audio-metadata/blob/master/.github/CONTRIBUTING.md) by submitting bug reports, feature requests, or code. + +#### Help Others/Stay Informed + +[Discourse forum](https://forum.thebigmunch.me/) + +#### Referrals/Donations + +[![Digital Ocean](https://img.shields.io/badge/Digital_Ocean-referral-orange.svg?style=flat-square)](https://bit.ly/DigitalOcean-tbm-referral) [![Namecheap](https://img.shields.io/badge/Namecheap-referral-orange.svg?style=flat-square)](http://bit.ly/Namecheap-tbm-referral) [![PayPal](https://img.shields.io/badge/PayPal-donate-brightgreen.svg?style=flat-square)](https://bit.ly/PayPal-thebigmunch) + + +%package -n python3-audio-metadata +Summary: A library for reading and, in the future, writing metadata from audio files. +Provides: python-audio-metadata +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-audio-metadata +# audio-metadata + +[![PyPI](https://img.shields.io/pypi/v/audio-metadata.svg?label=PyPI)](https://pypi.org/project/audio-metadata/) +![](https://img.shields.io/badge/Python-3.6%2B-blue.svg) +[![GitHub CI](https://img.shields.io/github/workflow/status/thebigmunch/audio-metadata/CI?label=GitHub%20CI)](https://github.com/thebigmunch/audio-metadata/actions?query=workflow%3ACI) +[![Codecov](https://img.shields.io/codecov/c/github/thebigmunch/audio-metadata.svg?label=Codecov)](https://codecov.io/gh/thebigmunch/audio-metadata) +[![Docs - Stable](https://img.shields.io/readthedocs/audio-metadata/stable.svg?label=Docs%20%28Stable%29)](https://audio-metadata.readthedocs.io/en/stable/) +[![Docs - Latest](https://img.shields.io/readthedocs/audio-metadata/latest.svg?label=Docs%20%28Latest%29)](https://audio-metadata.readthedocs.io/en/latest/) + +[audio-metadata](https://github.com/thebigmunch/audio-metadata) is a library for reading and, in the future, writing audio metadata. + +### Why another audio metadata library? / Why not just use mutagen et al? + +Clean and understandable code, nice API, and good UX (user experience) are the focal points of audio-metadata. +One or more of these things I feel are lacking from already existing alternatives +enough to want to write something from scratch with them in mind. +Also, there are certain features not present in other solutions that would be prohibitively painful to add. + + +### So, why should I use it? + +Features and functionality that set it apart: + +* Uses the Python standard load(s)/dump(s) API. + * Can load filepaths, os.PathLike objects, file-like objects, and bytes-like objects. +* Metadata objects look like a dict **and** act like a dict. + * Some common libraries shadow the representation of a dict + and/or dict methods but do not behave like a dict. + * Supports attribute-style access that can be mixed with dict key-subscription. +* All metadata objects have user-friendly representations. + * This includes *humanized* representations of certain values + like filesize, bitrate, duration, and sample rate. + +``` +>>> import audio_metadata + +>>> metadata = audio_metadata.load('05 - Heart of Hearts.flac') + +>>> metadata +, + 'streaminfo': , + 'tags': , +})> + +>>> metadata['streaminfo'] + + +>>> metadata.streaminfo.bitrate +1022134.0362995076 + +>>> metadata.streaminfo['duration'] +362.9066666666667 + +>>> metadata['streaminfo'].sample_rate +44100 +``` + + +## Installation + +``pip install -U audio-metadata`` + + +## Usage + +For the release version, see the [stable docs](https://audio-metadata.readthedocs.io/en/stable/). +For the development version, see the [latest docs](https://audio-metadata.readthedocs.io/en/latest/). + +The high-level API and basic usage are covered, but more advanced features/functionality need documentation. + + +## TODO + +If you're willing to [contribute](https://github.com/thebigmunch/audio-metadata/blob/master/.github/CONTRIBUTING.md) +your time to work on [audio-metadata](https://github.com/thebigmunch/audio-metadata/), you can: + +* Post in the [Development](https://forum.thebigmunch.me/c/dev/) category on the [Discourse forum](https://forum.thebigmunch.me/). +* Browse and comment on [issues](https://github.com/thebigmunch/audio-metadata/issues) or [pull requests](https://github.com/thebigmunch/audio-metadata/pulls). +* [Open an issue](https://github.com/thebigmunch/audio-metadata/issues/new) with a bug report or feature request. +* See current [projects](https://github.com/thebigmunch/audio-metadata/projects). +* Contact me by email at mail@thebigmunch.me. + + +## Appreciation + +Showing appreciation is always welcome. + +#### Thank + +[![Say Thanks](https://img.shields.io/badge/thank-thebigmunch-blue.svg?style=flat-square)](https://saythanks.io/to/thebigmunch) + +Get your own thanks inbox at [SayThanks.io](https://saythanks.io/). + +#### Contribute + +[Contribute](https://github.com/thebigmunch/audio-metadata/blob/master/.github/CONTRIBUTING.md) by submitting bug reports, feature requests, or code. + +#### Help Others/Stay Informed + +[Discourse forum](https://forum.thebigmunch.me/) + +#### Referrals/Donations + +[![Digital Ocean](https://img.shields.io/badge/Digital_Ocean-referral-orange.svg?style=flat-square)](https://bit.ly/DigitalOcean-tbm-referral) [![Namecheap](https://img.shields.io/badge/Namecheap-referral-orange.svg?style=flat-square)](http://bit.ly/Namecheap-tbm-referral) [![PayPal](https://img.shields.io/badge/PayPal-donate-brightgreen.svg?style=flat-square)](https://bit.ly/PayPal-thebigmunch) + + +%package help +Summary: Development documents and examples for audio-metadata +Provides: python3-audio-metadata-doc +%description help +# audio-metadata + +[![PyPI](https://img.shields.io/pypi/v/audio-metadata.svg?label=PyPI)](https://pypi.org/project/audio-metadata/) +![](https://img.shields.io/badge/Python-3.6%2B-blue.svg) +[![GitHub CI](https://img.shields.io/github/workflow/status/thebigmunch/audio-metadata/CI?label=GitHub%20CI)](https://github.com/thebigmunch/audio-metadata/actions?query=workflow%3ACI) +[![Codecov](https://img.shields.io/codecov/c/github/thebigmunch/audio-metadata.svg?label=Codecov)](https://codecov.io/gh/thebigmunch/audio-metadata) +[![Docs - Stable](https://img.shields.io/readthedocs/audio-metadata/stable.svg?label=Docs%20%28Stable%29)](https://audio-metadata.readthedocs.io/en/stable/) +[![Docs - Latest](https://img.shields.io/readthedocs/audio-metadata/latest.svg?label=Docs%20%28Latest%29)](https://audio-metadata.readthedocs.io/en/latest/) + +[audio-metadata](https://github.com/thebigmunch/audio-metadata) is a library for reading and, in the future, writing audio metadata. + +### Why another audio metadata library? / Why not just use mutagen et al? + +Clean and understandable code, nice API, and good UX (user experience) are the focal points of audio-metadata. +One or more of these things I feel are lacking from already existing alternatives +enough to want to write something from scratch with them in mind. +Also, there are certain features not present in other solutions that would be prohibitively painful to add. + + +### So, why should I use it? + +Features and functionality that set it apart: + +* Uses the Python standard load(s)/dump(s) API. + * Can load filepaths, os.PathLike objects, file-like objects, and bytes-like objects. +* Metadata objects look like a dict **and** act like a dict. + * Some common libraries shadow the representation of a dict + and/or dict methods but do not behave like a dict. + * Supports attribute-style access that can be mixed with dict key-subscription. +* All metadata objects have user-friendly representations. + * This includes *humanized* representations of certain values + like filesize, bitrate, duration, and sample rate. + +``` +>>> import audio_metadata + +>>> metadata = audio_metadata.load('05 - Heart of Hearts.flac') + +>>> metadata +, + 'streaminfo': , + 'tags': , +})> + +>>> metadata['streaminfo'] + + +>>> metadata.streaminfo.bitrate +1022134.0362995076 + +>>> metadata.streaminfo['duration'] +362.9066666666667 + +>>> metadata['streaminfo'].sample_rate +44100 +``` + + +## Installation + +``pip install -U audio-metadata`` + + +## Usage + +For the release version, see the [stable docs](https://audio-metadata.readthedocs.io/en/stable/). +For the development version, see the [latest docs](https://audio-metadata.readthedocs.io/en/latest/). + +The high-level API and basic usage are covered, but more advanced features/functionality need documentation. + + +## TODO + +If you're willing to [contribute](https://github.com/thebigmunch/audio-metadata/blob/master/.github/CONTRIBUTING.md) +your time to work on [audio-metadata](https://github.com/thebigmunch/audio-metadata/), you can: + +* Post in the [Development](https://forum.thebigmunch.me/c/dev/) category on the [Discourse forum](https://forum.thebigmunch.me/). +* Browse and comment on [issues](https://github.com/thebigmunch/audio-metadata/issues) or [pull requests](https://github.com/thebigmunch/audio-metadata/pulls). +* [Open an issue](https://github.com/thebigmunch/audio-metadata/issues/new) with a bug report or feature request. +* See current [projects](https://github.com/thebigmunch/audio-metadata/projects). +* Contact me by email at mail@thebigmunch.me. + + +## Appreciation + +Showing appreciation is always welcome. + +#### Thank + +[![Say Thanks](https://img.shields.io/badge/thank-thebigmunch-blue.svg?style=flat-square)](https://saythanks.io/to/thebigmunch) + +Get your own thanks inbox at [SayThanks.io](https://saythanks.io/). + +#### Contribute + +[Contribute](https://github.com/thebigmunch/audio-metadata/blob/master/.github/CONTRIBUTING.md) by submitting bug reports, feature requests, or code. + +#### Help Others/Stay Informed + +[Discourse forum](https://forum.thebigmunch.me/) + +#### Referrals/Donations + +[![Digital Ocean](https://img.shields.io/badge/Digital_Ocean-referral-orange.svg?style=flat-square)](https://bit.ly/DigitalOcean-tbm-referral) [![Namecheap](https://img.shields.io/badge/Namecheap-referral-orange.svg?style=flat-square)](http://bit.ly/Namecheap-tbm-referral) [![PayPal](https://img.shields.io/badge/PayPal-donate-brightgreen.svg?style=flat-square)](https://bit.ly/PayPal-thebigmunch) + + +%prep +%autosetup -n audio-metadata-0.11.1 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-audio-metadata -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot - 0.11.1-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..d6166af --- /dev/null +++ b/sources @@ -0,0 +1 @@ +912a3534889f9389ed273ce5ac378f5f audio-metadata-0.11.1.tar.gz -- cgit v1.2.3