Parses changelog files
Project description
changelog-parser
Yet another python changelog parser.
- Loads data from a
CHANGELOG.md
file using code like:import changelog with open( "CHANGELOG.md", 'rb' ) as fp: changes = changelog.load( fp )
orimport changelog with open( "CHANGELOG.md", 'r' ) as fp: changes = changelog.loads( fp.read() )
- Returns it in the following schema (some types are Python objects and not valid JSON schema):
{ "$schema": "https://json-schema.org/draft-07/schema#", "title": "Loaded Changelog", "type": "object", "properties": { "version": { "oneOf": [ { "type": "string", "pattern": "^[Uu][Nn][Rr][Ee][Ll][Ee][Aa][Ss][Ee][Dd]$" }, { "type": "semver.Version", "description": "Python object from https://pypi.org/project/semver/" } ] }, "date": { "oneOf": [ { "const": null }, { "type": "datetime.date", "description": "Python object from https://docs.python.org/3/library/datetime.html#date-objects; parsed using \"fromisoformat\"" } ] }, "yanked": { "type": "boolean" }, "added": { "$ref": "#/$defs/change_list" }, "changed": { "$ref": "#/$defs/change_list" }, "depreciated": { "$ref": "#/$defs/change_list" }, "removed": { "$ref": "#/$defs/change_list" }, "fixed": { "$ref": "#/$defs/change_list" }, "security": { "$ref": "#/$defs/change_list" }, "compare_url": { "type": "string", "pattern": "^https?:\\/\\/.+" } }, "required": [ "version", "date", "yanked" ], "additionalProperties": false, "$defs": { "change_list": { "type": "array", "items": { "type": "string" } } } }
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
changelog-parser-0.0.3.tar.gz
(12.7 kB
view details)
Built Distribution
File details
Details for the file changelog-parser-0.0.3.tar.gz
.
File metadata
- Download URL: changelog-parser-0.0.3.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd02309592361d97d28230919381027247c8ec787046b67e7e2e08604fd2cfdf |
|
MD5 | 2f0b37b12e34931bfbdc14b7104ef8bc |
|
BLAKE2b-256 | b101bddd169c45a4f0b542377071160c5f2a6d4891e6b6445502b9e32b50d09b |
Provenance
File details
Details for the file changelog_parser-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: changelog_parser-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0b2afaa2ba9a946a7fd784ea39167782cdb0ffd2548211451ba92c477e95d29 |
|
MD5 | 8d7223f407c91ce37d7adb752e461291 |
|
BLAKE2b-256 | c04965f166c23d4a8b18257a80f97b7c72b83f2c59d3e868b0ea20d98fed8f54 |