Rite Aid API
This package allows for interactions with the Rite Aid API.
Here is an example of how to use the package:
from riteaid import RiteAidAPI
async def main():
api = RiteAidAPI()
# Get a list of stores for ZIP Code 94025
stores = await api.get_stores("94025")
print(stores)
# {"Data":
# {"stores":
# [
# {
# "storeNumber":5892,
# "address":"340 Woodside Plaza",
# "city":"Redwood City",
# "state":"CA",
# "zipcode":"94061",
# "timeZone":"PST",
# "fullZipCode":"94061-3259",
# "fullPhone":"(650) 368-7008",
# "locationDescription":"Located at 340 Woodside Plaza Woodside Plaza Next To Lucky's",#
# "storeHoursMonday":"7:00am-10:00pm",
# "storeHoursTuesday":"7:00am-10:00pm",
# "storeHoursWednesday":"7:00am-10:00pm",
# "storeHoursThursday":"7:00am-10:00pm",
# "storeHoursFriday":"7:00am-10:00pm",
# "storeHoursSaturday":"7:00am-10:00pm",
# "storeHoursSunday":"8:00am-10:00pm",
# "rxHrsMon":"9:00am-8:00pm",
# "rxHrsTue":"9:00am-8:00pm",
# "rxHrsWed":"9:00am-8:00pm",
# "rxHrsThu":"9:00am-8:00pm",
# "rxHrsFri":"9:00am-8:00pm",
# "rxHrsSat":"9:00am-6:00pm",
# "rxHrsSun":"10:00am-6:00pm",
# "storeType":"RA",
# "latitude":37.4565,
# "longitude":-122.229,
# "name":"Rite Aid",
# "milesFromCenter":2.5,
# "specialServiceKeys":[...],
# "event":null,
# "holidayHours":[],
# "pickupDateAndTimes":
# {
# "regularHours":
# [
# "11:00 AM-5:00 PM",
# "10:00 AM-7:00 PM",
# "10:00 AM-7:00 PM",
# "10:00 AM-7:00 PM",
# "10:00 AM-7:00 PM",
# "10:00 AM-7:00 PM",
# "10:00 AM-5:00 PM"
# ],
# "specialHours":
# {
# "2022-02-19":"10:30 AM-5:00 PM",
# "2022-02-20":"11:00 AM-5:00 PM"
# },
# "defaultTime":"2022-02-20 1:00 PM",
# "earliest":"2022-02-19 10:30 AM"
# }
# }
# ]
# },
# "Status":"SUCCESS",
# "ErrCde":null,
# "ErrMsg":null,
# "ErrMsgDtl":null
# }
# }
# Refill an Rx
refill = await api.refill_rx([
"123456789012", # Rx Number
"123456789012", # Rx Number
"123456789012", # Rx Number
],
"5892", # Store Number
"2022-02-20", # Refill Date
"1:00 PM", # Refill Time
"6058392845", # Phone Number
)
print(refill)
# I have not tested a succesful refill yet, since I don't have the need for a refill at the moment.
get_stores
| Parameter | Description |
|---|---|
| zipcode | ZIP Code |
refill_rx
| Parameter | Description |
|---|---|
| rx_numbers | Rx Numbers |
| store_number | Store Number |
| refill_date | Refill Date |
| refill_time | Refill Time |
| phone_number | Phone Number |
Metadata
Release files for riteaid 0.0.9
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 |
|---|---|---|---|---|
| riteaid-0.0.9.tar.gz | 3.9 kB | Without provenance | Details for riteaid-0.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| riteaid-0.0.9-py3-none-any.whl | Python 3 | none | any | Details for riteaid-0.0.9-py3-none-any.whl |
Total release size: 8.5 kB
Release files / riteaid-0.0.9.tar.gz
| Download URL | riteaid-0.0.9.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
41873e638cfcbba17fe139b5b66e819c0c8c983e8a9e5e495429356c9d50c6eb
|
|
BLAKE2b-256 checksum How to use checksums |
4bc634648f422d223989a6c6a733e975870bb292990b0e2ca7fc5bf4aaf03191
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.8.0 tqdm/4.62.3 CPython/3.7.3
|
Release files / riteaid-0.0.9-py3-none-any.whl
| Download URL | riteaid-0.0.9-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
94427c406bc10f497f1da226b4ec106a9b79eb4cbcc12f9a69f9d8b655ef9918
|
|
BLAKE2b-256 checksum How to use checksums |
9d418749c15fc04d4da70bf6e3a5098c6a9f83201c8fb15c7316b31fc6339e98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.8.0 tqdm/4.62.3 CPython/3.7.3
|
Security for riteaid 0.0.9
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.