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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b1df9f1979a557f79c41a95919484da8560f0be7c87f49db83e64e4e0ddc3d8
|
|
| MD5 |
b4122eb1aa861bfd32565a70a3337f77
|
|
| BLAKE2b-256 |
649453ac40e2523fc950a15e0d4192f9186c5b7301db42ed1ce2e7d54d79d1f5
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa743eb252c557c596269c5256538ca336c5b0b935e73dbbe211f85756d5186f
|
|
| MD5 |
683323c3a33576c5446c576e1347fb43
|
|
| BLAKE2b-256 |
6a2ffd232772ff66d4dfb6b91a46bd11b017244c7d4c8b512bd193c6122e775a
|