DiscogsDataProcessorCLI 1.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.
- discogs/__init__.py +0 -0
- discogs/chunker.py +95 -0
- discogs/config.py +75 -0
- discogs/converter.py +190 -0
- discogs/deleter.py +51 -0
- discogs/downloader.py +120 -0
- discogs/extractor.py +92 -0
- discogs/main.py +170 -0
- discogs/scraper.py +125 -0
- discogs/selector.py +197 -0
- discogs/utils.py +96 -0
- discogsdataprocessorcli-1.5.0.dist-info/METADATA +119 -0
- discogsdataprocessorcli-1.5.0.dist-info/RECORD +16 -0
- discogsdataprocessorcli-1.5.0.dist-info/WHEEL +5 -0
- discogsdataprocessorcli-1.5.0.dist-info/entry_points.txt +2 -0
- discogsdataprocessorcli-1.5.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: DiscogsDataProcessorCLI
|
|
3
|
+
Version: 1.5.0
|
|
4
|
+
Summary: A CLI to download, extract and convert Discogs data dumps
|
|
5
|
+
Home-page: https://github.com/ofurkancoban/DiscogsCLI
|
|
6
|
+
Author: Furkan Γoban
|
|
7
|
+
Author-email: ofurkancoban@gmail.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Requires-Python: >=3.8
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Requires-Dist: rich
|
|
15
|
+
Requires-Dist: pandas
|
|
16
|
+
Requires-Dist: typer
|
|
17
|
+
|
|
18
|
+
# π§ Discogs CLI β Data Processor Tool πΏ
|
|
19
|
+
<p align="center">
|
|
20
|
+
<img src="img/logo.png" alt="Discogs Logo" width="200"/>
|
|
21
|
+
</p>
|
|
22
|
+
A modern command-line tool to **download**, **extract**, and **convert** Discogs data dumps into structured CSV files.
|
|
23
|
+
<p align="center">
|
|
24
|
+
<img src="img/preview.gif" />
|
|
25
|
+
</p>
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## π Features
|
|
30
|
+
|
|
31
|
+
- π§ Scrape latest available data dump list from Discogs S3
|
|
32
|
+
- β¬οΈ Download `.gz` files for artists, labels, releases, masters
|
|
33
|
+
- π¦ Extract `.gz` files to raw XML
|
|
34
|
+
- βοΈ Chunk large XML into smaller files
|
|
35
|
+
- π Convert XML to clean, flat CSV files
|
|
36
|
+
- π Delete selected or all files
|
|
37
|
+
- βοΈ Set custom download folder
|
|
38
|
+
- π§ͺ Easy to use from terminal with friendly UI
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## π§© Installation
|
|
43
|
+
|
|
44
|
+
### π» Install with Homebrew
|
|
45
|
+
```bash
|
|
46
|
+
brew tap ofurkancoban/discogs
|
|
47
|
+
brew install discogs
|
|
48
|
+
```
|
|
49
|
+
### or
|
|
50
|
+
```bash
|
|
51
|
+
git clone https://github.com/ofurkancoban/DiscogsCLI.git
|
|
52
|
+
cd DiscogsCLI
|
|
53
|
+
pip install -e .
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## π» Usage
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
discogs run # Auto: download β extract β convert
|
|
62
|
+
discogs show # List available Discogs data
|
|
63
|
+
discogs download # Just download selected files
|
|
64
|
+
discogs extract # Extract downloaded .gz files
|
|
65
|
+
discogs convert # Convert extracted XML to CSV
|
|
66
|
+
discogs delete # Delete files by selection or --all
|
|
67
|
+
discogs config # Set download folder
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## π Folder Structure
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
~/Downloads/Discogs/
|
|
76
|
+
βββ .discogs_config.json
|
|
77
|
+
βββ Datasets/
|
|
78
|
+
βββ 2025-04/
|
|
79
|
+
βββ discogs_20250401_artists.gz
|
|
80
|
+
βββ discogs_20250401_artists β .xml
|
|
81
|
+
βββ discogs_20250401_artists.csv β converted
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## π§ Example Workflow
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
discogs show
|
|
90
|
+
# [1] 2025-04 | releases | 950 MB
|
|
91
|
+
# [2] 2025-04 | artists | 320 MB
|
|
92
|
+
|
|
93
|
+
discogs download
|
|
94
|
+
# Select 1,2
|
|
95
|
+
# Downloads only
|
|
96
|
+
|
|
97
|
+
discogs extract
|
|
98
|
+
# Select file to extract
|
|
99
|
+
|
|
100
|
+
discogs convert
|
|
101
|
+
# Select XML to convert
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## π§βπ» Author
|
|
107
|
+
|
|
108
|
+
- GitHub: [github.com/ofurkancoban](https://github.com/ofurkancoban)
|
|
109
|
+
- LinkedIn: [linkedin.com/in/ofurkancoban](https://linkedin.com/in/ofurkancoban)
|
|
110
|
+
- Kaggle: [kaggle.com/ofurkancoban](https://www.kaggle.com/ofurkancoban)
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## π License
|
|
115
|
+
|
|
116
|
+
MIT β use freely, mention when you do something cool π
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
Built with β€οΈ by [@ofurkancoban](https://github.com/ofurkancoban)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
discogs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
discogs/chunker.py,sha256=BvDFSyxDuB1IX5OZ4EF1LVmfPv5Ao4zxU8NbZRW-bMw,3720
|
|
3
|
+
discogs/config.py,sha256=mL-sSUxi7CH9e3XhQaslKQbK223jGGvhQl7l5Mx9Nvo,2561
|
|
4
|
+
discogs/converter.py,sha256=jZFATXNahJE3I2RYZd0w9X4TZ_tb9qWRNgeYSSeLNiQ,7011
|
|
5
|
+
discogs/deleter.py,sha256=f3eYk9CV6gzEe6n68HuYWl6uI-f0kQnolzK5UM8_ZZQ,1626
|
|
6
|
+
discogs/downloader.py,sha256=tUxuGBrvi5iBP6QkIqqc-A7BnA5pJiOGn0Eg2REDAJ0,4432
|
|
7
|
+
discogs/extractor.py,sha256=-MrIuurPtrAcPJY5Bf4J64pSRzi_iYacc671KBYh6tI,3063
|
|
8
|
+
discogs/main.py,sha256=OTlX1dPOkcnYiG4oDB3YNB1lTR3BxUKVK9uqbIjrB8o,5013
|
|
9
|
+
discogs/scraper.py,sha256=l4EGPmZz1FZLw300F1GgA_kEs6kUlm3XoNgsS-zsbr4,3922
|
|
10
|
+
discogs/selector.py,sha256=RNJaEv3U3jpcZCQ5UE8CIhHJIB6y5S9sYVUQcFPbm6Y,8778
|
|
11
|
+
discogs/utils.py,sha256=Cma8KUUNOhHkS1PJmK3SEMDLM5AeaTatw20cjOuyKp4,2992
|
|
12
|
+
discogsdataprocessorcli-1.5.0.dist-info/METADATA,sha256=ztNS8W5K2ee9FRoqhivZG4cSBzJMWu5lM0ukPan0gi8,2824
|
|
13
|
+
discogsdataprocessorcli-1.5.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
14
|
+
discogsdataprocessorcli-1.5.0.dist-info/entry_points.txt,sha256=fvnfMftmFayyMZMn22_vV84x8eRsU78bg4a1GqMSPpQ,46
|
|
15
|
+
discogsdataprocessorcli-1.5.0.dist-info/top_level.txt,sha256=js1WLfs7_HtBVTsMrUKWsxr9KWphFGtdMo647NLcMlw,8
|
|
16
|
+
discogsdataprocessorcli-1.5.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
discogs
|