python3-discogs-client 2.6__tar.gz → 2.7.1__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.
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/PKG-INFO +8 -1
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/__init__.py +1 -1
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/fetchers.py +1 -1
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/models.py +4 -1
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/test_models.py +3 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/utils.py +8 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/python3_discogs_client.egg-info/PKG-INFO +8 -1
- python3_discogs_client-2.7.1/python3_discogs_client.egg-info/requires.txt +8 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/setup.py +9 -2
- python3-discogs-client-2.6/python3_discogs_client.egg-info/requires.txt +0 -3
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/LICENSE +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/MANIFEST.in +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/client.py +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/exceptions.py +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/__init__.py +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/artists/1/releases_per_page=50&page=1.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/artists/1/releases_per_page=50&page=2.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/artists/1.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/artists/2.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/artists/3.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/database/search_artist=trash80&per_page=50&page=1.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/database/search_artist=trash80&title=icarus&per_page=50&page=1.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/database/search_q=trash%2080&per_page=50&page=1.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/database/search_q=trash80&per_page=50&page=1.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/labels/1.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/labels/31405.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/lists/1.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/marketplace/fee/20.5000/EUR.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/marketplace/listings/150899904.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/marketplace/stats/1.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/masters/4242/versions_per_page=50&page=1.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/masters/4242.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/oauth/identity.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/releases/1.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/releases/2.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/releases/3.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/releases/3329867.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/releases/79.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/users/example/collection/folders/0/releases_page=1&per_page=50.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/users/example/collection/folders.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/users/example/collection/value.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/users/example/inventory_per_page=50&page=1.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/users/example/wants_per_page=50&page=1.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/users/example.json +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/test_core.py +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/test_fetchers.py +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/test_utils.py +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/python3_discogs_client.egg-info/SOURCES.txt +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/python3_discogs_client.egg-info/dependency_links.txt +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/python3_discogs_client.egg-info/top_level.txt +0 -0
- {python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python3-discogs-client
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.7.1
|
|
4
4
|
Summary: Python API client for Discogs
|
|
5
5
|
Home-page: https://github.com/joalla/discogs_client
|
|
6
6
|
Author: joalla
|
|
@@ -14,5 +14,12 @@ Classifier: Programming Language :: Python
|
|
|
14
14
|
Classifier: Topic :: Communications
|
|
15
15
|
Classifier: Topic :: Utilities
|
|
16
16
|
License-File: LICENSE
|
|
17
|
+
Requires-Dist: requests
|
|
18
|
+
Requires-Dist: oauthlib
|
|
19
|
+
Requires-Dist: python-dateutil
|
|
20
|
+
Provides-Extra: docs
|
|
21
|
+
Requires-Dist: sphinx; extra == "docs"
|
|
22
|
+
Requires-Dist: pydata-sphinx-theme; extra == "docs"
|
|
23
|
+
Requires-Dist: myst-parser; extra == "docs"
|
|
17
24
|
|
|
18
25
|
This is an active fork of the official "Discogs API client for Python", which was deprecated by discogs.com as of June 2020. We think it is a very useful Python module and decided to continue maintaining it. Please visit: https://github.com/joalla/discogs_client for more information.
|
|
@@ -224,7 +224,7 @@ class OAuth2Fetcher(Fetcher):
|
|
|
224
224
|
class FilesystemFetcher(Fetcher):
|
|
225
225
|
"""Fetches from a directory of files."""
|
|
226
226
|
default_response = json.dumps({'message': 'Resource not found.'}), 404
|
|
227
|
-
path_with_params = re.compile('(?P<dir>(\w+/)+)(?P<query>\w+)\?(?P<params>.*)')
|
|
227
|
+
path_with_params = re.compile(r'(?P<dir>(\w+/)+)(?P<query>\w+)\?(?P<params>.*)')
|
|
228
228
|
|
|
229
229
|
def __init__(self, base_path):
|
|
230
230
|
self.base_path = base_path
|
|
@@ -478,7 +478,10 @@ class Artist(PrimaryAPIObject):
|
|
|
478
478
|
#: single string, for example: "DJ ABC Feat MC Z". Also check out the
|
|
479
479
|
#: ``artists_sort`` attribute of a ``Release`` object.
|
|
480
480
|
join = SimpleField()
|
|
481
|
-
|
|
481
|
+
#: This attribute is only present when an ``Artist`` object is part of a
|
|
482
|
+
#: ``credits`` list of a ``Release`` object.
|
|
483
|
+
role = SimpleField()
|
|
484
|
+
|
|
482
485
|
def __init__(self, client, dict_):
|
|
483
486
|
super(Artist, self).__init__(client, dict_)
|
|
484
487
|
self.data['resource_url'] = '{0}/artists/{1}'.format(client._base_url, dict_['id'])
|
{python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/test_models.py
RENAMED
|
@@ -9,6 +9,9 @@ class ModelsTestCase(DiscogsClientTestCase):
|
|
|
9
9
|
"""Artists can be fetched and parsed"""
|
|
10
10
|
a = self.d.artist(1)
|
|
11
11
|
self.assertEqual(a.name, 'Persuader, The')
|
|
12
|
+
a2 = self.d.release(1).credits[0]
|
|
13
|
+
self.assertEqual(a2.name, 'Jesper Dahlbäck')
|
|
14
|
+
self.assertEqual(a2.role, 'Music By [All Tracks By]')
|
|
12
15
|
|
|
13
16
|
def test_same_artist(self):
|
|
14
17
|
"""Artists can be fetched and parsed multiple times"""
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
try:
|
|
2
|
+
from enum import member
|
|
3
|
+
except ImportError:
|
|
4
|
+
def member(func):
|
|
5
|
+
return func
|
|
6
|
+
|
|
1
7
|
from datetime import datetime
|
|
2
8
|
from dateutil.parser import parse
|
|
3
9
|
from urllib.parse import quote
|
|
@@ -99,6 +105,7 @@ class Status(Enum):
|
|
|
99
105
|
|
|
100
106
|
|
|
101
107
|
class Sort(Enum):
|
|
108
|
+
@member
|
|
102
109
|
class By(Enum):
|
|
103
110
|
ADDED = 'added'
|
|
104
111
|
ARTIST = 'artist'
|
|
@@ -120,6 +127,7 @@ class Sort(Enum):
|
|
|
120
127
|
TITLE = 'title'
|
|
121
128
|
YEAR = 'year'
|
|
122
129
|
|
|
130
|
+
@member
|
|
123
131
|
class Order(Enum):
|
|
124
132
|
ASCENDING = 'asc'
|
|
125
133
|
DESCENDING = 'desc'
|
{python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/python3_discogs_client.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python3-discogs-client
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.7.1
|
|
4
4
|
Summary: Python API client for Discogs
|
|
5
5
|
Home-page: https://github.com/joalla/discogs_client
|
|
6
6
|
Author: joalla
|
|
@@ -14,5 +14,12 @@ Classifier: Programming Language :: Python
|
|
|
14
14
|
Classifier: Topic :: Communications
|
|
15
15
|
Classifier: Topic :: Utilities
|
|
16
16
|
License-File: LICENSE
|
|
17
|
+
Requires-Dist: requests
|
|
18
|
+
Requires-Dist: oauthlib
|
|
19
|
+
Requires-Dist: python-dateutil
|
|
20
|
+
Provides-Extra: docs
|
|
21
|
+
Requires-Dist: sphinx; extra == "docs"
|
|
22
|
+
Requires-Dist: pydata-sphinx-theme; extra == "docs"
|
|
23
|
+
Requires-Dist: myst-parser; extra == "docs"
|
|
17
24
|
|
|
18
25
|
This is an active fork of the official "Discogs API client for Python", which was deprecated by discogs.com as of June 2020. We think it is a very useful Python module and decided to continue maintaining it. Please visit: https://github.com/joalla/discogs_client for more information.
|
|
@@ -4,7 +4,7 @@ from setuptools import setup
|
|
|
4
4
|
|
|
5
5
|
setup(
|
|
6
6
|
name='python3-discogs-client',
|
|
7
|
-
version='2.
|
|
7
|
+
version='2.7.1',
|
|
8
8
|
description='Python API client for Discogs',
|
|
9
9
|
long_description='This is an active fork of the official "Discogs API client for Python", which was deprecated by discogs.com as of June 2020. We think it is a very useful Python module and decided to continue maintaining it. Please visit: https://github.com/joalla/discogs_client for more information.',
|
|
10
10
|
url='https://github.com/joalla/discogs_client',
|
|
@@ -29,4 +29,11 @@ setup(
|
|
|
29
29
|
packages=[
|
|
30
30
|
'discogs_client',
|
|
31
31
|
],
|
|
32
|
-
|
|
32
|
+
extras_require={
|
|
33
|
+
"docs": [
|
|
34
|
+
"sphinx",
|
|
35
|
+
"pydata-sphinx-theme",
|
|
36
|
+
"myst-parser",
|
|
37
|
+
],
|
|
38
|
+
}
|
|
39
|
+
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/artists/1.json
RENAMED
|
File without changes
|
{python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/artists/2.json
RENAMED
|
File without changes
|
{python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/artists/3.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/labels/1.json
RENAMED
|
File without changes
|
|
File without changes
|
{python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/lists/1.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/releases/1.json
RENAMED
|
File without changes
|
{python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/releases/2.json
RENAMED
|
File without changes
|
{python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/res/releases/3.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/test_core.py
RENAMED
|
File without changes
|
{python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/test_fetchers.py
RENAMED
|
File without changes
|
{python3-discogs-client-2.6 → python3_discogs_client-2.7.1}/discogs_client/tests/test_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|