Installation & Setup
1. Installing the Library
To install Desync Search via pip, run:
| Bash | |
|---|---|
2. Setting Up Your API Key
Desync Search uses your API key to authenticate requests. The DesyncClient automatically checks for an environment variable named DESYNC_API_KEY if you don't pass the key directly. This ensures secure and convenient usage.
Setting the Environment Variable
On Unix/Linux/MacOS (bash):
Add the following to your terminal session or your shell profile (e.g. .bashrc or .bash_profile):
| Bash | |
|---|---|
On Windows (Command Prompt):
Run the following command:
| Text Only | |
|---|---|
On Windows (PowerShell):
Use this command:
| PowerShell | |
|---|---|
3. Initializing the Client
Once your API key is set, you can initialize the client without specifying the API key:
Alternatively, you can pass a different API key directly:
| Python | |
|---|---|