### Install Python Project Release and Build Dependencies Source: https://github.com/fabian-thomas/python-odesli/blob/master/DEV.md Installs essential Python packages required for building, packaging, and uploading distributions to PyPI. It also includes `pylint` for static code analysis, which is often used during release preparation. ```bash pip install build twine pylint ``` -------------------------------- ### Install Python Unit Test Framework Dependency Source: https://github.com/fabian-thomas/python-odesli/blob/master/DEV.md Installs the `unittest` module. While `unittest` is typically included with standard Python installations, this command ensures its availability, especially in isolated environments or for specific versions. ```bash pip install unittest ``` -------------------------------- ### Build Python Source and Wheel Distribution Packages Source: https://github.com/fabian-thomas/python-odesli/blob/master/DEV.md Executes the standard Python `build` module to create distributable source archives and platform-specific wheel files. These packages are necessary for publishing the project to PyPI. ```bash python -m build ``` -------------------------------- ### Install python-odesli from source Source: https://github.com/fabian-thomas/python-odesli/blob/master/README.md This snippet outlines the steps to build and install python-odesli directly from its source code. It involves building the distribution package and then installing the generated wheel file. ```bash python -m build pip install dist/*.whl ``` -------------------------------- ### Install build package for source installation Source: https://github.com/fabian-thomas/python-odesli/blob/master/README.md Before installing python-odesli from source, the 'build' PyPI package is required. This snippet shows how to install it using pip. ```bash pip install build ``` -------------------------------- ### Install python-odesli via pip Source: https://github.com/fabian-thomas/python-odesli/blob/master/README.md This snippet demonstrates how to install the python-odesli library using pip, the Python package installer. This is the recommended and simplest method for installation. ```bash pip install odesli ``` -------------------------------- ### Upload Python Distribution Packages to PyPI Source: https://github.com/fabian-thomas/python-odesli/blob/master/DEV.md Uses `twine` to securely upload the generated source and wheel distribution packages to the Python Package Index. Ensure `{VERSION}` is replaced with the actual version to target specific files, or remove it to upload all in `dist/`. ```bash twine upload dist/*{VERSION}* ``` -------------------------------- ### Run Python Unit Tests with unittest Discover Source: https://github.com/fabian-thomas/python-odesli/blob/master/DEV.md Executes all unit tests found within the 'tests' directory using Python's built-in `unittest` framework. The `discover` command automatically finds test files and methods. ```bash python3 -m unittest discover -s tests ``` -------------------------------- ### Generate Python Project Class Diagram with Pyreverse Source: https://github.com/fabian-thomas/python-odesli/blob/master/DEV.md Creates a visual PNG class diagram for the specified Python module ('odesli') using `pyreverse`. This tool, part of `pylint`, helps visualize the project's object-oriented structure. ```bash pyreverse -o png odesli ``` -------------------------------- ### Convert Spotify link to Tidal and YouTube Music using python-odesli Source: https://github.com/fabian-thomas/python-odesli/blob/master/README.md This Python example demonstrates how to use the Odesli wrapper to convert a Spotify track URL into corresponding Tidal and YouTube Music links. It initializes the Odesli client, fetches data by URL, and then accesses specific platform links from the result object. ```python from odesli.Odesli import Odesli odesli = Odesli() result = odesli.getByUrl('https://open.spotify.com/track/1jJci4qxiYcOHhQR247rEU') print(result.songsByProvider['tidal'].linksByPlatform['tidal']) print(result.songsByProvider['youtube'].linksByPlatform['youtubeMusic']) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.