GeezerVison is showing pypi.org — dinghy
dinghy 1.4.1
Dinghy daily digest tool
Dinghy
Dinghy, a GitHub activity digest tool.
Dinghy uses the GitHub GraphQL API to find recent activity on releases, issues
and pull requests, and writes a compact HTML digest like this.
Getting Started
Install dinghy:
$ python -m pip install dinghy
To run dinghy you will need a GitHub personal access token. The scopes
you need to assign to it depend on what repos you’ll be accessing. If you
are only accessing public repos, then you don’t need any scopes. If you
will be accessing any private repos, then you need the “repo” scope. Create
a token and define the GITHUB_TOKEN environment variable with the value:
$ export GITHUB_TOKEN=ghp_Y2oxDn9gHJ3W2NcQeyJsrMOez
Then run dinghy with a GitHub URL:
$ dinghy https://github.com/Me/MyProject
Wrote digest: digest.html
You will have a digest of the repo’s last week of activity in digest.html.
It will look something like this.
You can also write a YAML configuration file to digest multiple sources, or
with different time periods:
$ dinghy my-dinghy-config.yaml
Wrote digest: proj1.html
Wrote digest: proj2-daily.html
Wrote digest: proj2-weekly.html
Extra arguments specify which digests to write:
$ dinghy my-dinghy-config.yaml proj1.html
Wrote digest: proj1.html
Configuration
Dinghy configuration is read from a YAML file (dinghy.yaml by default).
Here’s an example:
digests:
- digest: lastweek.html
title: My projects last week
since: 1 week
items:
- https://github.com/orgs/myorg/projects/17
- https://github.com/orgs/anotherorg/projects/8
- https://github.com/myorg/myrepo/pulls
- digest: hotnews.html
title: Today's news
since: 1 day
items:
- url: https://github.com/orgs/anotherorg/projects/8
home_repo: anotherorg/wg
- https://github.com/myorg/churnchurn/issues
- digest: all_prs.html
since: 1 day
items:
- search: org:myorg is:pr
title: MyOrg pull requests
defaults:
ignore_users:
- app-user
- fake-bot
The digests clause is a list of digests to produce. The defaults
clause sets defaults for the digest options in the rest of the file. Each
digests clause specifies what to digest:
The digest setting is the HTML digest file to write.
The since setting indicates how far back to look for activity. It can use
units of weeks, days, hours, minutes and seconds, and can also be
abbreviated, like 1d6h. Using since: forever will include all
activity regardless of when it happened. If since is omitted, it
defaults to one week. You can specify --since=<SINCE> on the dinghy
command line to provide an explicit value.
The items setting is a list of things to report on, specified in a few
different ways:
The url setting is a GitHub URL, in a number of forms:
An organization project URL will report on the issues and pull requests
in the project. Your GitHub token will need the “read:project” scope.
A URL to a repo will report on the issues, pull requests and releases in
the repo.
A URL to a repo’s issues will report on the issues in the repo.
A URL to a repo’s pull requests will report on the pull requests in the
repo.
A URL to a repo’s releases will report on the releases in the repo.
Any of these URLs can point to a GitHub Enterprise installation instead
of https://github.com.
The search setting can specify a GitHub search query to find issues or
pull requests. The query will have an updated: term added to it to
account for the since: setting.
If an item only needs to specify a GitHub URL, then it can simply be the
URL string.
The optional title setting will be used to construct the title
and main header of the HTML page.
The template setting is the name of a Jinja2 template file to use to
produce the digest. It defaults to “digest.html.j2”, which is packaged with
dinghy. The data passed to the template is under-specified; if you want to
write a template of your own, model it on the built-in digest.html.j2.
Items can have additional options:
By default, no activity is reported for bot users. If you want to include
them, use include_bots: true.
Some applications perform actions using real user accounts, but you’d like to
ignore them anyway. You can list those user names that should be ignored in
the ignore_users setting.
Digests can have an explicit title set with the title setting.
Options for organization projects include:
Daily Publishing
The sample digest is published daily using a GitHub Action from
its own repo: nedbat/dinghy_sample. You can use it as a
starting point for your own publishing.
There’s also a separate project which sends a daily email
of GitHub activity.
Contributors
Thanks to all who have helped:
Ned Batchelder
Andreas Motl
Bill Mill
Doug Hellmann
Henry Gessau
Lucas Taylor
Quentin Pradet
Simon de Vlieger
Changelog
1.4.1 — 2025-04-03
Fixed
Fixed the import of backports so people can use Python newer than 3.10.
Thanks, Simon de Vlieger.
Fixed a link in the README and added some badges.
1.3.0 — 2023-07-31
Added
The since date can now be specified on the command line with --since.
This will override any specification in the YAML file.
The since value can be specified as a specific ISO 8601 date or datetime,
closing issue 26.
0.15.0 — 2022-11-09
Added
Show releases in the digest. Thanks, Simon de Vlieger.
A new setting include_bots: true will include pull requests, issues, or
comments created by bot users. The default remains False, to exclude them.
Closes issue 25.
0.14.0 — 2022-10-25
Added
Now a CLI command is registered so you can use dinghy as a command
instead of python -m dinghy (though that still works).
You can now specify since: forever to include all activity regardless of
when it happened.
0.13.4 — 2022-10-06
Fixed
Comments on pull requests were only filtered by their age, not their authors,
so bot comments, and comments by “ignored users” were still included. This
is now fixed.
0.13.1 — 2022-08-03
Fixed
On Windows, an alarming but harmless error would appear when finishing.
This is now fixed, closing issue 9. Thanks, Carlton Gibson.
0.11.2 — 2022-04-12
Fixed
Pull requests with many reviews would skip some reviews. Now all pull
request data is fully retrieved.
On large digests, GitHub sometimes returns 403 as a rate limit. Retry when
this happens to finish the queries.
0.10.0 — 2022-03-28
Changed
Pull request data was not properly displayed: comments weren’t included in
the digest that should have been.
Pull request comments older than the cutoff date will be included if they are
needed to show the discussion threads of newer comments. The old comments
are shown in gray to help stay focused on recent activity.
Parsing of time durations was made stricter, so that “1 month” isn’t
mistaken for “1 minute”. Fixes issue 7
0.9.0 — 2022-03-17
Added
GitHub enterprise support: you can use URLs pointing to your own GitHub
Enterprise installation. Only a single host can be used. Thanks, Henry
Gessau.
A “search:” entry in the configuration file will find issues or pull requests
matching the query.
Items in the configuration file can have title: to set an explicit title.
0.7.0 — 2022-03-12
Added
The command line now accepts a GitHub URL to quickly get a week’s digest of
activity from a repo (or issues, pull requests, etc).
The logging level can now be specified with the -v/--verbosity
command-line option.
0.3.0 — 2022-02-27
Added
The configuration file can be specified as the argument on the command line.
GitHub icons decorate pull requests, issues, and comments to distinguish them
and indicate their status.
Changed
The configuration file syntax changed. Now there is a top-level digests
clause and an optional defaults clause.
The bots setting is now called ignore_users.
Pull request review threads are presented hierarchically.
0.2.0 — 2022-02-21
Added
Items can have options. Organization projects have a home_repo option so
that issues from other repos will get an indication of the other repo.
Organizatons can be searched for pull requests.
If dinghy hits a GraphQL API rate limit, it will sleep until the limit is
reset.
Don’t report on activity by bot users. The bot setting can be used to
list user accounts that should be considered bots.
Key dates
PyPI data
Data sourced directly from PyPI's database.
1 maintainer
PyPI data
Data sourced directly from PyPI's database.
Classifiers
-
Development Status
-
Intended Audience
-
Programming Language
Metadata
Key dates
PyPI data
Data sourced directly from PyPI's database.
1 maintainer
PyPI data
Data sourced directly from PyPI's database.
Classifiers
-
Development Status
-
Intended Audience
-
Programming Language
Release files for dinghy 1.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 78.9 kB
Security for dinghy 1.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
|