Git Product home page Git Product logo

accountmanager's Introduction

accountmanager

Application Install

Prerequisites

  1. Google Chrome - Initial Token Auth workflow
  2. Python 3.8 - 3.11 - To run the script
  3. Google API Service Account Key - to access Google sheets.
  4. Poetry - To build the code locally (optional)

Installation

pip install https://github.com/pattertj/accountmanager/releases/download/v2.0.0/accountmanager-2.0.0-py3-none-any.whl

Troubleshooting

  1. accountmanager --help will list the available command options.
  2. The first time accessing TDA will require some credentials, it can be a bit slow the first time. These are stored in your local keychain. After that, the json token is stored locally to the project.
  3. I found that I needed to update by Google API token by wrapping it in a {"web": {ORIGINAL TOKEN} } wrapper. See below for an example.
{ "web" :
    {
        "type": "service_account",
        "project_id": "proj id",
        "private_key_id": "SECRETS",
        "private_key": "SECRET_STUFF",
        "client_email": "SECRET",
        "auth_uri": "https://accounts.google.com/o/oauth2/auth",
        "token_uri": "https://oauth2.googleapis.com/token",
        "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
        "client_x509_cert_url": "SECRETS"
    }
}

Development Setup

Pull and Install

git clone https://github.com/pattertj/accountmanager.git
poetry install

Setup Pre-Commit Hooks

poetry run pre-commit install -t pre-commit
poetry run pre-commit install -t pre-push

you ever need to skip these hooks you can run git commit --no-verify or git push --no-verify

accountmanager's People

Contributors

pattertj avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.