A set of wrapper and tools to make use of the discogs api
Project description
Discogspy
Discogspy is a type-safe and easy to use python wrapper around the Discogs API.
Important: This package is under substantial development. See Road Map for more information.
Install
pip install discogspy
Road Map
-
Create type save python wrapper around the Discogs API
a) Wrap database calls (done - except search request cause I personally dont have any usecase for it)
b) Wrap marketplace calls
c) Wrap inventory export calls
d) Wrap inventory upload calls
e) Wrap user identity calls
f) Wrap user collection calls
g) Wrap user wantlist calls
h) Wrap user lists calls -
Create response wrapper
How to use
For detailed explanation please visit the documentation.
Currently, you have two options for starting requests to Discogs.
- Create a user object without authentication. This will limit your options cause a lot of api calls require authentication.
from discogspy.core.discogs_user import UserWithoutAuthentication
from discogspy.core import rq_database
user = UserWithoutAuthentication()
resp = rq_database.get_release(user, 1972502)
- Create a user object with user token authentication. This will allow you to send any request.
from discogspy.core.discogs_user import UserWithUserTokenBasedAuthentication
from discogspy.core import rq_database
user_with_authentication = UserWithUserTokenBasedAuthentication(user_token="your_user_token",
user_agent="your_user_agent")
resp = rq_database.get_release(user, 1972502)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file discogspy-0.1.5.tar.gz
.
File metadata
- Download URL: discogspy-0.1.5.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d90b3edc0f02cb48040e1681d5617defe93962fdc030f4c5890f377df41d9ff |
|
MD5 | 52ecf13bedbb2a6424a3127eb97b58ad |
|
BLAKE2b-256 | 9b967704309cb376f60f0fdded53b7dcc138a8450aaff051f2727d941e235047 |
File details
Details for the file discogspy-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: discogspy-0.1.5-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90a66fb97ab4b7e4ac0cc9a22ed6d8a29ba7016fee7308b59a0f1a95c64c331d |
|
MD5 | 6c5dc9d921710729d184bb5d8752661f |
|
BLAKE2b-256 | 9eabff2d2d960bfbd50be816d932a50e5bc31de79229f24d0c6edadd421c50d0 |