Skip to main content

Deezer OAuth CLI

CI Status Test coverage percentage

uv Ruff prek

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.

Important note

At the moment, it is not possible to register a new application via the Deezer Developer Portal.

The portal currently displays the message: "We're not accepting new application creation at this time. Please check again later."

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.

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deezer_oauth_cli-1.8.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: deezer_oauth_cli-1.8.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for deezer_oauth_cli-1.8.0.tar.gz
Algorithm Hash digest
SHA256 25cf26fede11d1c332bdbe608951b54071aaf9458e47805d2d874688ba96f1fd
MD5 ef52c081fecd15aa859dc3743ee8feea
BLAKE2b-256 089f79697d73f52fb92f99d8cabab9ae78de67c1e2be7322ebf7144d807445d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for deezer_oauth_cli-1.8.0.tar.gz:

Publisher: ci.yml on browniebroke/deezer-oauth-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for deezer_oauth_cli-1.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f09a3296ac0567b65e0ceff7263278b9f0fad45457f1bcfcc87fcee3495cd780
MD5 c1f7cfa11505e62658ecc55187ffc34e
BLAKE2b-256 a07451aeec94f45338a0e7c1a836ada83c7388897a0cd06f95f185b4554d82fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for deezer_oauth_cli-1.8.0-py3-none-any.whl:

Publisher: ci.yml on browniebroke/deezer-oauth-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.8.0 This release

2 files

1.7.0

2 files

1.6.0

2 files

1.5.2

2 files

1.5.1

2 files

1.5.0

2 files

1.4.0

2 files

1.3.1

2 files

1.3.0

2 files

1.2.8

2 files

1.2.7

2 files

1.2.6

2 files

1.2.5

2 files

1.2.4

2 files

1.2.3

2 files

1.2.2

2 files

1.2.1

2 files

1.2.0

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.1

2 files

1.0.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page