python3-discogs-client 2.6__py3-none-any.whl → 2.7.1__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.
@@ -1,4 +1,4 @@
1
- __version__ = '2.6'
1
+ __version__ = '2.7.1'
2
2
  __version_info__ = tuple(int(i) for i in __version__.split('.') if i.isdigit())
3
3
 
4
4
  from discogs_client.client import Client
@@ -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
discogs_client/models.py CHANGED
@@ -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'])
discogs_client/utils.py CHANGED
@@ -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'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python3-discogs-client
3
- Version: 2.6
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
@@ -17,5 +17,9 @@ License-File: LICENSE
17
17
  Requires-Dist: requests
18
18
  Requires-Dist: oauthlib
19
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'
20
24
 
21
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.
@@ -0,0 +1,11 @@
1
+ discogs_client/__init__.py,sha256=F8H5pGOgcXj6mYUVTcdSDB2D4RMDRCkxkDa9K-kkKRI,447
2
+ discogs_client/client.py,sha256=AqQmwJd54DrAFTnTb4zi1jCefjC6sbISh43FZuYsQ0g,7632
3
+ discogs_client/exceptions.py,sha256=7kHj2wbpfT0gLE7uqm6c4aS28Wkr58f6u9jfpcT_NSM,1323
4
+ discogs_client/fetchers.py,sha256=D8npYWt9FILSRIhVsUdA6N0pzRCEUFh5hqQbnBu4IUg,11964
5
+ discogs_client/models.py,sha256=c6OfCIEPW7HtOpegP3tcdGPtEBTm7adDxWyQzcfe52M,31844
6
+ discogs_client/utils.py,sha256=r0Hh8JHu8T3XZciEg0mAVV_fN7aZhUZIB08CBY5jJMM,3515
7
+ python3_discogs_client-2.7.1.dist-info/LICENSE,sha256=GvYq7dzLVxNCGN29xn0Ec1JMpzZwPXzOAdtZsuB9pUI,1455
8
+ python3_discogs_client-2.7.1.dist-info/METADATA,sha256=K7KOJllZVlacHkNgdH0mxKpX9of5ueTqC2HkOf6Sgb8,1088
9
+ python3_discogs_client-2.7.1.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
10
+ python3_discogs_client-2.7.1.dist-info/top_level.txt,sha256=jgqsRXqG3dJuCOSykXhXN68DMNu77XYQuqgqlPSSv1E,15
11
+ python3_discogs_client-2.7.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.38.4)
2
+ Generator: setuptools (75.5.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,11 +0,0 @@
1
- discogs_client/__init__.py,sha256=hV55HqgbLHR1BeKPZTv5NZyn99_pJIxEt9aZUk7lyx8,445
2
- discogs_client/client.py,sha256=AqQmwJd54DrAFTnTb4zi1jCefjC6sbISh43FZuYsQ0g,7632
3
- discogs_client/exceptions.py,sha256=7kHj2wbpfT0gLE7uqm6c4aS28Wkr58f6u9jfpcT_NSM,1323
4
- discogs_client/fetchers.py,sha256=UP-FcCo8MOgfG5VpiFCRpKUUBcVn_zSMbnV5Z3DpAqQ,11963
5
- discogs_client/models.py,sha256=jtKrrz_5VyoeuGgbIy0YOY_YTATeK8prt2affrXrGBM,31689
6
- discogs_client/utils.py,sha256=KJDkJ91C1rVW7Tr4hZ8To-sJyKtFu4gT1oNQIv7Mo_k,3395
7
- python3_discogs_client-2.6.dist-info/LICENSE,sha256=GvYq7dzLVxNCGN29xn0Ec1JMpzZwPXzOAdtZsuB9pUI,1455
8
- python3_discogs_client-2.6.dist-info/METADATA,sha256=VJPe-MxfAQHAnYZfJu7danpPI4rvEvdesbmGK40knU4,927
9
- python3_discogs_client-2.6.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
10
- python3_discogs_client-2.6.dist-info/top_level.txt,sha256=jgqsRXqG3dJuCOSykXhXN68DMNu77XYQuqgqlPSSv1E,15
11
- python3_discogs_client-2.6.dist-info/RECORD,,