TargetAPI
Interact with Target's API
Installation
Download from PyPi with pip install TargetAPI
Usage
- Import with
from TargetAPI import Target - Initialize with
target = Target(api_key="myapikeyhere")
Examples:
- Get stores:
stores = target.stores - Search for a product:
results = target.search(keyword="PlayStation 5 game console") - Product reviews:
reviews = results[0].reviews - Product price:
price = results[0].price - Product availability:
availability = results[0].availability - Products on-hand:
print(availability.onhand) - Availability locations:
locations = availability.locations - Location phone number:
print(locations[0].store.phone_number)
Metadata
Release files for TargetAPI 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| TargetAPI-0.2.0.tar.gz | 6.4 kB | Without provenance | Details for TargetAPI-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| TargetAPI-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for TargetAPI-0.2.0-py3-none-any.whl |
Total release size: 13.0 kB
Release files / TargetAPI-0.2.0.tar.gz
| Download URL | TargetAPI-0.2.0.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
05521d0106bd972c22a1383be9e1512334b8d2ba853f588090f836744ace80d8
|
|
BLAKE2b-256 checksum How to use checksums |
cffee1c8bae9038f2b671059bb8c77c2260a98db066f34f84ffb18e1d4774347
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
|
Release files / TargetAPI-0.2.0-py3-none-any.whl
| Download URL | TargetAPI-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9a46df955288ae77059c3e761c6ee4828565893f6d002c7c64989bcf0b5dd60e
|
|
BLAKE2b-256 checksum How to use checksums |
8a3de56412a8dc1e5c4a512a099dab5c86d521d9ce790b16a7bb4cca5faec6cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
|
Security for TargetAPI 0.2.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.