Skip to main content

Plastic SCM Repository Activities Reporting

Python command line library to generate Plastic SCM repository activities reports.

Usage

Prerequisite

Our command line utility relies on the following other utilities:

  • cm: Plastic SCM command line.
  • diff: Unix utility that computes and displays the differences between the contents of files
  • diffstat: Unix utility that provides statistics based on the output of diff.

Make sure that you have configured Plastic SCM client application so that it uses the Unix command-line utility diff for comparing text files. This setting needs to be written in the Plastic SCM client application's configuration file $USER/.plastic4/client.conf:

<DiffTools>
  <DiffToolData>
    <FileType>enTextFile</FileType>
    <FileExtensions>*</FileExtensions>
    <Tools>
      <string>/usr/bin/diff -u "@sourcefile" "@destinationfile"</string>
    </Tools>
  </DiffToolData>
  ...
</DiffTools>

Installation

pip install plasticscm-statistics

Execution

usage: cmstats [-h] [--end-time ISO8601] [--logging-level LEVEL] [--server NAME] [-o PATH]
               [--start-time ISO8601]

Plastic SCM repository activities reporting

options:
  -h, --help            show this help message and exit
  --end-time ISO8601
                        specify the latest date of changesets to return. This date is exclusive, so changesets that
                        were made at this date are not returned.
  --logging-level LEVEL
                        specify the logging level (critical, error, warning, info, debug)
  --server NAME         specify the Plastic SCM server to connect to
  -o PATH, --output-file PATH
                        specify the path and name of the file to write in the activity statistics of the Plastic SCM
                        repositories
  --start-time ISO8601
                        specify the earliest date of changesets to return. This date is inclusive, so changesets that
                        were made at this date are returned.

Metadata

Release files for plasticscm-statistics 0.0.14

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

Source distribution (sdist)

Source distribution for plasticscm-statistics 0.0.14
File Size Uploaded
plasticscm_statistics-0.0.14.tar.gz 10.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plasticscm-statistics 0.0.14
File Interpreter ABI Platform
plasticscm_statistics-0.0.14-py3-none-any.whl Python 3 none any Details

Total release size: 25.2 kB

Release files / plasticscm_statistics-0.0.14.tar.gz

Download URL plasticscm_statistics-0.0.14.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
72decb65fccf7ea9f9166fdd59dc83783274969799cf7900ab747c99ecfb0628
BLAKE2b-256 checksum
How to use checksums
63b42005017d999c9b17bf61753b2ca6d0bedc2029853685faaed25bed9fa9c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.6 Darwin/23.1.0

Release files / plasticscm_statistics-0.0.14-py3-none-any.whl

Download URL plasticscm_statistics-0.0.14-py3-none-any.whl
Size 15.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0ca1d2dbf0a17f7367966a2269b5def5e63971a8679c84efcca98bd795f67db
BLAKE2b-256 checksum
How to use checksums
0bd9abf8fc3dcd290bf003459fe4400ca6ada1f5d80695065b85f5cae8f66d05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.6 Darwin/23.1.0

Release history Release notifications | RSS feed

This release

0.0.14 This release

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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