Skip to content

Commit

Permalink
remove api package + adjust imports (#108)
Browse files Browse the repository at this point in the history
* remove api package + adjust imports

* revert remote object to response 1

* revert remote object to response 2

* revert remote object to response 3

* fix failing test
  • Loading branch information
geo-martino authored Jul 4, 2024
1 parent cf63742 commit b697c6d
Show file tree
Hide file tree
Showing 91 changed files with 303 additions and 3,494 deletions.
6 changes: 3 additions & 3 deletions README.template.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
[![Documentation](https://img.shields.io/badge/Documentation-red.svg)](https://{program_owner_user}.github.io/{program_name_lower}/)
</br>
[![PyPI Downloads](https://img.shields.io/pypi/dm/{program_name_lower}?label=Downloads)](https://pypi.org/project/{program_name_lower}/)
[![Code Size](https://img.shields.io/github/languages/code-size/{program_owner_user}/{program_name_lower}?label=Code%20Size)](https://github.com/geo-martino/musify)
[![Code Size](https://img.shields.io/github/languages/code-size/{program_owner_user}/{program_name_lower}?label=Code%20Size)](https://github.com/geo-martino/{program_name_lower})
[![Contributors](https://img.shields.io/github/contributors/{program_owner_user}/{program_name_lower}?logo=github&label=Contributors)](https://github.com/{program_owner_user}/{program_name_lower}/graphs/contributors)
[![License](https://img.shields.io/github/license/{program_owner_user}/{program_name_lower}?label=License)](https://github.com/geo-martino/musify/blob/master/LICENSE)
[![License](https://img.shields.io/github/license/{program_owner_user}/{program_name_lower}?label=License)](https://github.com/geo-martino/{program_name_lower}/blob/master/LICENSE)
</br>
[![GitHub - Validate](https://github.com/geo-martino/musify/actions/workflows/validate.yml/badge.svg?branch=master)](https://github.com/{program_owner_user}/{program_name_lower}/actions/workflows/validate.yml)
[![GitHub - Validate](https://github.com/geo-martino/{program_name_lower}/actions/workflows/validate.yml/badge.svg?branch=master)](https://github.com/{program_owner_user}/{program_name_lower}/actions/workflows/validate.yml)
[![GitHub - Deployment](https://github.com/{program_owner_user}/{program_name_lower}/actions/workflows/deploy.yml/badge.svg?event=release)](https://github.com/{program_owner_user}/{program_name_lower}/actions/workflows/deploy.yml)
[![GitHub - Documentation](https://github.com/{program_owner_user}/{program_name_lower}/actions/workflows/docs_publish.yml/badge.svg)](https://github.com/{program_owner_user}/{program_name_lower}/actions/workflows/docs_publish.yml)

Expand Down
2 changes: 1 addition & 1 deletion docs/_howto/scripts/remote.new-music/p4.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from p3 import *

from musify.libraries.remote.core.enum import RemoteObjectType
from musify.libraries.remote.core.types import RemoteObjectType
from musify.libraries.remote.core.object import RemoteAlbum


Expand Down
4 changes: 3 additions & 1 deletion docs/_howto/scripts/spotify.library.backup-restore/p2.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import Any

from p1 import *

import asyncio
Expand All @@ -8,7 +10,7 @@
backup = json.load(file)


async def restore_remote_library(library: RemoteLibrary, backup) -> None:
async def restore_remote_library(library: RemoteLibrary, backup: dict[str, Any]) -> None:
"""Restore the playlists in a remote ``library`` from the given ``backup``"""
async with library:
await library.restore_playlists(backup["playlists"])
Expand Down
6 changes: 3 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ What's in this documentation
:maxdepth: 1
:caption: 📖 Reference

musify.api
musify.core
musify.file
musify.libraries
musify.log
musify.processors
musify.base
musify.exception
musify.field
musify.logger
musify.printer
musify.report
musify.types
musify.utils
Expand Down
11 changes: 11 additions & 0 deletions docs/release-history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ Changed
* :py:class:`.RemoteCollectionLoader` now inherits from :py:class:`.MusifyItem` interface.
The class already implemented all necessary methods for this interface and was always designed
to be an implementation of the :py:class:`.MusifyItem` interface.
* Rename ``print`` method on :py:class:`.MusifyLogger` to :py:meth:`.MusifyLogger.print_line`

Removed
-------
* Implementation of REST API handling including all cache + authorisation implementations.
Separated this off to a `new package <https://github.com/geo-martino/aiorequestful>`_.
* Moved all enum definitions to ``types`` modules and removed all ``enum`` modules.

Documentation
-------------
* Fix references to non-existent packages + add missing packages in API reference index


1.0.2
Expand Down
3 changes: 0 additions & 3 deletions musify/api/__init__.py

This file was deleted.

15 changes: 0 additions & 15 deletions musify/api/_utils.py

This file was deleted.

Loading

0 comments on commit b697c6d

Please sign in to comment.