Skip to main content
https://pypip.in/v/Starbucks/badge.svg

Unofficial Starbucks API.

This API is written in Python.

Only supports for Starbucks Korea.

Installation

You can install Starbucks with pip

$ pip install starbucks

Features

1. Login

You can login to Starbucks like:

from starbucks import Starbucks

starbucks = Starbucks()
starbucks.login('username', 'password')

2. Get My Cards

You can get your cards like:

cards = starbucks.get_cards()

3. Get My Card Information

You can get your card information like:

# You should know the registration number of your card.
# It is in the source code of Starbucks web page.
card = starbucks.get_card_info('0000000')

or using CLI:

$ starbucks-card --id {username} --password {password} --reg-number {card reg number}

4. Get My Stars Count

You can get your stars count like:

starbucks.get_stars_count()

or using CLI:

$ starbucks-star --id {username} --password {password}

5. Get Beverage Menus

You can get the list of beverage menus like:

starbucks.get_beverages()

6. Get My Coupons

You can get the list of your coupons like:

starbucks.get_coupons()

7. Logout

If you want to logout, just:

starbucks.logout()

Known Issues

  • Should I have to check if I logged in successfully like this?

To Do

  • Card usage histories

  • More error checks

  • and so on.

Release files for Starbucks 0.5.3

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

Source distribution (sdist)

Source distribution for Starbucks 0.5.3
File Size Uploaded
Starbucks-0.5.3.tar.gz 4.1 kB Details

Release files / Starbucks-0.5.3.tar.gz

Download URL Starbucks-0.5.3.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b17f7f8d08849564d54ea4eb8df801c31272ee3b2531c1e6015c5bd97d12a94d
BLAKE2b-256 checksum
How to use checksums
936113a10d3942ddec8ab617247f1da758ce686133858f21bdeca482eb0a42bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.5.3 This release

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

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