Skip to main content

A Simple command-line tool for collecting the times of various events in a project's lifecycle

Project description

depwatch

depwatch is a simple command-line tool for collecting the times of various events in your project's lifecycle, from code commits to deployments. Event times are retrieved from repository management tools (like GitHub) and CI tools (like CircleCI).

Installation

Install depwatch using pip:

$ pip install depwatch

Usage

Execute the command with your access tokens.

GITHUB_ACCESS_TOKEN=<your_token> CIRCLECI_ACCESS_TOKEN=<your_token> depwatch <user_name>/<repository_name>

The results are output to the output.csv file.

$ cat output.csv
first_committed_at,merged_at,deployed_at
2023-02-25T00:48:18+00:00,2023-02-25T00:57:06+00:00,2023-02-25T00:58:11+00:00
2023-02-25T00:46:52+00:00,2023-02-25T00:54:05+00:00,2023-02-25T00:55:12+00:00
2023-02-25T00:43:47+00:00,2023-02-25T00:45:33+00:00,2023-02-25T00:46:39+00:00
...

Note: Using the .env file

Alternatively, you can use the .env file. Create the .env file in the directory where you want to run the command as follows.

cp .env.example .env

Set the values according to the instructions in the .env file.

Note: Scope of the GitHub Personal Access Token

GitHub offers two types of personal access tokens, fine-grained personal access tokens and classic personal access tokens. For personal repositories, you can use both. For organizatio repositories, we recommend using classic tokens, as we know that fine-grained tokens do not allow you to get private repositories.

If you use fine-grained personal access tokens, specify read-only permissions for Contents, Metadata, and Pull requests. If you use classic personal access tokens, specify repo scope.

Contributing

Comming soon!

License

This code is released under the MIT License. See LICENSE for details.

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

depwatch-0.1.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

depwatch-0.1.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file depwatch-0.1.1.tar.gz.

File metadata

  • Download URL: depwatch-0.1.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.4.8 CPython/3.10.6

File hashes

Hashes for depwatch-0.1.1.tar.gz
Algorithm Hash digest
SHA256 167814f4f7473ff29041f7307e3792257433a20aab9caef55c32e4800acba513
MD5 393ed9eaf4df527a86aed7bc3314b8bf
BLAKE2b-256 929ce18b2b3be148b8474b9b3ff8cd4d40972849d36ee59f8590ae80286ea4cd

See more details on using hashes here.

File details

Details for the file depwatch-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: depwatch-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.4.8 CPython/3.10.6

File hashes

Hashes for depwatch-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd2062d76818c46c7fc7f21897929036e595cf390f65a528c534077ba35e1ff3
MD5 0c37a80b724327050ec59efa2aa77018
BLAKE2b-256 d1195e213c4e67264cc70fd039d23974d780b990b8b55e48b5ada0771bf8e74e

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