diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-23 12:44:50 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-23 12:44:50 +0000 |
| commit | 12119b12905b9d98c0c4767dc74c703725f3c641 (patch) | |
| tree | 116e6c84644bd955d60ed70541322d1de17615fd | |
| parent | 73bf6f54cc39bf77eb42d7dba2c411bc0d1c1c60 (diff) | |
automatic import of python-librespotopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-librespot.spec | 746 | ||||
| -rw-r--r-- | sources | 2 |
3 files changed, 375 insertions, 374 deletions
@@ -1 +1,2 @@ /librespot-0.0.7.tar.gz +/librespot-0.0.8.tar.gz diff --git a/python-librespot.spec b/python-librespot.spec index 8abd455..ecbdf73 100644 --- a/python-librespot.spec +++ b/python-librespot.spec @@ -1,11 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-librespot -Version: 0.0.7 +Version: 0.0.8 Release: 1 Summary: Open Source Spotify Client License: Apache-2.0 URL: https://github.com/kokarare1212/librespot-python -Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6c/c9/26a87a96891d88265c5fd979c7efa5468c5828d82b192e2d4a0e7a3f3a3f/librespot-0.0.7.tar.gz +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d3/e6/a8b5e153f4787d22674872fb798c73f15cc2d1f15f917f851045ca5f7c93/librespot-0.0.8.tar.gz BuildArch: noarch Requires: python3-defusedxml @@ -17,129 +17,129 @@ Requires: python3-websocket-client Requires: python3-zeroconf %description - - - -[](https://deepsource.io/gh/kokarare1212/librespot-python/?ref=repository-badge) - -# Librespot-Python - -Open Source Spotify Client - -## About The Project - -This project was developed to make the music streaming service Spotify available -on any device. - -## Attention! - -This repository has been completely rewritten from the transplant.<br> -There may be some functions that are not implemented yet.<br> -If so, please feel free to open an issue.<br> - -## Note - -It is still in the idea stage, so there is a possibility of unintended behavior -or major specification changes.<br> -We **DO NOT** encourage piracy and **DO NOT** support any form of downloader/recorder designed with the help of this repository and in general anything that goes against the Spotify ToS.<br> -For other guidelines, please see [CODE_OF_CONDUCT.md](https://github.com/kokarare1212/librespot-python/blob/main/CODE_OF_CONDUCT.md).<br> - -## Getting Started - -### Prerequisites - -- [Python](https://python.org/) - -### Installation - -Stable Version - -```commandline -pip install librespot -``` - -Snapshot Version \***Recommended** - -```commandline -pip install git+https://github.com/kokarare1212/librespot-python -``` - -## Usage - -### Use Zeroconf for Login - -```python -from librespot.zeroconf import ZeroconfServer - -zeroconf = ZeroconfServer.Builder().create() -``` - -### Get Spotify's OAuth token - -```python -from librespot.core import Session - - -session = Session.Builder() \ - .user_pass("Username", "Password") \ - .create() - -access_token = session.tokens().get("playlist-read") -``` - -### Get Music Stream - -*Currently, music streaming is supported, but it may cause unintended behavior.<br> - -```python -from librespot.core import Session -from librespot.metadata import TrackId -from librespot.audio.decoders import AudioQuality, VorbisOnlyAudioQuality - -session = Session.Builder() \ - .user_pass("Username", "Password") \ - .create() - -track_id = TrackId.from_uri("spotify:track:xxxxxxxxxxxxxxxxxxxxxx") -stream = session.content_feeder().load(track_id, VorbisOnlyAudioQuality(AudioQuality.VERY_HIGH), False, None) -# stream.input_stream.stream().read() to get one byte of the music stream. -``` - -Other uses are -[examples](https://github.com/kokarare1212/librespot-python/tree/main/examples) -or read [this document](https://librespot-python.rtfd.io) for detailed -specifications. - -## Debug - -To display the debug information, you need to inject the following code at the -top of the code. - -```python -import logging - - -logging.basicConfig(level=logging.DEBUG) -``` - -## Contributing - -Pull requests are welcome. - -## License - -Distributed under the Apache-2.0 License. See -[LICENSE.txt](https://github.com/kokarare1212/librespot-python/blob/main/LICENSE.txt) -for more information. - -## Related Projects - -- [Librespot](https://github.com/librespot-org/librespot) (Concept) -- [Librespot-Java](https://github.com/librespot-org/librespot-java) (Core) - -## Special thanks - -<a href="https://www.jetbrains.com/"><img src="https://github.com/kokarare1212/librespot-python/blob/main/img/jetbrains.png?raw=true" width="100" height="100" alt="JetBrains"></a> +
+
+
+[](https://deepsource.io/gh/kokarare1212/librespot-python/?ref=repository-badge)
+
+# Librespot-Python
+
+Open Source Spotify Client
+
+## About The Project
+
+This project was developed to make the music streaming service Spotify available
+on any device.
+
+## Attention!
+
+This repository has been completely rewritten from the transplant.<br>
+There may be some functions that are not implemented yet.<br>
+If so, please feel free to open an issue.<br>
+
+## Note
+
+It is still in the idea stage, so there is a possibility of unintended behavior
+or major specification changes.<br>
+We **DO NOT** encourage piracy and **DO NOT** support any form of downloader/recorder designed with the help of this repository and in general anything that goes against the Spotify ToS.<br>
+For other guidelines, please see [CODE_OF_CONDUCT.md](https://github.com/kokarare1212/librespot-python/blob/main/CODE_OF_CONDUCT.md).<br>
+
+## Getting Started
+
+### Prerequisites
+
+- [Python](https://python.org/)
+
+### Installation
+
+Stable Version
+
+```commandline
+pip install librespot
+```
+
+Snapshot Version \***Recommended**
+
+```commandline
+pip install git+https://github.com/kokarare1212/librespot-python
+```
+
+## Usage
+
+### Use Zeroconf for Login
+
+```python
+from librespot.zeroconf import ZeroconfServer
+
+zeroconf = ZeroconfServer.Builder().create()
+```
+
+### Get Spotify's OAuth token
+
+```python
+from librespot.core import Session
+
+
+session = Session.Builder() \
+ .user_pass("Username", "Password") \
+ .create()
+
+access_token = session.tokens().get("playlist-read")
+```
+
+### Get Music Stream
+
+*Currently, music streaming is supported, but it may cause unintended behavior.<br>
+
+```python
+from librespot.core import Session
+from librespot.metadata import TrackId
+from librespot.audio.decoders import AudioQuality, VorbisOnlyAudioQuality
+
+session = Session.Builder() \
+ .user_pass("Username", "Password") \
+ .create()
+
+track_id = TrackId.from_uri("spotify:track:xxxxxxxxxxxxxxxxxxxxxx")
+stream = session.content_feeder().load(track_id, VorbisOnlyAudioQuality(AudioQuality.VERY_HIGH), False, None)
+# stream.input_stream.stream().read() to get one byte of the music stream.
+```
+
+Other uses are
+[examples](https://github.com/kokarare1212/librespot-python/tree/main/examples)
+or read [this document](https://librespot-python.rtfd.io) for detailed
+specifications.
+
+## Debug
+
+To display the debug information, you need to inject the following code at the
+top of the code.
+
+```python
+import logging
+
+
+logging.basicConfig(level=logging.DEBUG)
+```
+
+## Contributing
+
+Pull requests are welcome.
+
+## License
+
+Distributed under the Apache-2.0 License. See
+[LICENSE.txt](https://github.com/kokarare1212/librespot-python/blob/main/LICENSE.txt)
+for more information.
+
+## Related Projects
+
+- [Librespot](https://github.com/librespot-org/librespot) (Concept)
+- [Librespot-Java](https://github.com/librespot-org/librespot-java) (Core)
+
+## Special thanks
+
+<a href="https://www.jetbrains.com/"><img src="https://github.com/kokarare1212/librespot-python/blob/main/img/jetbrains.png?raw=true" width="100" height="100" alt="JetBrains"></a>
%package -n python3-librespot @@ -149,262 +149,262 @@ BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-librespot - - - -[](https://deepsource.io/gh/kokarare1212/librespot-python/?ref=repository-badge) - -# Librespot-Python - -Open Source Spotify Client - -## About The Project - -This project was developed to make the music streaming service Spotify available -on any device. - -## Attention! - -This repository has been completely rewritten from the transplant.<br> -There may be some functions that are not implemented yet.<br> -If so, please feel free to open an issue.<br> - -## Note - -It is still in the idea stage, so there is a possibility of unintended behavior -or major specification changes.<br> -We **DO NOT** encourage piracy and **DO NOT** support any form of downloader/recorder designed with the help of this repository and in general anything that goes against the Spotify ToS.<br> -For other guidelines, please see [CODE_OF_CONDUCT.md](https://github.com/kokarare1212/librespot-python/blob/main/CODE_OF_CONDUCT.md).<br> - -## Getting Started - -### Prerequisites - -- [Python](https://python.org/) - -### Installation - -Stable Version - -```commandline -pip install librespot -``` - -Snapshot Version \***Recommended** - -```commandline -pip install git+https://github.com/kokarare1212/librespot-python -``` - -## Usage - -### Use Zeroconf for Login - -```python -from librespot.zeroconf import ZeroconfServer - -zeroconf = ZeroconfServer.Builder().create() -``` - -### Get Spotify's OAuth token - -```python -from librespot.core import Session - - -session = Session.Builder() \ - .user_pass("Username", "Password") \ - .create() - -access_token = session.tokens().get("playlist-read") -``` - -### Get Music Stream - -*Currently, music streaming is supported, but it may cause unintended behavior.<br> - -```python -from librespot.core import Session -from librespot.metadata import TrackId -from librespot.audio.decoders import AudioQuality, VorbisOnlyAudioQuality - -session = Session.Builder() \ - .user_pass("Username", "Password") \ - .create() - -track_id = TrackId.from_uri("spotify:track:xxxxxxxxxxxxxxxxxxxxxx") -stream = session.content_feeder().load(track_id, VorbisOnlyAudioQuality(AudioQuality.VERY_HIGH), False, None) -# stream.input_stream.stream().read() to get one byte of the music stream. -``` - -Other uses are -[examples](https://github.com/kokarare1212/librespot-python/tree/main/examples) -or read [this document](https://librespot-python.rtfd.io) for detailed -specifications. - -## Debug - -To display the debug information, you need to inject the following code at the -top of the code. - -```python -import logging - - -logging.basicConfig(level=logging.DEBUG) -``` - -## Contributing - -Pull requests are welcome. - -## License - -Distributed under the Apache-2.0 License. See -[LICENSE.txt](https://github.com/kokarare1212/librespot-python/blob/main/LICENSE.txt) -for more information. - -## Related Projects - -- [Librespot](https://github.com/librespot-org/librespot) (Concept) -- [Librespot-Java](https://github.com/librespot-org/librespot-java) (Core) - -## Special thanks - -<a href="https://www.jetbrains.com/"><img src="https://github.com/kokarare1212/librespot-python/blob/main/img/jetbrains.png?raw=true" width="100" height="100" alt="JetBrains"></a> +
+
+
+[](https://deepsource.io/gh/kokarare1212/librespot-python/?ref=repository-badge)
+
+# Librespot-Python
+
+Open Source Spotify Client
+
+## About The Project
+
+This project was developed to make the music streaming service Spotify available
+on any device.
+
+## Attention!
+
+This repository has been completely rewritten from the transplant.<br>
+There may be some functions that are not implemented yet.<br>
+If so, please feel free to open an issue.<br>
+
+## Note
+
+It is still in the idea stage, so there is a possibility of unintended behavior
+or major specification changes.<br>
+We **DO NOT** encourage piracy and **DO NOT** support any form of downloader/recorder designed with the help of this repository and in general anything that goes against the Spotify ToS.<br>
+For other guidelines, please see [CODE_OF_CONDUCT.md](https://github.com/kokarare1212/librespot-python/blob/main/CODE_OF_CONDUCT.md).<br>
+
+## Getting Started
+
+### Prerequisites
+
+- [Python](https://python.org/)
+
+### Installation
+
+Stable Version
+
+```commandline
+pip install librespot
+```
+
+Snapshot Version \***Recommended**
+
+```commandline
+pip install git+https://github.com/kokarare1212/librespot-python
+```
+
+## Usage
+
+### Use Zeroconf for Login
+
+```python
+from librespot.zeroconf import ZeroconfServer
+
+zeroconf = ZeroconfServer.Builder().create()
+```
+
+### Get Spotify's OAuth token
+
+```python
+from librespot.core import Session
+
+
+session = Session.Builder() \
+ .user_pass("Username", "Password") \
+ .create()
+
+access_token = session.tokens().get("playlist-read")
+```
+
+### Get Music Stream
+
+*Currently, music streaming is supported, but it may cause unintended behavior.<br>
+
+```python
+from librespot.core import Session
+from librespot.metadata import TrackId
+from librespot.audio.decoders import AudioQuality, VorbisOnlyAudioQuality
+
+session = Session.Builder() \
+ .user_pass("Username", "Password") \
+ .create()
+
+track_id = TrackId.from_uri("spotify:track:xxxxxxxxxxxxxxxxxxxxxx")
+stream = session.content_feeder().load(track_id, VorbisOnlyAudioQuality(AudioQuality.VERY_HIGH), False, None)
+# stream.input_stream.stream().read() to get one byte of the music stream.
+```
+
+Other uses are
+[examples](https://github.com/kokarare1212/librespot-python/tree/main/examples)
+or read [this document](https://librespot-python.rtfd.io) for detailed
+specifications.
+
+## Debug
+
+To display the debug information, you need to inject the following code at the
+top of the code.
+
+```python
+import logging
+
+
+logging.basicConfig(level=logging.DEBUG)
+```
+
+## Contributing
+
+Pull requests are welcome.
+
+## License
+
+Distributed under the Apache-2.0 License. See
+[LICENSE.txt](https://github.com/kokarare1212/librespot-python/blob/main/LICENSE.txt)
+for more information.
+
+## Related Projects
+
+- [Librespot](https://github.com/librespot-org/librespot) (Concept)
+- [Librespot-Java](https://github.com/librespot-org/librespot-java) (Core)
+
+## Special thanks
+
+<a href="https://www.jetbrains.com/"><img src="https://github.com/kokarare1212/librespot-python/blob/main/img/jetbrains.png?raw=true" width="100" height="100" alt="JetBrains"></a>
%package help Summary: Development documents and examples for librespot Provides: python3-librespot-doc %description help - - - -[](https://deepsource.io/gh/kokarare1212/librespot-python/?ref=repository-badge) - -# Librespot-Python - -Open Source Spotify Client - -## About The Project - -This project was developed to make the music streaming service Spotify available -on any device. - -## Attention! - -This repository has been completely rewritten from the transplant.<br> -There may be some functions that are not implemented yet.<br> -If so, please feel free to open an issue.<br> - -## Note - -It is still in the idea stage, so there is a possibility of unintended behavior -or major specification changes.<br> -We **DO NOT** encourage piracy and **DO NOT** support any form of downloader/recorder designed with the help of this repository and in general anything that goes against the Spotify ToS.<br> -For other guidelines, please see [CODE_OF_CONDUCT.md](https://github.com/kokarare1212/librespot-python/blob/main/CODE_OF_CONDUCT.md).<br> - -## Getting Started - -### Prerequisites - -- [Python](https://python.org/) - -### Installation - -Stable Version - -```commandline -pip install librespot -``` - -Snapshot Version \***Recommended** - -```commandline -pip install git+https://github.com/kokarare1212/librespot-python -``` - -## Usage - -### Use Zeroconf for Login - -```python -from librespot.zeroconf import ZeroconfServer - -zeroconf = ZeroconfServer.Builder().create() -``` - -### Get Spotify's OAuth token - -```python -from librespot.core import Session - - -session = Session.Builder() \ - .user_pass("Username", "Password") \ - .create() - -access_token = session.tokens().get("playlist-read") -``` - -### Get Music Stream - -*Currently, music streaming is supported, but it may cause unintended behavior.<br> - -```python -from librespot.core import Session -from librespot.metadata import TrackId -from librespot.audio.decoders import AudioQuality, VorbisOnlyAudioQuality - -session = Session.Builder() \ - .user_pass("Username", "Password") \ - .create() - -track_id = TrackId.from_uri("spotify:track:xxxxxxxxxxxxxxxxxxxxxx") -stream = session.content_feeder().load(track_id, VorbisOnlyAudioQuality(AudioQuality.VERY_HIGH), False, None) -# stream.input_stream.stream().read() to get one byte of the music stream. -``` - -Other uses are -[examples](https://github.com/kokarare1212/librespot-python/tree/main/examples) -or read [this document](https://librespot-python.rtfd.io) for detailed -specifications. - -## Debug - -To display the debug information, you need to inject the following code at the -top of the code. - -```python -import logging - - -logging.basicConfig(level=logging.DEBUG) -``` - -## Contributing - -Pull requests are welcome. - -## License - -Distributed under the Apache-2.0 License. See -[LICENSE.txt](https://github.com/kokarare1212/librespot-python/blob/main/LICENSE.txt) -for more information. - -## Related Projects - -- [Librespot](https://github.com/librespot-org/librespot) (Concept) -- [Librespot-Java](https://github.com/librespot-org/librespot-java) (Core) - -## Special thanks - -<a href="https://www.jetbrains.com/"><img src="https://github.com/kokarare1212/librespot-python/blob/main/img/jetbrains.png?raw=true" width="100" height="100" alt="JetBrains"></a> +
+
+
+[](https://deepsource.io/gh/kokarare1212/librespot-python/?ref=repository-badge)
+
+# Librespot-Python
+
+Open Source Spotify Client
+
+## About The Project
+
+This project was developed to make the music streaming service Spotify available
+on any device.
+
+## Attention!
+
+This repository has been completely rewritten from the transplant.<br>
+There may be some functions that are not implemented yet.<br>
+If so, please feel free to open an issue.<br>
+
+## Note
+
+It is still in the idea stage, so there is a possibility of unintended behavior
+or major specification changes.<br>
+We **DO NOT** encourage piracy and **DO NOT** support any form of downloader/recorder designed with the help of this repository and in general anything that goes against the Spotify ToS.<br>
+For other guidelines, please see [CODE_OF_CONDUCT.md](https://github.com/kokarare1212/librespot-python/blob/main/CODE_OF_CONDUCT.md).<br>
+
+## Getting Started
+
+### Prerequisites
+
+- [Python](https://python.org/)
+
+### Installation
+
+Stable Version
+
+```commandline
+pip install librespot
+```
+
+Snapshot Version \***Recommended**
+
+```commandline
+pip install git+https://github.com/kokarare1212/librespot-python
+```
+
+## Usage
+
+### Use Zeroconf for Login
+
+```python
+from librespot.zeroconf import ZeroconfServer
+
+zeroconf = ZeroconfServer.Builder().create()
+```
+
+### Get Spotify's OAuth token
+
+```python
+from librespot.core import Session
+
+
+session = Session.Builder() \
+ .user_pass("Username", "Password") \
+ .create()
+
+access_token = session.tokens().get("playlist-read")
+```
+
+### Get Music Stream
+
+*Currently, music streaming is supported, but it may cause unintended behavior.<br>
+
+```python
+from librespot.core import Session
+from librespot.metadata import TrackId
+from librespot.audio.decoders import AudioQuality, VorbisOnlyAudioQuality
+
+session = Session.Builder() \
+ .user_pass("Username", "Password") \
+ .create()
+
+track_id = TrackId.from_uri("spotify:track:xxxxxxxxxxxxxxxxxxxxxx")
+stream = session.content_feeder().load(track_id, VorbisOnlyAudioQuality(AudioQuality.VERY_HIGH), False, None)
+# stream.input_stream.stream().read() to get one byte of the music stream.
+```
+
+Other uses are
+[examples](https://github.com/kokarare1212/librespot-python/tree/main/examples)
+or read [this document](https://librespot-python.rtfd.io) for detailed
+specifications.
+
+## Debug
+
+To display the debug information, you need to inject the following code at the
+top of the code.
+
+```python
+import logging
+
+
+logging.basicConfig(level=logging.DEBUG)
+```
+
+## Contributing
+
+Pull requests are welcome.
+
+## License
+
+Distributed under the Apache-2.0 License. See
+[LICENSE.txt](https://github.com/kokarare1212/librespot-python/blob/main/LICENSE.txt)
+for more information.
+
+## Related Projects
+
+- [Librespot](https://github.com/librespot-org/librespot) (Concept)
+- [Librespot-Java](https://github.com/librespot-org/librespot-java) (Core)
+
+## Special thanks
+
+<a href="https://www.jetbrains.com/"><img src="https://github.com/kokarare1212/librespot-python/blob/main/img/jetbrains.png?raw=true" width="100" height="100" alt="JetBrains"></a>
%prep -%autosetup -n librespot-0.0.7 +%autosetup -n librespot-0.0.8 %build %py3_build @@ -444,5 +444,5 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog -* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.7-1 +* Sun Apr 23 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.8-1 - Package Spec generated @@ -1 +1 @@ -f5efee30cfb4ad386d8c00378b16a270 librespot-0.0.7.tar.gz +91af6418f12906f062c889689634d067 librespot-0.0.8.tar.gz |
