Skip to main content

A small CLI to quickly obtain an API token for Deezer API.

Project description

Deezer OAuth CLI

CI Status Test coverage percentage

Poetry black pre-commit

PyPI Version Supported Python versions License

A small CLI to quickly obtain an API token for Deezer API.

Obtaining API token to develop API applications can be complicated and sometimes feel like a chicken and egg situation: it's hard to play with the API without a token, but it can be difficult to get a token without an application to do the OAuth flow.

Given the app ID and secret, this tool lets you quickly get an API token.

Installation

Install this via pip (or your favourite package manager):

pip install deezer-oauth-cli

Usage

Before starting to use this tool, you first need to declare your Deezer app in their developer portal. Create a new app with the following Redirect URL: http://localhost:8080/oauth/return.

Once created, Deezer will generate an application ID and secret key for you, that's the 2 parameters that you need to run this tool:

$ deezer-oauth APP_ID APP_SECRET

This will:

  • Spin up a webserver in the background running at http://localhost:8080.
  • Open your browser to grant authorisation access to your Deezer account.
  • Redirect to a page showing the API token & expiry.
  • Write the token to a .env file.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Bruno Alla

💻 🤔 📖

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits

This package was created with Cookiecutter and the browniebroke/cookiecutter-pypackage project template.

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

deezer-oauth-cli-0.1.3.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

deezer_oauth_cli-0.1.3-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file deezer-oauth-cli-0.1.3.tar.gz.

File metadata

  • Download URL: deezer-oauth-cli-0.1.3.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for deezer-oauth-cli-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0b8365f11f125c00eb907131bd845bc565f460350ea1395d05b3add6173b7840
MD5 d0fa65f5d539a247a700e746b13a3b66
BLAKE2b-256 9b915911254b62952e6366b006ffe36290020567696c78b0346c39502f8ed1f0

See more details on using hashes here.

File details

Details for the file deezer_oauth_cli-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: deezer_oauth_cli-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for deezer_oauth_cli-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 927b9af1063f4b73d1c61165e517855997c45af9ba9476e6a442dbe40fe1d760
MD5 fb01368c53d415641e77b21d4a32adc6
BLAKE2b-256 a3a5ae77b1c429f6dcf774ab974e8317967021744b19c5e591b44bb6e0582dc3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page