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.0.tar.gz (7.0 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.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: depwatch-0.1.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.4.5 CPython/3.11.2

File hashes

Hashes for depwatch-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5b1df9f1979a557f79c41a95919484da8560f0be7c87f49db83e64e4e0ddc3d8
MD5 b4122eb1aa861bfd32565a70a3337f77
BLAKE2b-256 649453ac40e2523fc950a15e0d4192f9186c5b7301db42ed1ce2e7d54d79d1f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: depwatch-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.4.5 CPython/3.11.2

File hashes

Hashes for depwatch-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa743eb252c557c596269c5256538ca336c5b0b935e73dbbe211f85756d5186f
MD5 683323c3a33576c5446c576e1347fb43
BLAKE2b-256 6a2ffd232772ff66d4dfb6b91a46bd11b017244c7d4c8b512bd193c6122e775a

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