Skip to content

Instantly share code, notes, and snippets.

@dcox
dcox / applestore.py
Last active January 10, 2024 21:25
applestore.py
def load_private_key():
keyfile = os.environ.get("APPSTORE_CONNECT_KEYFILE")
with open(keyfile, 'rb') as privatefile:
return privatefile.read()
def get_appstore_client(private_key):
key_id = os.environ.get("APPSTORE_CONNECT_KEY_ID")
issuer_id = os.environ.get("APPSTORE_CONNECT_ISSUER_ID")
bundle_id = os.environ.get("APPSTORE_CONNECT_BUNDLE_ID")
environment = Environment.PRODUCTION

Keybase proof

I hereby claim:

  • I am dcox on github.
  • I am desiree (https://keybase.io/desiree) on keybase.
  • I have a public key whose fingerprint is F9FF D15F 8AE7 9D0A 07B1 B154 A53D 85CA EDF7 8B7A

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am dcox on github.
  • I am desiree (https://keybase.io/desiree) on keybase.
  • I have a public key whose fingerprint is DDE0 36A6 27D8 7946 9D9E A441 7668 E9A5 CF15 B94D

To claim this, I am signing this object: