Skip to main content

Simple Changes

MPL Python PyPI version

Simple Changes is a dead-simple changelog format that keeps track of changes and call them programmatically. The file format is dead-easy to follow, and you can use this package to parse the file and get information in the changelog. Simple Changes is used in Unscripted to parse the game's changelog and present the latest version information to players, but this library can be used anywhere.

Requirements

  • Python 2.7+
  • Poetry package manager (for building)

Getting started

Quick Start: Install on PyPI

Simple Changes is bundled in Unscripted, but you can install it into your projects anywhere from PyPI with pip:

pip install simplechanges

Install from source

To install Simple Changes from the source code, first clone the repository from GitHub via git clone. You'll also need to install Poetry. In the root of the source, run the following commands:

- poetry install
- poetry build

The resulting wheel files will be available in the dist directory.

Syntax

  • Comments are wrapped in /* and */.
  • Versions are denoted by square brackets: [v1.0.0].
  • Notes are denoted with dashes in the beginning and end with a newline.

Note: To get the latest version to work in the parser, always place the latest version at the top of the file.

Example file

/*
    Changelog Test
*/

[v1.0.1]
- Made a small bugfix.

[v1.0.0]
- Launched!
- I ate cheese.

Usage

Using the package is relatively easy. To get the latest version in the changelog, assuming the changelog builds up:

from simplechanges import SimpleChangesParser

changelog = SimpleChangesParser("changelog.changes")
changelog.parse()
version, notes = changelog.latest

After parsing, you also can browse for a specific version:

from simplechanges import SimpleChangesParser

changelog = SimpleChangesParser("changelog.changes")
changelog.parse()
version, notes = changelog.versions["v1.0.0"]

License

This code is licensed under the Mozilla Public License, v2.0.

Metadata

Release files for simplechanges 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simplechanges 0.1.0
File Size Uploaded Provenance
simplechanges-0.1.0.tar.gz 9.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for simplechanges 0.1.0
File Interpreter ABI Platform
simplechanges-0.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 19.0 kB

Release files / simplechanges-0.1.0.tar.gz

Download URL simplechanges-0.1.0.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ffddee399a3906b479f019b6c915c3d80e506278c0475fd98f6243bba9fdc679
BLAKE2b-256 checksum
How to use checksums
9e53dcfdad340664cb049980768a9aea8cfea5a8aae37c1fe0c697521a5fec1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.8.5 Darwin/20.0.0

Release files / simplechanges-0.1.0-py2.py3-none-any.whl

Download URL simplechanges-0.1.0-py2.py3-none-any.whl
Size 9.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0904c9d3368b015fe8282f51269d52678e7ebac1dc5109af14c5abe243c316a5
BLAKE2b-256 checksum
How to use checksums
2af89bdd4f728ab8d9eeb19d2acb0f08c3c1cbf863ab3bf2c514b811a24ce406
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.8.5 Darwin/20.0.0

Security for simplechanges 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page