insoundz-cli Package
A simple CLI which is used to give the client an easy and fast access to insoundz API.
Installation
To enable the auto-complete support, you will have to pip install from source and not from wheel.
pip install --no-binary insoundz-cli insoundz-cli
Otherwise, you can just run:
pip install insoundz-cli
NOTE: Please make sure you are running python3.7 or later.
Help
| Command | Description |
|---|---|
| config | Set or view config variables. |
| enhance-file | Enhance audio file. |
Command: config
| Sub-command | Description |
|---|---|
| get | Echo config variables. |
| set | Update config variables. |
Sub-command: config get
| Argument | Description | Required | Default |
|---|---|---|---|
| None | None | None | None |
Sub-command: config set
| Argument | Description | Required | Default |
|---|---|---|---|
| --client-id | Client ID for insoundz API services. If not set, the CLI uses the permanently configured client ID. If set, the CLI will use this client ID only for this session. | None | None |
| --secret | Secret key to access insoundz API services. If not set, the CLI uses the permanently configured secret key. If set, the CLI will use this secret key only for this session. | None | None |
| --url | Use an alternative endpoint URL (without the 'http://' prefix). If not set, the CLI uses the permanently configured url. If set, the CLI will use this url only for this session. If not set and not permanently configured, the CLI will use the default url. | None | api.insoundz.io |
Command: enhance-file
| Argument | Description | Required | Default |
|---|---|---|---|
| --client-id | Client ID for insoundz API services. If not set, the CLI uses the permanently configured client ID. If set, the CLI will use this client ID only for this session. | If not set with config command | None |
| --secret | Secret key to access insoundz API services. If not set, the CLI uses the permanently configured secret key. If set, the CLI will use this secret key only for this session. | If not set with config command | None |
| --url | Use an alternative endpoint URL (without the 'http://' prefix). If not set, the CLI uses the permanently configured url. If set, the CLI will use this url only for this session. If not set and not permanently configured, the CLI will use the default url. | No | api.insoundz.io |
| --src | A local path of the original audio file. | Yes | None |
| --no-download | If set, the enhanced file won't be downloaded to the local machine (we'll get only the URL of the enhanced file). | No | False |
| --dst | A local path or file to download the enhanced file. | No | <current_path>/<original_filename>_enhanced.<original_suffix> |
| --retention | URL Retention duration [minutes]. | No | None |
| --status-interval | Check the enhancement process every <status_interval> [seconds]. | No | 0.5 |
| --no-progress-bar | If set, progress-bar won't be displayed. | No | False |
Getting started
insoundz_cli <command> <arg1> <arg2> ...
Example #1:
Permanently set client ID and secret key.
insoundz_cli config set --client-id XXXX-XXXX-XXXX-XXXX --secret XXXX-XXXX-XXXX-XXXX
Example #2:
Upload an audio file from our local machine and at the end of the audio enhancement process download the enhanced file to our local machine (to "<current_path>/example_enhanced.wav").
insoundz_cli enhance-file --src="/home/example_user/my_audio_files/example.wav"
Example #3:
Upload an audio file from our local machine and at the end of the audio enhancement process download the enhanced file to our local machine (to "/home/example_user/my_enhanced_files_dir/new_file.wav").
insoundz_cli enhance-file --src="/home/example_user/my_audio_files/example.wav" --dst="/home/example_user/my_enhanced_files_dir/new_file.wav"
Example #4:
Upload an audio file from our local machine and at the end of the audio enhancement process don't download the enhanced files and request to keep the URL of the enhanced file valid for 8 hours.
insoundz_cli enhance-file --src="/home/example_user/my_audio_files/example.wav" --no-download --retention=480
Metadata
Release files for insoundz-cli 0.1.21
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| insoundz_cli-0.1.21.tar.gz | 6.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| insoundz_cli-0.1.21-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.4 kB
Release files / insoundz_cli-0.1.21.tar.gz
| Download URL | insoundz_cli-0.1.21.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
25d39cb698dfadb3b7ab24e33936936bd463ef596ae94a16d821315cef979bb2
|
|
BLAKE2b-256 checksum How to use checksums |
42444364092933bbfaa22e98560aa4e2b93078af00dd18ed14bafd6cdbe5bfab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|
Release files / insoundz_cli-0.1.21-py3-none-any.whl
| Download URL | insoundz_cli-0.1.21-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b847945bad7c2f18318de628d925af49cfaeea49a18044c418d339f22f84d0a9
|
|
BLAKE2b-256 checksum How to use checksums |
265613fed1ecff9c56988fc299ab7ced103ff856000be5a8235d0a1f2a08e786
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|