Skip to main content

creating dota2 counterpicker

Project description

draftdiff

Creating Google Service Account

To create a service account that you can use to edit Google Sheets using Python, you'll need to follow these steps:

Create a Google Cloud Platform (GCP) project: Go to the Google Cloud Console, create a new project or select an existing one.

Enable the Google Sheets API: In the Cloud Console, navigate to the "APIs & Services" > "Library", search for "Google Sheets API", and enable it for your project.

Create a service account: Go to "APIs & Services" > "Credentials", then click on "Create credentials" and select "Service account". Follow the prompts to create a new service account. During this process, you'll be prompted to download a JSON key file. Save this file securely, as it will be used to authenticate your requests.

Share Google Sheets with the service account: Open your Google Sheet and share it with the email address associated with the service account. Grant appropriate permissions (edit or view) as needed.

Downloading JSON key file

Go to the Google Cloud Console. Select your project or create a new one. In the left-hand side menu, click on "IAM & Admin" > "Service accounts". Click on the "Create service account" button. Enter a name and description for your service account, and then click on the "Create" button. Assign the required roles to the service account. For Google Sheets API access, you'll typically need the "Editor" or "Viewer" role. You can always adjust the roles later if needed. After creating the service account, you'll be prompted to grant the service account access to various Google APIs. You can skip this step if you plan to manually assign access later. Once the service account is created, locate it in the list of service accounts and click on the three dots on the right-hand side, then select "Manage keys". In the "Keys" tab, click on the "Add key" button and select "Create new key". Choose the key type as JSON and click on the "Create" button. This will download the JSON key file to your computer. This JSON key file contains the credentials for your service account and will be used to authenticate requests from your Python script to the Google Sheets API. Keep this file secure and don't share it publicly.

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

draftdiff-0.1.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

draftdiff-0.1.0-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file draftdiff-0.1.0.tar.gz.

File metadata

  • Download URL: draftdiff-0.1.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for draftdiff-0.1.0.tar.gz
Algorithm Hash digest
SHA256 850cb433ee348f8bfbd23c7762b32f5ae4e7fd0fdf1552926a5537deeab148a0
MD5 d52695a3c7920c4c3818a60f0b66f3b0
BLAKE2b-256 99e4bd7945948732e6f89416359c69ac0933cc650ad5a321c7807c754ace50c1

See more details on using hashes here.

File details

Details for the file draftdiff-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: draftdiff-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for draftdiff-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b13d326100a0b9809b23df881c8fea90ff906d982dfa52b763d4e009babf4273
MD5 adacbc82126c115cf2e6189f38b6fea0
BLAKE2b-256 73014234cda54c0c1cf59ebb1e0d20a3b3b2bb3c67361fb7b14614bbf32b5a70

See more details on using hashes here.

Supported by

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