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


Source Code: https://github.com/browniebroke/deezer-oauth-cli


A small CLI to quickly obtain an API token for the 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
Bruno Alla

💻 🤔 📖
Pierre
Pierre

💻

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-1.2.1.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

deezer_oauth_cli-1.2.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file deezer_oauth_cli-1.2.1.tar.gz.

File metadata

  • Download URL: deezer_oauth_cli-1.2.1.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for deezer_oauth_cli-1.2.1.tar.gz
Algorithm Hash digest
SHA256 41d954881f3f144e75abd6533a6855a7e80c8768ec5a4692884d00a749772656
MD5 588e9647ac80a5765a18e207a09f8a60
BLAKE2b-256 539f9d6b2989add3be6824de8965a931c8f841daf5c0ced352285a037e6d4623

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deezer_oauth_cli-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 13a1bc538d59902da5c8a1dd63bc72eaff8a334eb45f250fae55e0c66dc01ed1
MD5 ef2bf62798937999becbd8926dd4f96d
BLAKE2b-256 1ea9559b5ddf54f113b60f7f496d338e8e8bfc9c5e407c2e9d249574808643ad

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