Skip to main content

$ dell_api

A command-line interface (CLI) for fetching Dell APIs (TechDirect asset warranty service) data and present them in a human-friendly view.

Based on given service tag the application provides the following information:

  • Warranty status details, such as: service tag assigned country, warranty level, warranty time remaining and end date.
  • Part details

Client_ID & Client_Secret

User has to retrieve “client_id” and ”client_secret” from TechDirect API portal.

From Dell API Outh doc - API key = Client ID

This data is used for receiving an access token for the Resource (API)

Installation

pip install dell-warranty-api

OR you can install the application manually. Example with virtual environment:

https://github.com/karma-git/dell_warranty_status_api.git && cd dell_warranty_status_api;
python3 -m venv venv;
source venv/bin/activate;
python -m pip install -r requirements.txt;
python dell_api/__main__.py -h;
# OR
python -m dell_api -h;  

Usage

You'll be asked to insert Client ID and Client Secret during the first launch.

Secrets will be stored into your home directory in the file secrets.ini. Also, when you use application it generates access token (OAuth - it is valid only for one hour) and saves it in the hidden file .cache.json inside your home directory.

$ dell_api -w 1234567
2021-05-10 06:48:54.521 | WARNING  | dell_api.__main__:_load_secrets:73 - Secrets file is not exist! Creating ...
Please specify client_id:
Please specify client_secret:

Simple example

$ dell_api -w 1234567,2345678,3456789
+-------------+---------------+------------+------------------------------+------------+
| Service Tag |    Country    |  Warranty  |            Remain            |  End Date  |
+-------------+---------------+------------+------------------------------+------------+
|   2345678   | United States |   Basic    |           Expired            | 2011-10-06 |
|   3456789   |     Sweden    |   Basic    |           Expired            | 2007-11-03 |
|   1234567   | United States | ProSupport | 4 years, 2 months and 0 days | 2025-07-10 |
+-------------+---------------+------------+------------------------------+------------+

Check more usage cases -> examples

Metadata

Release files for dell-warranty-api 1.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dell-warranty-api 1.10.0
File Size Uploaded Provenance Actions
dell_warranty_api-1.10.0.tar.gz 6.8 kB Without provenance Details for dell_warranty_api-1.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dell-warranty-api 1.10.0
File Interpreter ABI Platform Actions
dell_warranty_api-1.10.0-py3-none-any.whl Python 3 none any Details for dell_warranty_api-1.10.0-py3-none-any.whl

Total release size: 14.0 kB

Release files / dell_warranty_api-1.10.0.tar.gz

Download URL dell_warranty_api-1.10.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
13f628948e851692cf97c765507a102ad6fd395f5e4d1a556fc7acdc20b9ebaf
BLAKE2b-256 checksum
How to use checksums
d52caf1f7e225efac6201df234431b61e7b92c0de5cc2061e7f07e544caf861d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

Release files / dell_warranty_api-1.10.0-py3-none-any.whl

Download URL dell_warranty_api-1.10.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1cb7930e1576eb5a3db0f7794f703ea26e15dbeae08daada3580f78ea8aa0fef
BLAKE2b-256 checksum
How to use checksums
57c8c232e28ce4c458ec90a319e5c13e7cfcd8fc0def75e28d8a2d11b49955a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

Security for dell-warranty-api 1.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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