mycelium-ai 0.5.0__py3-none-any.whl
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.
- mycelium/__init__.py +0 -0
- mycelium/api/__init__.py +0 -0
- mycelium/api/app.py +1147 -0
- mycelium/api/client_app.py +170 -0
- mycelium/api/generated_sources/__init__.py +0 -0
- mycelium/api/generated_sources/server_schemas/__init__.py +97 -0
- mycelium/api/generated_sources/server_schemas/api/__init__.py +5 -0
- mycelium/api/generated_sources/server_schemas/api/default_api.py +2473 -0
- mycelium/api/generated_sources/server_schemas/api_client.py +766 -0
- mycelium/api/generated_sources/server_schemas/api_response.py +25 -0
- mycelium/api/generated_sources/server_schemas/configuration.py +434 -0
- mycelium/api/generated_sources/server_schemas/exceptions.py +166 -0
- mycelium/api/generated_sources/server_schemas/models/__init__.py +41 -0
- mycelium/api/generated_sources/server_schemas/models/api_section.py +71 -0
- mycelium/api/generated_sources/server_schemas/models/chroma_section.py +69 -0
- mycelium/api/generated_sources/server_schemas/models/clap_section.py +75 -0
- mycelium/api/generated_sources/server_schemas/models/compute_on_server200_response.py +79 -0
- mycelium/api/generated_sources/server_schemas/models/compute_on_server_request.py +67 -0
- mycelium/api/generated_sources/server_schemas/models/compute_text_search_request.py +69 -0
- mycelium/api/generated_sources/server_schemas/models/config_request.py +81 -0
- mycelium/api/generated_sources/server_schemas/models/config_response.py +107 -0
- mycelium/api/generated_sources/server_schemas/models/create_playlist_request.py +71 -0
- mycelium/api/generated_sources/server_schemas/models/get_similar_by_track200_response.py +143 -0
- mycelium/api/generated_sources/server_schemas/models/library_stats_response.py +77 -0
- mycelium/api/generated_sources/server_schemas/models/logging_section.py +67 -0
- mycelium/api/generated_sources/server_schemas/models/media_server_section.py +67 -0
- mycelium/api/generated_sources/server_schemas/models/playlist_response.py +73 -0
- mycelium/api/generated_sources/server_schemas/models/plex_section.py +71 -0
- mycelium/api/generated_sources/server_schemas/models/processing_response.py +90 -0
- mycelium/api/generated_sources/server_schemas/models/save_config_response.py +73 -0
- mycelium/api/generated_sources/server_schemas/models/scan_library_response.py +75 -0
- mycelium/api/generated_sources/server_schemas/models/search_result_response.py +75 -0
- mycelium/api/generated_sources/server_schemas/models/server_section.py +67 -0
- mycelium/api/generated_sources/server_schemas/models/stop_processing_response.py +71 -0
- mycelium/api/generated_sources/server_schemas/models/task_status_response.py +87 -0
- mycelium/api/generated_sources/server_schemas/models/track_database_stats.py +75 -0
- mycelium/api/generated_sources/server_schemas/models/track_response.py +77 -0
- mycelium/api/generated_sources/server_schemas/models/tracks_list_response.py +81 -0
- mycelium/api/generated_sources/server_schemas/rest.py +329 -0
- mycelium/api/generated_sources/server_schemas/test/__init__.py +0 -0
- mycelium/api/generated_sources/server_schemas/test/test_api_section.py +57 -0
- mycelium/api/generated_sources/server_schemas/test/test_chroma_section.py +55 -0
- mycelium/api/generated_sources/server_schemas/test/test_clap_section.py +60 -0
- mycelium/api/generated_sources/server_schemas/test/test_compute_on_server200_response.py +52 -0
- mycelium/api/generated_sources/server_schemas/test/test_compute_on_server_request.py +53 -0
- mycelium/api/generated_sources/server_schemas/test/test_compute_text_search_request.py +54 -0
- mycelium/api/generated_sources/server_schemas/test/test_config_request.py +66 -0
- mycelium/api/generated_sources/server_schemas/test/test_config_response.py +97 -0
- mycelium/api/generated_sources/server_schemas/test/test_create_playlist_request.py +60 -0
- mycelium/api/generated_sources/server_schemas/test/test_default_api.py +150 -0
- mycelium/api/generated_sources/server_schemas/test/test_get_similar_by_track200_response.py +61 -0
- mycelium/api/generated_sources/server_schemas/test/test_library_stats_response.py +63 -0
- mycelium/api/generated_sources/server_schemas/test/test_logging_section.py +53 -0
- mycelium/api/generated_sources/server_schemas/test/test_media_server_section.py +53 -0
- mycelium/api/generated_sources/server_schemas/test/test_playlist_response.py +58 -0
- mycelium/api/generated_sources/server_schemas/test/test_plex_section.py +56 -0
- mycelium/api/generated_sources/server_schemas/test/test_processing_response.py +61 -0
- mycelium/api/generated_sources/server_schemas/test/test_save_config_response.py +58 -0
- mycelium/api/generated_sources/server_schemas/test/test_scan_library_response.py +61 -0
- mycelium/api/generated_sources/server_schemas/test/test_search_result_response.py +69 -0
- mycelium/api/generated_sources/server_schemas/test/test_server_section.py +53 -0
- mycelium/api/generated_sources/server_schemas/test/test_stop_processing_response.py +55 -0
- mycelium/api/generated_sources/server_schemas/test/test_task_status_response.py +71 -0
- mycelium/api/generated_sources/server_schemas/test/test_track_database_stats.py +60 -0
- mycelium/api/generated_sources/server_schemas/test/test_track_response.py +63 -0
- mycelium/api/generated_sources/server_schemas/test/test_tracks_list_response.py +75 -0
- mycelium/api/generated_sources/worker_schemas/__init__.py +61 -0
- mycelium/api/generated_sources/worker_schemas/api/__init__.py +5 -0
- mycelium/api/generated_sources/worker_schemas/api/default_api.py +318 -0
- mycelium/api/generated_sources/worker_schemas/api_client.py +766 -0
- mycelium/api/generated_sources/worker_schemas/api_response.py +25 -0
- mycelium/api/generated_sources/worker_schemas/configuration.py +434 -0
- mycelium/api/generated_sources/worker_schemas/exceptions.py +166 -0
- mycelium/api/generated_sources/worker_schemas/models/__init__.py +23 -0
- mycelium/api/generated_sources/worker_schemas/models/save_config_response.py +73 -0
- mycelium/api/generated_sources/worker_schemas/models/worker_clap_section.py +75 -0
- mycelium/api/generated_sources/worker_schemas/models/worker_client_api_section.py +69 -0
- mycelium/api/generated_sources/worker_schemas/models/worker_client_section.py +79 -0
- mycelium/api/generated_sources/worker_schemas/models/worker_config_request.py +73 -0
- mycelium/api/generated_sources/worker_schemas/models/worker_config_response.py +89 -0
- mycelium/api/generated_sources/worker_schemas/models/worker_logging_section.py +67 -0
- mycelium/api/generated_sources/worker_schemas/rest.py +329 -0
- mycelium/api/generated_sources/worker_schemas/test/__init__.py +0 -0
- mycelium/api/generated_sources/worker_schemas/test/test_default_api.py +45 -0
- mycelium/api/generated_sources/worker_schemas/test/test_save_config_response.py +58 -0
- mycelium/api/generated_sources/worker_schemas/test/test_worker_clap_section.py +60 -0
- mycelium/api/generated_sources/worker_schemas/test/test_worker_client_api_section.py +55 -0
- mycelium/api/generated_sources/worker_schemas/test/test_worker_client_section.py +65 -0
- mycelium/api/generated_sources/worker_schemas/test/test_worker_config_request.py +59 -0
- mycelium/api/generated_sources/worker_schemas/test/test_worker_config_response.py +89 -0
- mycelium/api/generated_sources/worker_schemas/test/test_worker_logging_section.py +53 -0
- mycelium/api/worker_models.py +99 -0
- mycelium/application/__init__.py +11 -0
- mycelium/application/job_queue.py +323 -0
- mycelium/application/library_management_use_cases.py +292 -0
- mycelium/application/search_use_cases.py +96 -0
- mycelium/application/services.py +340 -0
- mycelium/client.py +554 -0
- mycelium/client_config.py +251 -0
- mycelium/client_frontend_dist/404.html +1 -0
- mycelium/client_frontend_dist/_next/static/a4iyRdfsvkjdyMAK9cE9Y/_buildManifest.js +1 -0
- mycelium/client_frontend_dist/_next/static/a4iyRdfsvkjdyMAK9cE9Y/_ssgManifest.js +1 -0
- mycelium/client_frontend_dist/_next/static/chunks/4bd1b696-cf72ae8a39fa05aa.js +1 -0
- mycelium/client_frontend_dist/_next/static/chunks/964-830f77d7ce1c2463.js +1 -0
- mycelium/client_frontend_dist/_next/static/chunks/app/_not-found/page-d25eede5a9099bd3.js +1 -0
- mycelium/client_frontend_dist/_next/static/chunks/app/layout-9b3d32f96dfe13b6.js +1 -0
- mycelium/client_frontend_dist/_next/static/chunks/app/page-cc6bad295789134e.js +1 -0
- mycelium/client_frontend_dist/_next/static/chunks/framework-7c95b8e5103c9e90.js +1 -0
- mycelium/client_frontend_dist/_next/static/chunks/main-6b37be50736577a2.js +1 -0
- mycelium/client_frontend_dist/_next/static/chunks/main-app-4153d115599d3126.js +1 -0
- mycelium/client_frontend_dist/_next/static/chunks/pages/_app-0a0020ddd67f79cf.js +1 -0
- mycelium/client_frontend_dist/_next/static/chunks/pages/_error-03529f2c21436739.js +1 -0
- mycelium/client_frontend_dist/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- mycelium/client_frontend_dist/_next/static/chunks/webpack-c81e624915b2ea70.js +1 -0
- mycelium/client_frontend_dist/_next/static/css/1eb7f0e2c78e0734.css +1 -0
- mycelium/client_frontend_dist/favicon.ico +0 -0
- mycelium/client_frontend_dist/file.svg +1 -0
- mycelium/client_frontend_dist/globe.svg +1 -0
- mycelium/client_frontend_dist/index.html +1 -0
- mycelium/client_frontend_dist/index.txt +20 -0
- mycelium/client_frontend_dist/next.svg +1 -0
- mycelium/client_frontend_dist/vercel.svg +1 -0
- mycelium/client_frontend_dist/window.svg +1 -0
- mycelium/config.py +346 -0
- mycelium/domain/__init__.py +13 -0
- mycelium/domain/models.py +71 -0
- mycelium/domain/repositories.py +98 -0
- mycelium/domain/worker.py +77 -0
- mycelium/frontend_dist/404.html +1 -0
- mycelium/frontend_dist/_next/static/chunks/4bd1b696-cf72ae8a39fa05aa.js +1 -0
- mycelium/frontend_dist/_next/static/chunks/964-830f77d7ce1c2463.js +1 -0
- mycelium/frontend_dist/_next/static/chunks/app/_not-found/page-d25eede5a9099bd3.js +1 -0
- mycelium/frontend_dist/_next/static/chunks/app/layout-9b3d32f96dfe13b6.js +1 -0
- mycelium/frontend_dist/_next/static/chunks/app/page-a761463485e0540b.js +1 -0
- mycelium/frontend_dist/_next/static/chunks/framework-7c95b8e5103c9e90.js +1 -0
- mycelium/frontend_dist/_next/static/chunks/main-6b37be50736577a2.js +1 -0
- mycelium/frontend_dist/_next/static/chunks/main-app-4153d115599d3126.js +1 -0
- mycelium/frontend_dist/_next/static/chunks/pages/_app-0a0020ddd67f79cf.js +1 -0
- mycelium/frontend_dist/_next/static/chunks/pages/_error-03529f2c21436739.js +1 -0
- mycelium/frontend_dist/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- mycelium/frontend_dist/_next/static/chunks/webpack-c81e624915b2ea70.js +1 -0
- mycelium/frontend_dist/_next/static/css/1eb7f0e2c78e0734.css +1 -0
- mycelium/frontend_dist/_next/static/glVJ0yJSL0zWN7anTTG3_/_buildManifest.js +1 -0
- mycelium/frontend_dist/_next/static/glVJ0yJSL0zWN7anTTG3_/_ssgManifest.js +1 -0
- mycelium/frontend_dist/favicon.ico +0 -0
- mycelium/frontend_dist/file.svg +1 -0
- mycelium/frontend_dist/globe.svg +1 -0
- mycelium/frontend_dist/index.html +10 -0
- mycelium/frontend_dist/index.txt +20 -0
- mycelium/frontend_dist/next.svg +1 -0
- mycelium/frontend_dist/vercel.svg +1 -0
- mycelium/frontend_dist/window.svg +1 -0
- mycelium/infrastructure/__init__.py +17 -0
- mycelium/infrastructure/chroma_adapter.py +232 -0
- mycelium/infrastructure/clap_adapter.py +280 -0
- mycelium/infrastructure/plex_adapter.py +145 -0
- mycelium/infrastructure/track_database.py +467 -0
- mycelium/main.py +183 -0
- mycelium_ai-0.5.0.dist-info/METADATA +312 -0
- mycelium_ai-0.5.0.dist-info/RECORD +164 -0
- mycelium_ai-0.5.0.dist-info/WHEEL +5 -0
- mycelium_ai-0.5.0.dist-info/entry_points.txt +2 -0
- mycelium_ai-0.5.0.dist-info/licenses/LICENSE +21 -0
- mycelium_ai-0.5.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,56 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Mycelium API
|
5
|
+
|
6
|
+
Plex music collection and recommendation system using CLAP embeddings
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
import datetime
|
17
|
+
|
18
|
+
from mycelium.api.generated_sources.server_schemas.models.plex_section import PlexSection # noqa: E501
|
19
|
+
|
20
|
+
class TestPlexSection(unittest.TestCase):
|
21
|
+
"""PlexSection unit test stubs"""
|
22
|
+
|
23
|
+
def setUp(self):
|
24
|
+
pass
|
25
|
+
|
26
|
+
def tearDown(self):
|
27
|
+
pass
|
28
|
+
|
29
|
+
def make_instance(self, include_optional) -> PlexSection:
|
30
|
+
"""Test PlexSection
|
31
|
+
include_option is a boolean, when False only required
|
32
|
+
params are included, when True both required and
|
33
|
+
optional params are included """
|
34
|
+
# uncomment below to create an instance of `PlexSection`
|
35
|
+
"""
|
36
|
+
model = PlexSection() # noqa: E501
|
37
|
+
if include_optional:
|
38
|
+
return PlexSection(
|
39
|
+
url = '',
|
40
|
+
token = '',
|
41
|
+
music_library_name = ''
|
42
|
+
)
|
43
|
+
else:
|
44
|
+
return PlexSection(
|
45
|
+
url = '',
|
46
|
+
music_library_name = '',
|
47
|
+
)
|
48
|
+
"""
|
49
|
+
|
50
|
+
def testPlexSection(self):
|
51
|
+
"""Test PlexSection"""
|
52
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
53
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
54
|
+
|
55
|
+
if __name__ == '__main__':
|
56
|
+
unittest.main()
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Mycelium API
|
5
|
+
|
6
|
+
Plex music collection and recommendation system using CLAP embeddings
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
import datetime
|
17
|
+
|
18
|
+
from mycelium.api.generated_sources.server_schemas.models.processing_response import ProcessingResponse # noqa: E501
|
19
|
+
|
20
|
+
class TestProcessingResponse(unittest.TestCase):
|
21
|
+
"""ProcessingResponse unit test stubs"""
|
22
|
+
|
23
|
+
def setUp(self):
|
24
|
+
pass
|
25
|
+
|
26
|
+
def tearDown(self):
|
27
|
+
pass
|
28
|
+
|
29
|
+
def make_instance(self, include_optional) -> ProcessingResponse:
|
30
|
+
"""Test ProcessingResponse
|
31
|
+
include_option is a boolean, when False only required
|
32
|
+
params are included, when True both required and
|
33
|
+
optional params are included """
|
34
|
+
# uncomment below to create an instance of `ProcessingResponse`
|
35
|
+
"""
|
36
|
+
model = ProcessingResponse() # noqa: E501
|
37
|
+
if include_optional:
|
38
|
+
return ProcessingResponse(
|
39
|
+
status = 'processing',
|
40
|
+
message = '',
|
41
|
+
task_id = '',
|
42
|
+
track_id = '',
|
43
|
+
query = '',
|
44
|
+
filename = '',
|
45
|
+
active_workers = 56,
|
46
|
+
tasks_created = 56,
|
47
|
+
confirmation_required = True
|
48
|
+
)
|
49
|
+
else:
|
50
|
+
return ProcessingResponse(
|
51
|
+
status = 'processing',
|
52
|
+
)
|
53
|
+
"""
|
54
|
+
|
55
|
+
def testProcessingResponse(self):
|
56
|
+
"""Test ProcessingResponse"""
|
57
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
58
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
59
|
+
|
60
|
+
if __name__ == '__main__':
|
61
|
+
unittest.main()
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Mycelium API
|
5
|
+
|
6
|
+
Plex music collection and recommendation system using CLAP embeddings
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
import datetime
|
17
|
+
|
18
|
+
from mycelium.api.generated_sources.server_schemas.models.save_config_response import SaveConfigResponse # noqa: E501
|
19
|
+
|
20
|
+
class TestSaveConfigResponse(unittest.TestCase):
|
21
|
+
"""SaveConfigResponse unit test stubs"""
|
22
|
+
|
23
|
+
def setUp(self):
|
24
|
+
pass
|
25
|
+
|
26
|
+
def tearDown(self):
|
27
|
+
pass
|
28
|
+
|
29
|
+
def make_instance(self, include_optional) -> SaveConfigResponse:
|
30
|
+
"""Test SaveConfigResponse
|
31
|
+
include_option is a boolean, when False only required
|
32
|
+
params are included, when True both required and
|
33
|
+
optional params are included """
|
34
|
+
# uncomment below to create an instance of `SaveConfigResponse`
|
35
|
+
"""
|
36
|
+
model = SaveConfigResponse() # noqa: E501
|
37
|
+
if include_optional:
|
38
|
+
return SaveConfigResponse(
|
39
|
+
message = '',
|
40
|
+
status = '',
|
41
|
+
reloaded = True,
|
42
|
+
reload_error = ''
|
43
|
+
)
|
44
|
+
else:
|
45
|
+
return SaveConfigResponse(
|
46
|
+
message = '',
|
47
|
+
status = '',
|
48
|
+
reloaded = True,
|
49
|
+
)
|
50
|
+
"""
|
51
|
+
|
52
|
+
def testSaveConfigResponse(self):
|
53
|
+
"""Test SaveConfigResponse"""
|
54
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
55
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
56
|
+
|
57
|
+
if __name__ == '__main__':
|
58
|
+
unittest.main()
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Mycelium API
|
5
|
+
|
6
|
+
Plex music collection and recommendation system using CLAP embeddings
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
import datetime
|
17
|
+
|
18
|
+
from mycelium.api.generated_sources.server_schemas.models.scan_library_response import ScanLibraryResponse # noqa: E501
|
19
|
+
|
20
|
+
class TestScanLibraryResponse(unittest.TestCase):
|
21
|
+
"""ScanLibraryResponse unit test stubs"""
|
22
|
+
|
23
|
+
def setUp(self):
|
24
|
+
pass
|
25
|
+
|
26
|
+
def tearDown(self):
|
27
|
+
pass
|
28
|
+
|
29
|
+
def make_instance(self, include_optional) -> ScanLibraryResponse:
|
30
|
+
"""Test ScanLibraryResponse
|
31
|
+
include_option is a boolean, when False only required
|
32
|
+
params are included, when True both required and
|
33
|
+
optional params are included """
|
34
|
+
# uncomment below to create an instance of `ScanLibraryResponse`
|
35
|
+
"""
|
36
|
+
model = ScanLibraryResponse() # noqa: E501
|
37
|
+
if include_optional:
|
38
|
+
return ScanLibraryResponse(
|
39
|
+
message = '',
|
40
|
+
total_tracks = 56,
|
41
|
+
new_tracks = 56,
|
42
|
+
updated_tracks = 56,
|
43
|
+
scan_timestamp = ''
|
44
|
+
)
|
45
|
+
else:
|
46
|
+
return ScanLibraryResponse(
|
47
|
+
message = '',
|
48
|
+
total_tracks = 56,
|
49
|
+
new_tracks = 56,
|
50
|
+
updated_tracks = 56,
|
51
|
+
scan_timestamp = '',
|
52
|
+
)
|
53
|
+
"""
|
54
|
+
|
55
|
+
def testScanLibraryResponse(self):
|
56
|
+
"""Test ScanLibraryResponse"""
|
57
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
58
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
59
|
+
|
60
|
+
if __name__ == '__main__':
|
61
|
+
unittest.main()
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Mycelium API
|
5
|
+
|
6
|
+
Plex music collection and recommendation system using CLAP embeddings
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
import datetime
|
17
|
+
|
18
|
+
from mycelium.api.generated_sources.server_schemas.models.search_result_response import SearchResultResponse # noqa: E501
|
19
|
+
|
20
|
+
class TestSearchResultResponse(unittest.TestCase):
|
21
|
+
"""SearchResultResponse unit test stubs"""
|
22
|
+
|
23
|
+
def setUp(self):
|
24
|
+
pass
|
25
|
+
|
26
|
+
def tearDown(self):
|
27
|
+
pass
|
28
|
+
|
29
|
+
def make_instance(self, include_optional) -> SearchResultResponse:
|
30
|
+
"""Test SearchResultResponse
|
31
|
+
include_option is a boolean, when False only required
|
32
|
+
params are included, when True both required and
|
33
|
+
optional params are included """
|
34
|
+
# uncomment below to create an instance of `SearchResultResponse`
|
35
|
+
"""
|
36
|
+
model = SearchResultResponse() # noqa: E501
|
37
|
+
if include_optional:
|
38
|
+
return SearchResultResponse(
|
39
|
+
track = mycelium.api.generated_sources.server_schemas.models.track_response.TrackResponse(
|
40
|
+
artist = '',
|
41
|
+
album = '',
|
42
|
+
title = '',
|
43
|
+
filepath = '',
|
44
|
+
media_server_rating_key = '',
|
45
|
+
media_server_type = '', ),
|
46
|
+
similarity_score = 1.337,
|
47
|
+
distance = 1.337
|
48
|
+
)
|
49
|
+
else:
|
50
|
+
return SearchResultResponse(
|
51
|
+
track = mycelium.api.generated_sources.server_schemas.models.track_response.TrackResponse(
|
52
|
+
artist = '',
|
53
|
+
album = '',
|
54
|
+
title = '',
|
55
|
+
filepath = '',
|
56
|
+
media_server_rating_key = '',
|
57
|
+
media_server_type = '', ),
|
58
|
+
similarity_score = 1.337,
|
59
|
+
distance = 1.337,
|
60
|
+
)
|
61
|
+
"""
|
62
|
+
|
63
|
+
def testSearchResultResponse(self):
|
64
|
+
"""Test SearchResultResponse"""
|
65
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
66
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
67
|
+
|
68
|
+
if __name__ == '__main__':
|
69
|
+
unittest.main()
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Mycelium API
|
5
|
+
|
6
|
+
Plex music collection and recommendation system using CLAP embeddings
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
import datetime
|
17
|
+
|
18
|
+
from mycelium.api.generated_sources.server_schemas.models.server_section import ServerSection # noqa: E501
|
19
|
+
|
20
|
+
class TestServerSection(unittest.TestCase):
|
21
|
+
"""ServerSection unit test stubs"""
|
22
|
+
|
23
|
+
def setUp(self):
|
24
|
+
pass
|
25
|
+
|
26
|
+
def tearDown(self):
|
27
|
+
pass
|
28
|
+
|
29
|
+
def make_instance(self, include_optional) -> ServerSection:
|
30
|
+
"""Test ServerSection
|
31
|
+
include_option is a boolean, when False only required
|
32
|
+
params are included, when True both required and
|
33
|
+
optional params are included """
|
34
|
+
# uncomment below to create an instance of `ServerSection`
|
35
|
+
"""
|
36
|
+
model = ServerSection() # noqa: E501
|
37
|
+
if include_optional:
|
38
|
+
return ServerSection(
|
39
|
+
gpu_batch_size = 56
|
40
|
+
)
|
41
|
+
else:
|
42
|
+
return ServerSection(
|
43
|
+
gpu_batch_size = 56,
|
44
|
+
)
|
45
|
+
"""
|
46
|
+
|
47
|
+
def testServerSection(self):
|
48
|
+
"""Test ServerSection"""
|
49
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
50
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
51
|
+
|
52
|
+
if __name__ == '__main__':
|
53
|
+
unittest.main()
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Mycelium API
|
5
|
+
|
6
|
+
Plex music collection and recommendation system using CLAP embeddings
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
import datetime
|
17
|
+
|
18
|
+
from mycelium.api.generated_sources.server_schemas.models.stop_processing_response import StopProcessingResponse # noqa: E501
|
19
|
+
|
20
|
+
class TestStopProcessingResponse(unittest.TestCase):
|
21
|
+
"""StopProcessingResponse unit test stubs"""
|
22
|
+
|
23
|
+
def setUp(self):
|
24
|
+
pass
|
25
|
+
|
26
|
+
def tearDown(self):
|
27
|
+
pass
|
28
|
+
|
29
|
+
def make_instance(self, include_optional) -> StopProcessingResponse:
|
30
|
+
"""Test StopProcessingResponse
|
31
|
+
include_option is a boolean, when False only required
|
32
|
+
params are included, when True both required and
|
33
|
+
optional params are included """
|
34
|
+
# uncomment below to create an instance of `StopProcessingResponse`
|
35
|
+
"""
|
36
|
+
model = StopProcessingResponse() # noqa: E501
|
37
|
+
if include_optional:
|
38
|
+
return StopProcessingResponse(
|
39
|
+
message = '',
|
40
|
+
type = '',
|
41
|
+
cleared_tasks = 56
|
42
|
+
)
|
43
|
+
else:
|
44
|
+
return StopProcessingResponse(
|
45
|
+
message = '',
|
46
|
+
)
|
47
|
+
"""
|
48
|
+
|
49
|
+
def testStopProcessingResponse(self):
|
50
|
+
"""Test StopProcessingResponse"""
|
51
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
52
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
53
|
+
|
54
|
+
if __name__ == '__main__':
|
55
|
+
unittest.main()
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Mycelium API
|
5
|
+
|
6
|
+
Plex music collection and recommendation system using CLAP embeddings
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
import datetime
|
17
|
+
|
18
|
+
from mycelium.api.generated_sources.server_schemas.models.task_status_response import TaskStatusResponse # noqa: E501
|
19
|
+
|
20
|
+
class TestTaskStatusResponse(unittest.TestCase):
|
21
|
+
"""TaskStatusResponse unit test stubs"""
|
22
|
+
|
23
|
+
def setUp(self):
|
24
|
+
pass
|
25
|
+
|
26
|
+
def tearDown(self):
|
27
|
+
pass
|
28
|
+
|
29
|
+
def make_instance(self, include_optional) -> TaskStatusResponse:
|
30
|
+
"""Test TaskStatusResponse
|
31
|
+
include_option is a boolean, when False only required
|
32
|
+
params are included, when True both required and
|
33
|
+
optional params are included """
|
34
|
+
# uncomment below to create an instance of `TaskStatusResponse`
|
35
|
+
"""
|
36
|
+
model = TaskStatusResponse() # noqa: E501
|
37
|
+
if include_optional:
|
38
|
+
return TaskStatusResponse(
|
39
|
+
task_id = '',
|
40
|
+
status = '',
|
41
|
+
track_id = '',
|
42
|
+
started_at = '',
|
43
|
+
completed_at = '',
|
44
|
+
error_message = '',
|
45
|
+
search_results = [
|
46
|
+
mycelium.api.generated_sources.server_schemas.models.search_result_response.SearchResultResponse(
|
47
|
+
track = mycelium.api.generated_sources.server_schemas.models.track_response.TrackResponse(
|
48
|
+
artist = '',
|
49
|
+
album = '',
|
50
|
+
title = '',
|
51
|
+
filepath = '',
|
52
|
+
media_server_rating_key = '',
|
53
|
+
media_server_type = '', ),
|
54
|
+
similarity_score = 1.337,
|
55
|
+
distance = 1.337, )
|
56
|
+
]
|
57
|
+
)
|
58
|
+
else:
|
59
|
+
return TaskStatusResponse(
|
60
|
+
task_id = '',
|
61
|
+
status = '',
|
62
|
+
)
|
63
|
+
"""
|
64
|
+
|
65
|
+
def testTaskStatusResponse(self):
|
66
|
+
"""Test TaskStatusResponse"""
|
67
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
68
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
69
|
+
|
70
|
+
if __name__ == '__main__':
|
71
|
+
unittest.main()
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Mycelium API
|
5
|
+
|
6
|
+
Plex music collection and recommendation system using CLAP embeddings
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
import datetime
|
17
|
+
|
18
|
+
from mycelium.api.generated_sources.server_schemas.models.track_database_stats import TrackDatabaseStats # noqa: E501
|
19
|
+
|
20
|
+
class TestTrackDatabaseStats(unittest.TestCase):
|
21
|
+
"""TrackDatabaseStats unit test stubs"""
|
22
|
+
|
23
|
+
def setUp(self):
|
24
|
+
pass
|
25
|
+
|
26
|
+
def tearDown(self):
|
27
|
+
pass
|
28
|
+
|
29
|
+
def make_instance(self, include_optional) -> TrackDatabaseStats:
|
30
|
+
"""Test TrackDatabaseStats
|
31
|
+
include_option is a boolean, when False only required
|
32
|
+
params are included, when True both required and
|
33
|
+
optional params are included """
|
34
|
+
# uncomment below to create an instance of `TrackDatabaseStats`
|
35
|
+
"""
|
36
|
+
model = TrackDatabaseStats() # noqa: E501
|
37
|
+
if include_optional:
|
38
|
+
return TrackDatabaseStats(
|
39
|
+
total_tracks = 56,
|
40
|
+
processed_tracks = 56,
|
41
|
+
unprocessed_tracks = 56,
|
42
|
+
progress_percentage = 1.337,
|
43
|
+
is_processing = True
|
44
|
+
)
|
45
|
+
else:
|
46
|
+
return TrackDatabaseStats(
|
47
|
+
total_tracks = 56,
|
48
|
+
processed_tracks = 56,
|
49
|
+
unprocessed_tracks = 56,
|
50
|
+
progress_percentage = 1.337,
|
51
|
+
)
|
52
|
+
"""
|
53
|
+
|
54
|
+
def testTrackDatabaseStats(self):
|
55
|
+
"""Test TrackDatabaseStats"""
|
56
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
57
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
58
|
+
|
59
|
+
if __name__ == '__main__':
|
60
|
+
unittest.main()
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Mycelium API
|
5
|
+
|
6
|
+
Plex music collection and recommendation system using CLAP embeddings
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
import datetime
|
17
|
+
|
18
|
+
from mycelium.api.generated_sources.server_schemas.models.track_response import TrackResponse # noqa: E501
|
19
|
+
|
20
|
+
class TestTrackResponse(unittest.TestCase):
|
21
|
+
"""TrackResponse unit test stubs"""
|
22
|
+
|
23
|
+
def setUp(self):
|
24
|
+
pass
|
25
|
+
|
26
|
+
def tearDown(self):
|
27
|
+
pass
|
28
|
+
|
29
|
+
def make_instance(self, include_optional) -> TrackResponse:
|
30
|
+
"""Test TrackResponse
|
31
|
+
include_option is a boolean, when False only required
|
32
|
+
params are included, when True both required and
|
33
|
+
optional params are included """
|
34
|
+
# uncomment below to create an instance of `TrackResponse`
|
35
|
+
"""
|
36
|
+
model = TrackResponse() # noqa: E501
|
37
|
+
if include_optional:
|
38
|
+
return TrackResponse(
|
39
|
+
artist = '',
|
40
|
+
album = '',
|
41
|
+
title = '',
|
42
|
+
filepath = '',
|
43
|
+
media_server_rating_key = '',
|
44
|
+
media_server_type = ''
|
45
|
+
)
|
46
|
+
else:
|
47
|
+
return TrackResponse(
|
48
|
+
artist = '',
|
49
|
+
album = '',
|
50
|
+
title = '',
|
51
|
+
filepath = '',
|
52
|
+
media_server_rating_key = '',
|
53
|
+
media_server_type = '',
|
54
|
+
)
|
55
|
+
"""
|
56
|
+
|
57
|
+
def testTrackResponse(self):
|
58
|
+
"""Test TrackResponse"""
|
59
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
60
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
61
|
+
|
62
|
+
if __name__ == '__main__':
|
63
|
+
unittest.main()
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Mycelium API
|
5
|
+
|
6
|
+
Plex music collection and recommendation system using CLAP embeddings
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
import datetime
|
17
|
+
|
18
|
+
from mycelium.api.generated_sources.server_schemas.models.tracks_list_response import TracksListResponse # noqa: E501
|
19
|
+
|
20
|
+
class TestTracksListResponse(unittest.TestCase):
|
21
|
+
"""TracksListResponse unit test stubs"""
|
22
|
+
|
23
|
+
def setUp(self):
|
24
|
+
pass
|
25
|
+
|
26
|
+
def tearDown(self):
|
27
|
+
pass
|
28
|
+
|
29
|
+
def make_instance(self, include_optional) -> TracksListResponse:
|
30
|
+
"""Test TracksListResponse
|
31
|
+
include_option is a boolean, when False only required
|
32
|
+
params are included, when True both required and
|
33
|
+
optional params are included """
|
34
|
+
# uncomment below to create an instance of `TracksListResponse`
|
35
|
+
"""
|
36
|
+
model = TracksListResponse() # noqa: E501
|
37
|
+
if include_optional:
|
38
|
+
return TracksListResponse(
|
39
|
+
tracks = [
|
40
|
+
mycelium.api.generated_sources.server_schemas.models.track_response.TrackResponse(
|
41
|
+
artist = '',
|
42
|
+
album = '',
|
43
|
+
title = '',
|
44
|
+
filepath = '',
|
45
|
+
media_server_rating_key = '',
|
46
|
+
media_server_type = '', )
|
47
|
+
],
|
48
|
+
total_count = 56,
|
49
|
+
page = 56,
|
50
|
+
limit = 56
|
51
|
+
)
|
52
|
+
else:
|
53
|
+
return TracksListResponse(
|
54
|
+
tracks = [
|
55
|
+
mycelium.api.generated_sources.server_schemas.models.track_response.TrackResponse(
|
56
|
+
artist = '',
|
57
|
+
album = '',
|
58
|
+
title = '',
|
59
|
+
filepath = '',
|
60
|
+
media_server_rating_key = '',
|
61
|
+
media_server_type = '', )
|
62
|
+
],
|
63
|
+
total_count = 56,
|
64
|
+
page = 56,
|
65
|
+
limit = 56,
|
66
|
+
)
|
67
|
+
"""
|
68
|
+
|
69
|
+
def testTracksListResponse(self):
|
70
|
+
"""Test TracksListResponse"""
|
71
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
72
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
73
|
+
|
74
|
+
if __name__ == '__main__':
|
75
|
+
unittest.main()
|