yutipy 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of yutipy might be problematic. Click here for more details.
- yutipy-0.1.0/.gitattributes +2 -0
- yutipy-0.1.0/.gitignore +160 -0
- yutipy-0.1.0/LICENSE +21 -0
- yutipy-0.1.0/MANIFEST.in +6 -0
- yutipy-0.1.0/PKG-INFO +119 -0
- yutipy-0.1.0/README.md +61 -0
- yutipy-0.1.0/docs/Makefile +20 -0
- yutipy-0.1.0/docs/_static/yutipy_header.png +0 -0
- yutipy-0.1.0/docs/_static/yutipy_logo.png +0 -0
- yutipy-0.1.0/docs/_templates/contents.html +2 -0
- yutipy-0.1.0/docs/_templates/project_links.html +8 -0
- yutipy-0.1.0/docs/api_reference.rst +109 -0
- yutipy-0.1.0/docs/conf.py +73 -0
- yutipy-0.1.0/docs/index.rst +15 -0
- yutipy-0.1.0/docs/installation.rst +9 -0
- yutipy-0.1.0/docs/make.bat +35 -0
- yutipy-0.1.0/docs/usage_examples.rst +74 -0
- yutipy-0.1.0/pyproject.toml +56 -0
- yutipy-0.1.0/requirements-dev.txt +2 -0
- yutipy-0.1.0/requirements.txt +4 -0
- yutipy-0.1.0/setup.cfg +4 -0
- yutipy-0.1.0/tests/__init__.py +1 -0
- yutipy-0.1.0/tests/__pycache__/__init__.cpython-312.pyc +0 -0
- yutipy-0.1.0/tests/__pycache__/test_deezer.cpython-312-pytest-8.3.4.pyc +0 -0
- yutipy-0.1.0/tests/__pycache__/test_itunes.cpython-312-pytest-8.3.4.pyc +0 -0
- yutipy-0.1.0/tests/__pycache__/test_models.cpython-312-pytest-8.3.4.pyc +0 -0
- yutipy-0.1.0/tests/__pycache__/test_musicyt.cpython-312-pytest-8.3.4.pyc +0 -0
- yutipy-0.1.0/tests/__pycache__/test_spotify.cpython-312-pytest-8.3.4.pyc +0 -0
- yutipy-0.1.0/tests/__pycache__/test_utils.cpython-312-pytest-8.3.4.pyc +0 -0
- yutipy-0.1.0/tests/test_deezer.py +47 -0
- yutipy-0.1.0/tests/test_itunes.py +49 -0
- yutipy-0.1.0/tests/test_models.py +35 -0
- yutipy-0.1.0/tests/test_musicyt.py +51 -0
- yutipy-0.1.0/tests/test_spotify.py +53 -0
- yutipy-0.1.0/tests/test_utils.py +16 -0
- yutipy-0.1.0/yutipy/__init__.py +13 -0
- yutipy-0.1.0/yutipy/__pycache__/__init__.cpython-312.pyc +0 -0
- yutipy-0.1.0/yutipy/__pycache__/deezer.cpython-312.pyc +0 -0
- yutipy-0.1.0/yutipy/__pycache__/exceptions.cpython-312.pyc +0 -0
- yutipy-0.1.0/yutipy/__pycache__/itunes.cpython-312.pyc +0 -0
- yutipy-0.1.0/yutipy/__pycache__/models.cpython-312.pyc +0 -0
- yutipy-0.1.0/yutipy/__pycache__/musicyt.cpython-312.pyc +0 -0
- yutipy-0.1.0/yutipy/__pycache__/spotify.cpython-312.pyc +0 -0
- yutipy-0.1.0/yutipy/deezer.py +277 -0
- yutipy-0.1.0/yutipy/exceptions.py +52 -0
- yutipy-0.1.0/yutipy/itunes.py +189 -0
- yutipy-0.1.0/yutipy/models.py +55 -0
- yutipy-0.1.0/yutipy/musicyt.py +247 -0
- yutipy-0.1.0/yutipy/spotify.py +413 -0
- yutipy-0.1.0/yutipy/utils/__init__.py +7 -0
- yutipy-0.1.0/yutipy/utils/__pycache__/__init__.cpython-312.pyc +0 -0
- yutipy-0.1.0/yutipy/utils/__pycache__/cheap_utils.cpython-312.pyc +0 -0
- yutipy-0.1.0/yutipy/utils/cheap_utils.py +50 -0
- yutipy-0.1.0/yutipy.egg-info/PKG-INFO +119 -0
- yutipy-0.1.0/yutipy.egg-info/SOURCES.txt +56 -0
- yutipy-0.1.0/yutipy.egg-info/dependency_links.txt +1 -0
- yutipy-0.1.0/yutipy.egg-info/requires.txt +8 -0
- yutipy-0.1.0/yutipy.egg-info/top_level.txt +1 -0
yutipy-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# poetry
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
102
|
+
#poetry.lock
|
|
103
|
+
|
|
104
|
+
# pdm
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
106
|
+
#pdm.lock
|
|
107
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
108
|
+
# in version control.
|
|
109
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
110
|
+
.pdm.toml
|
|
111
|
+
|
|
112
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
113
|
+
__pypackages__/
|
|
114
|
+
|
|
115
|
+
# Celery stuff
|
|
116
|
+
celerybeat-schedule
|
|
117
|
+
celerybeat.pid
|
|
118
|
+
|
|
119
|
+
# SageMath parsed files
|
|
120
|
+
*.sage.py
|
|
121
|
+
|
|
122
|
+
# Environments
|
|
123
|
+
.env
|
|
124
|
+
.venv
|
|
125
|
+
env/
|
|
126
|
+
venv/
|
|
127
|
+
ENV/
|
|
128
|
+
env.bak/
|
|
129
|
+
venv.bak/
|
|
130
|
+
|
|
131
|
+
# Spyder project settings
|
|
132
|
+
.spyderproject
|
|
133
|
+
.spyproject
|
|
134
|
+
|
|
135
|
+
# Rope project settings
|
|
136
|
+
.ropeproject
|
|
137
|
+
|
|
138
|
+
# mkdocs documentation
|
|
139
|
+
/site
|
|
140
|
+
|
|
141
|
+
# mypy
|
|
142
|
+
.mypy_cache/
|
|
143
|
+
.dmypy.json
|
|
144
|
+
dmypy.json
|
|
145
|
+
|
|
146
|
+
# Pyre type checker
|
|
147
|
+
.pyre/
|
|
148
|
+
|
|
149
|
+
# pytype static type analyzer
|
|
150
|
+
.pytype/
|
|
151
|
+
|
|
152
|
+
# Cython debug symbols
|
|
153
|
+
cython_debug/
|
|
154
|
+
|
|
155
|
+
# PyCharm
|
|
156
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
157
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
158
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
159
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
160
|
+
#.idea/
|
yutipy-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Cheap Nightbot
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
yutipy-0.1.0/MANIFEST.in
ADDED
yutipy-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: yutipy
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A simple package for retrieving music information from various music platforms APIs.
|
|
5
|
+
Author: Cheap Nightbot
|
|
6
|
+
Author-email: Cheap Nightbot <hi@cheapnightbot.slmail.me>
|
|
7
|
+
Maintainer-email: Cheap Nightbot <hi@cheapnightbot.slmail.me>
|
|
8
|
+
License: MIT License
|
|
9
|
+
|
|
10
|
+
Copyright (c) 2025 Cheap Nightbot
|
|
11
|
+
|
|
12
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
14
|
+
in the Software without restriction, including without limitation the rights
|
|
15
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
16
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
17
|
+
furnished to do so, subject to the following conditions:
|
|
18
|
+
|
|
19
|
+
The above copyright notice and this permission notice shall be included in all
|
|
20
|
+
copies or substantial portions of the Software.
|
|
21
|
+
|
|
22
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
24
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
26
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
28
|
+
SOFTWARE.
|
|
29
|
+
|
|
30
|
+
Project-URL: Homepage, https://github.com/CheapNightbot/yutipy
|
|
31
|
+
Project-URL: Documentation, https://yutipy.readthedocs.io/
|
|
32
|
+
Project-URL: Repository, https://github.com/CheapNightbot/yutipy.git
|
|
33
|
+
Project-URL: Issues, https://github.com/CheapNightbot/yutipy/issues
|
|
34
|
+
Project-URL: Changelog, https://github.com/CheapNightbot/yutipy/blob/master/CHANGELOG.md
|
|
35
|
+
Project-URL: funding, https://ko-fi.com/cheapnightbot
|
|
36
|
+
Keywords: music,API,Deezer,iTunes,Spotify,YouTube Music,search,retrieve,information,yutify
|
|
37
|
+
Classifier: Development Status :: 4 - Beta
|
|
38
|
+
Classifier: Intended Audience :: Developers
|
|
39
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
40
|
+
Classifier: Programming Language :: Python :: 3
|
|
41
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
42
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
43
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
44
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
45
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
46
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
47
|
+
Classifier: Operating System :: OS Independent
|
|
48
|
+
Requires-Python: >=3.8
|
|
49
|
+
Description-Content-Type: text/markdown
|
|
50
|
+
License-File: LICENSE
|
|
51
|
+
Requires-Dist: python-dotenv==1.0.1
|
|
52
|
+
Requires-Dist: rapidfuzz==3.12.1
|
|
53
|
+
Requires-Dist: requests==2.32.3
|
|
54
|
+
Requires-Dist: ytmusicapi==1.10.1
|
|
55
|
+
Provides-Extra: dev
|
|
56
|
+
Requires-Dist: pytest==8.3.4; extra == "dev"
|
|
57
|
+
Requires-Dist: Sphinx==8.2.0; extra == "dev"
|
|
58
|
+
|
|
59
|
+
<p align="center">
|
|
60
|
+
<img src="https://raw.githubusercontent.com/CheapNightbot/yutipy/main/docs/_static/yutipy_header.png" alt="yutipy" />
|
|
61
|
+
</p>
|
|
62
|
+
|
|
63
|
+
A _**simple**_ Python package for searching and retrieving music information from various music platforms APIs, including Deezer, iTunes, Spotify, and YouTube Music.
|
|
64
|
+
|
|
65
|
+
## Table of Contents
|
|
66
|
+
|
|
67
|
+
- [Features](#features)
|
|
68
|
+
- [Installation](#installation)
|
|
69
|
+
- [Usage Example](#usage-example)
|
|
70
|
+
- [Contributing](#contributing)
|
|
71
|
+
- [License](#license)
|
|
72
|
+
|
|
73
|
+
## Features
|
|
74
|
+
|
|
75
|
+
- Simple & Easy integration with popular music APIs.
|
|
76
|
+
- Search for music by artist and song title across multiple platforms.
|
|
77
|
+
- Retrieve detailed music information, including album art, release dates, ISRC, and UPC codes.
|
|
78
|
+
|
|
79
|
+
## Installation
|
|
80
|
+
|
|
81
|
+
You can install the package using pip. Make sure you have Python 3.8 or higher installed.
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
pip install -U yutipy
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Usage Example
|
|
88
|
+
|
|
89
|
+
Here's a quick example of how to use the `yutipy` package to search for a song:
|
|
90
|
+
|
|
91
|
+
### Deezer
|
|
92
|
+
|
|
93
|
+
```python
|
|
94
|
+
from yutipy.deezer import Deezer
|
|
95
|
+
|
|
96
|
+
with Deezer() as deezer:
|
|
97
|
+
result = deezer.search("Artist Name", "Song Title")
|
|
98
|
+
print(result)
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
For more usage examples, see the [docs](#).
|
|
102
|
+
|
|
103
|
+
## Contributing
|
|
104
|
+
|
|
105
|
+
Contributions are welcome! Please follow these steps:
|
|
106
|
+
|
|
107
|
+
1. Fork the repository.
|
|
108
|
+
2. Optionally, create an issue to discuss the changes you plan to make.
|
|
109
|
+
3. Create a new branch linked to that issue.
|
|
110
|
+
4. Make your changes in the new branch.
|
|
111
|
+
5. Write tests if you add new functionality.
|
|
112
|
+
6. Ensure all tests pass before opening a pull request.
|
|
113
|
+
7. Open a pull request for review.
|
|
114
|
+
|
|
115
|
+
Thank you for your contributions!
|
|
116
|
+
|
|
117
|
+
## License
|
|
118
|
+
|
|
119
|
+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
|
yutipy-0.1.0/README.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/CheapNightbot/yutipy/main/docs/_static/yutipy_header.png" alt="yutipy" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
A _**simple**_ Python package for searching and retrieving music information from various music platforms APIs, including Deezer, iTunes, Spotify, and YouTube Music.
|
|
6
|
+
|
|
7
|
+
## Table of Contents
|
|
8
|
+
|
|
9
|
+
- [Features](#features)
|
|
10
|
+
- [Installation](#installation)
|
|
11
|
+
- [Usage Example](#usage-example)
|
|
12
|
+
- [Contributing](#contributing)
|
|
13
|
+
- [License](#license)
|
|
14
|
+
|
|
15
|
+
## Features
|
|
16
|
+
|
|
17
|
+
- Simple & Easy integration with popular music APIs.
|
|
18
|
+
- Search for music by artist and song title across multiple platforms.
|
|
19
|
+
- Retrieve detailed music information, including album art, release dates, ISRC, and UPC codes.
|
|
20
|
+
|
|
21
|
+
## Installation
|
|
22
|
+
|
|
23
|
+
You can install the package using pip. Make sure you have Python 3.8 or higher installed.
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
pip install -U yutipy
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Usage Example
|
|
30
|
+
|
|
31
|
+
Here's a quick example of how to use the `yutipy` package to search for a song:
|
|
32
|
+
|
|
33
|
+
### Deezer
|
|
34
|
+
|
|
35
|
+
```python
|
|
36
|
+
from yutipy.deezer import Deezer
|
|
37
|
+
|
|
38
|
+
with Deezer() as deezer:
|
|
39
|
+
result = deezer.search("Artist Name", "Song Title")
|
|
40
|
+
print(result)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
For more usage examples, see the [docs](#).
|
|
44
|
+
|
|
45
|
+
## Contributing
|
|
46
|
+
|
|
47
|
+
Contributions are welcome! Please follow these steps:
|
|
48
|
+
|
|
49
|
+
1. Fork the repository.
|
|
50
|
+
2. Optionally, create an issue to discuss the changes you plan to make.
|
|
51
|
+
3. Create a new branch linked to that issue.
|
|
52
|
+
4. Make your changes in the new branch.
|
|
53
|
+
5. Write tests if you add new functionality.
|
|
54
|
+
6. Ensure all tests pass before opening a pull request.
|
|
55
|
+
7. Open a pull request for review.
|
|
56
|
+
|
|
57
|
+
Thank you for your contributions!
|
|
58
|
+
|
|
59
|
+
## License
|
|
60
|
+
|
|
61
|
+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Minimal makefile for Sphinx documentation
|
|
2
|
+
#
|
|
3
|
+
|
|
4
|
+
# You can set these variables from the command line, and also
|
|
5
|
+
# from the environment for the first two.
|
|
6
|
+
SPHINXOPTS ?=
|
|
7
|
+
SPHINXBUILD ?= sphinx-build
|
|
8
|
+
SOURCEDIR = .
|
|
9
|
+
BUILDDIR = _build
|
|
10
|
+
|
|
11
|
+
# Put it first so that "make" without argument is like "make help".
|
|
12
|
+
help:
|
|
13
|
+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
14
|
+
|
|
15
|
+
.PHONY: help Makefile
|
|
16
|
+
|
|
17
|
+
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
18
|
+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
19
|
+
%: Makefile
|
|
20
|
+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<div class="project-links">
|
|
2
|
+
<h3>Project Links</h3>
|
|
3
|
+
<ul>
|
|
4
|
+
<li><a href="https://github.com/CheapNightbot/yutipy">Source Code</a></li>
|
|
5
|
+
<li><a href="https://github.com/CheapNightbot/yutipy/issues">Issue Tracker</a></li>
|
|
6
|
+
<li><a href="https://pypi.org/project/yutipy">PyPI</a></li>
|
|
7
|
+
</ul>
|
|
8
|
+
</div>
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
=============
|
|
2
|
+
API Reference
|
|
3
|
+
=============
|
|
4
|
+
|
|
5
|
+
Main Classes
|
|
6
|
+
=============
|
|
7
|
+
|
|
8
|
+
Deezer
|
|
9
|
+
------
|
|
10
|
+
|
|
11
|
+
.. autoclass:: yutipy.deezer.Deezer
|
|
12
|
+
:members:
|
|
13
|
+
:inherited-members:
|
|
14
|
+
:noindex:
|
|
15
|
+
:exclude-members: is_session_closed
|
|
16
|
+
|
|
17
|
+
iTunes
|
|
18
|
+
------
|
|
19
|
+
|
|
20
|
+
.. autoclass:: yutipy.itunes.Itunes
|
|
21
|
+
:members:
|
|
22
|
+
:inherited-members:
|
|
23
|
+
:noindex:
|
|
24
|
+
:exclude-members: is_session_closed
|
|
25
|
+
|
|
26
|
+
Spotify
|
|
27
|
+
-------
|
|
28
|
+
|
|
29
|
+
.. autoclass:: yutipy.spotify.Spotipy
|
|
30
|
+
:members:
|
|
31
|
+
:inherited-members:
|
|
32
|
+
:noindex:
|
|
33
|
+
:exclude-members: is_session_closed
|
|
34
|
+
|
|
35
|
+
YouTube Music
|
|
36
|
+
-------------
|
|
37
|
+
|
|
38
|
+
.. autoclass:: yutipy.musicyt.MusicYT
|
|
39
|
+
:members:
|
|
40
|
+
:inherited-members:
|
|
41
|
+
:noindex:
|
|
42
|
+
|
|
43
|
+
Data Classes
|
|
44
|
+
=============
|
|
45
|
+
|
|
46
|
+
MusicInfo
|
|
47
|
+
---------
|
|
48
|
+
|
|
49
|
+
.. autoclass:: yutipy.models.MusicInfo
|
|
50
|
+
:members:
|
|
51
|
+
:noindex:
|
|
52
|
+
:exclude-members: album_art, album_title, album_type, artists, genre, id, isrc, lyrics, release_date, tempo, title, type, upc, url
|
|
53
|
+
|
|
54
|
+
Exceptions
|
|
55
|
+
=============
|
|
56
|
+
|
|
57
|
+
.. autoclass:: yutipy.exceptions.YutipyException
|
|
58
|
+
:members:
|
|
59
|
+
:inherited-members:
|
|
60
|
+
:noindex:
|
|
61
|
+
:exclude-members: add_note, args, with_traceback
|
|
62
|
+
|
|
63
|
+
.. autoclass:: yutipy.exceptions.InvalidValueException
|
|
64
|
+
:members:
|
|
65
|
+
:inherited-members:
|
|
66
|
+
:noindex:
|
|
67
|
+
:exclude-members: add_note, args, with_traceback
|
|
68
|
+
|
|
69
|
+
.. autoclass:: yutipy.exceptions.DeezerException
|
|
70
|
+
:members:
|
|
71
|
+
:inherited-members:
|
|
72
|
+
:noindex:
|
|
73
|
+
:exclude-members: add_note, args, with_traceback
|
|
74
|
+
|
|
75
|
+
.. autoclass:: yutipy.exceptions.ItunesException
|
|
76
|
+
:members:
|
|
77
|
+
:inherited-members:
|
|
78
|
+
:noindex:
|
|
79
|
+
:exclude-members: add_note, args, with_traceback
|
|
80
|
+
|
|
81
|
+
.. autoclass:: yutipy.exceptions.SpotifyException
|
|
82
|
+
:members:
|
|
83
|
+
:inherited-members:
|
|
84
|
+
:noindex:
|
|
85
|
+
:exclude-members: add_note, args, with_traceback
|
|
86
|
+
|
|
87
|
+
.. autoclass:: yutipy.exceptions.MusicYTException
|
|
88
|
+
:members:
|
|
89
|
+
:inherited-members:
|
|
90
|
+
:noindex:
|
|
91
|
+
:exclude-members: add_note, args, with_traceback
|
|
92
|
+
|
|
93
|
+
.. autoclass:: yutipy.exceptions.AuthenticationException
|
|
94
|
+
:members:
|
|
95
|
+
:inherited-members:
|
|
96
|
+
:noindex:
|
|
97
|
+
:exclude-members: add_note, args, with_traceback
|
|
98
|
+
|
|
99
|
+
.. autoclass:: yutipy.exceptions.NetworkException
|
|
100
|
+
:members:
|
|
101
|
+
:inherited-members:
|
|
102
|
+
:noindex:
|
|
103
|
+
:exclude-members: add_note, args, with_traceback
|
|
104
|
+
|
|
105
|
+
.. autoclass:: yutipy.exceptions.InvalidResponseException
|
|
106
|
+
:members:
|
|
107
|
+
:inherited-members:
|
|
108
|
+
:noindex:
|
|
109
|
+
:exclude-members: add_note, args, with_traceback
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Configuration file for the Sphinx documentation builder.
|
|
2
|
+
#
|
|
3
|
+
# For the full list of built-in configuration values, see the documentation:
|
|
4
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
|
5
|
+
|
|
6
|
+
import os
|
|
7
|
+
import sys
|
|
8
|
+
|
|
9
|
+
sys.path.insert(0, os.path.abspath("../.."))
|
|
10
|
+
sys.path.insert(0, os.path.abspath("../../yutipy"))
|
|
11
|
+
|
|
12
|
+
# -- Project information -----------------------------------------------------
|
|
13
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
|
14
|
+
|
|
15
|
+
project = "yutipy"
|
|
16
|
+
copyright = "%Y, Cheap Nightbot"
|
|
17
|
+
author = "Cheap Nightbot"
|
|
18
|
+
release = "0.1.0"
|
|
19
|
+
|
|
20
|
+
# -- General configuration ---------------------------------------------------
|
|
21
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
|
22
|
+
|
|
23
|
+
extensions = [
|
|
24
|
+
"sphinx.ext.autodoc",
|
|
25
|
+
"sphinx.ext.napoleon",
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
# Exclude private members and special methods
|
|
29
|
+
autodoc_default_options = {
|
|
30
|
+
"members": True,
|
|
31
|
+
"undoc-members": False,
|
|
32
|
+
"private-members": False,
|
|
33
|
+
"special-members": False,
|
|
34
|
+
"inherited-members": True,
|
|
35
|
+
"show-inheritance": True,
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
templates_path = ["_templates"]
|
|
39
|
+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
# -- Options for HTML output -------------------------------------------------
|
|
43
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
|
|
44
|
+
|
|
45
|
+
# The name of the Pygments (syntax highlighting) style to use.
|
|
46
|
+
pygments_style = "sphinx"
|
|
47
|
+
|
|
48
|
+
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
|
49
|
+
html_show_sphinx = True
|
|
50
|
+
|
|
51
|
+
# If true, links to the reST sources are added to the pages.
|
|
52
|
+
html_show_sourcelink = False
|
|
53
|
+
|
|
54
|
+
# Output file base name for HTML help builder.
|
|
55
|
+
htmlhelp_basename = "yutipydoc"
|
|
56
|
+
|
|
57
|
+
html_theme = "alabaster"
|
|
58
|
+
html_static_path = ["_static"]
|
|
59
|
+
html_logo = "_static/yutipy_logo.png"
|
|
60
|
+
html_favicon = "_static/yutipy_logo.png"
|
|
61
|
+
|
|
62
|
+
html_sidebars = {
|
|
63
|
+
"index": [
|
|
64
|
+
"project_links.html",
|
|
65
|
+
"contents.html",
|
|
66
|
+
"searchbox.html",
|
|
67
|
+
],
|
|
68
|
+
"**": [
|
|
69
|
+
"contents.html",
|
|
70
|
+
"localtoc.html",
|
|
71
|
+
"searchbox.html",
|
|
72
|
+
],
|
|
73
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.. image:: _static/yutipy_header.png
|
|
2
|
+
:alt: Welcome to yutipy's documentation!
|
|
3
|
+
:target: https://github.com/CheapNightbot/yutipy
|
|
4
|
+
|
|
5
|
+
**yutipy** is a Python package for searching and retrieving music information from various music platforms, including Deezer, iTunes, Spotify, and YouTube Music. This documentation will help you get started with yutipy and provide detailed information about its features and usage.
|
|
6
|
+
|
|
7
|
+
Get Started
|
|
8
|
+
===========
|
|
9
|
+
|
|
10
|
+
.. toctree::
|
|
11
|
+
:maxdepth: 2
|
|
12
|
+
|
|
13
|
+
installation
|
|
14
|
+
usage_examples
|
|
15
|
+
api_reference
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@ECHO OFF
|
|
2
|
+
|
|
3
|
+
pushd %~dp0
|
|
4
|
+
|
|
5
|
+
REM Command file for Sphinx documentation
|
|
6
|
+
|
|
7
|
+
if "%SPHINXBUILD%" == "" (
|
|
8
|
+
set SPHINXBUILD=sphinx-build
|
|
9
|
+
)
|
|
10
|
+
set SOURCEDIR=.
|
|
11
|
+
set BUILDDIR=_build
|
|
12
|
+
|
|
13
|
+
%SPHINXBUILD% >NUL 2>NUL
|
|
14
|
+
if errorlevel 9009 (
|
|
15
|
+
echo.
|
|
16
|
+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
|
|
17
|
+
echo.installed, then set the SPHINXBUILD environment variable to point
|
|
18
|
+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
|
|
19
|
+
echo.may add the Sphinx directory to PATH.
|
|
20
|
+
echo.
|
|
21
|
+
echo.If you don't have Sphinx installed, grab it from
|
|
22
|
+
echo.https://www.sphinx-doc.org/
|
|
23
|
+
exit /b 1
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
if "%1" == "" goto help
|
|
27
|
+
|
|
28
|
+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
|
29
|
+
goto end
|
|
30
|
+
|
|
31
|
+
:help
|
|
32
|
+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
|
33
|
+
|
|
34
|
+
:end
|
|
35
|
+
popd
|