A changelog finder and parser.
Project description
A changelog finder and parser with command line interface for packages available on pypi, npm and rubygems. Originally developed for pyup.io.
Installation
To install changelogs, run this command in your terminal:
$ pip install changelogs
Usage
To use changelogs in a Python project:
import changelogs logs = changelogs.get("flask") logs = changelogs.get("babel", vendor="npm") logs = changelogs.get("bundler", vendor="npm")
Or, from the command line:
changelogs flask changelogs babel npm changelogs bundler gem
If you are on macOS, you can chain the open command:
changelogs babel npm >> babel.log && open babel.log
About
When trying to get a changelog for a given package, there are a bunch of problems:
There is no central place to store a changelog. If a project has a changelog, it’s most likely somewhere in the git repo at all kinds of different places. This makes it hard to find.
The package index meta data often has no direct link to the git repo. This makes the repo hard to find.
There is no changelog standard. Everyone uses a different approach. This makes it hard to parse.
This project is trying to solve this by:
first querying the package vendor for package meta data like the homapage or docs URL.
if the meta data doesn’t contain a valid URL to a repo, visit all available URLs and scrape them to find one.
if there is a valid repo URL, visit the repo and look for possible changelogs like Changes.txt, NEWS.md or history.rst.
fetch the content and somewhat try to parse it.
History
0.3.0 (2016-01-03)
allow to swap in the find_changelogs function
0.2.0 (2016-12-27)
added support for rubygems
added support for npm
0.1.0 (2016-12-19)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
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
Hashes for changelogs-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb5a147fed71ff1d2862dc4b65317625663677f9bf5dcc0e2d24f80f9c488bde |
|
MD5 | f63aa004fe23328b8c4d4b1742915476 |
|
BLAKE2b-256 | 7e9dace59d56f81074fee07dbb79e6cc82bb2959f52d2c67c45d30f978c6965e |