Skip to main content

A command-line tool to create badges displaying the number of app downloads from App Store

Project description

app-store-download-count-badge-maker

Code style: black

PyPI Package version Python Supported versions format implementation LICENSE

A command-line tool to create badges displaying the number of app downloads from App Store

Installation

$ pip install app-store-download-count-badge-maker

or

$ pipx install app-store-download-count-badge-maker

Required

  • Python 3.9 or later

Features

  • Generate badges for the App Store download count.
    • app-store-download-count-badge-maker generate command.
  • Generate index.html from config.yml.
    • app-store-download-count-badge-maker make-index command.

Usage

$ app-store-download-count-badge-maker generate \
  --config config.yml \
  --output dist

By default, the --config (or -c) option is set to config.yml and the --output (or -o) options is set to dist.

[!NOTE] The count is based on 3 days prior to the execution date.

Configuration

Create a configuration file in YAML format.
The recommended name is config.yml.

Configuration Details

The configuration file config.yml should contain the following sections:

  • secrets: This section holds the credentials required to access the App Store Connect API.
    • private_key: Path to the private key file (e.g., private.p8). The private key must have access Finance.
    • issuer_id: The issuer ID from App Store Connect.
    • key_id: The key ID from App Store Connect.
    • vendor_number: The vendor number associated with your App Store account. View payments and proceeds
  • apps: A list of applications for which you want to create download count badges.
    • apple_identifier: The unique identifier for the app in the App Store.
    • frequency: The frequency at which you want to generate the badge. Must be one of DAILY, WEEKLY, MONTHLY, YEARLY.
    • badge_style (Optional): The style of the badge. Must be one of flat (default), flat-square, plastic, for-the-badge, social.

Example Configuration

secrets:
  private_key: private.p8
  issuer_id: 12345678-1234-1234-1234-123456789012
  key_id: 12345678
  vendor_number: 12345678
apps:
  - apple_identifier: 1289764391
    frequency: MONTHLY
  - apple_identifier: 1234567890
    frequency: WEEKLY
    badge_style: flat-square

Badge Creation :sparkles:

This tool uses Shields.io to create badges displaying the number of app downloads from App Store.

Examples

Frequency Badge Style
YEARLY year-flat year-flat-square year-plastic year-for-the-badge year-social
MONTHLY month-flat month-flat-square month-plastic month-for-the-badge month-social
WEEKLY week-flat week-flat-square week-plastic week-for-the-badge week-social
DAILY day-flat day-flat-square day-plastic day-for-the-badge day-social

Projects using app-store-download-count-badge-maker

License

This software is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file app_store_download_count_badge_maker-0.3.0.tar.gz.

File metadata

File hashes

Hashes for app_store_download_count_badge_maker-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6c7a5bc8f512c883837ddbd05071a124f1dab8000693bd74d5a083d0ffccb062
MD5 b6fe27a6d19c1d33f0f398bf964b8e0a
BLAKE2b-256 ded8d1c5bf3b35809754c349438b02c3e5c34bd4d33144e335d31ee74bf36842

See more details on using hashes here.

Provenance

The following attestation bundles were made for app_store_download_count_badge_maker-0.3.0.tar.gz:

Publisher: release.yml on nnsnodnb/app-store-download-count-badge-maker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file app_store_download_count_badge_maker-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for app_store_download_count_badge_maker-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ec222e61a80fdb6fda48040ae82fff92bac784b3f54abef2b9f0160f41fce04
MD5 4ca4ae2bac6655fdaec57b52853a382d
BLAKE2b-256 ea71d1a62e02728aa3ce34cfdb1ffcef7169a7a468700fa4e4e5260e65689a4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for app_store_download_count_badge_maker-0.3.0-py3-none-any.whl:

Publisher: release.yml on nnsnodnb/app-store-download-count-badge-maker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page