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.2.tar.gz (7.9 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.2-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for depwatch-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f9969a90a2683f447092271076733f1c3a5ae1046ad6c6b4010eed1b220cdf09
MD5 b8d98bf6a5da70f0870088f4d854bc89
BLAKE2b-256 8d3c7eef45b4df03542c52e287782f5c9b0a6d8019174d65d0ceb106aed52ffe

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for depwatch-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d7d38d0cd90db26c7a54cc5b05575ee40be13c86bc6b7841481e82c688df55fe
MD5 3cfc9ce5ba48c6c2e6807e03265d3d46
BLAKE2b-256 4c26281721394a20c5b309a54e0d14b4c1d83b5bcb9edd2ec19d6dd572f5e469

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