Skip to main content

A Trac plugin for project statistics

Project description

# TracStats

The TracStats project is a plugin for the [trac](https://trac.edgewall.org/) project management tool.

The TracStats plugin adds a “Stats” tab to the trac project. Underneath this tab can be found statistics about changesets, wiki pages, and tickets.

Some features include:

  • Recent activity (last 30 days) showing top 10 developers, projects, and paths within the repository.

  • Detailed statistics of source code development:

    • Total files by time

    • Commits by time, author, month, day of week, hour of day

    • Recent commits

    • Activity by time, author, project, filetype, change type

    • Most active paths, files

    • Commit cloud (built from checkin comments)

  • Detailed statistics of Trac wiki pages:

    • Total pages by time

    • Edits by author

    • Latest wiki pages changed

    • Most active wiki pages

    • Largest wiki pages

  • Detailed statistics of Trac tickets:

    • Open tickets by time

    • Tickets by author, component

    • Most active tickets

    • Oldest open tickets

    • Latest tickets reported, changed

  • Drill down by author or path within the repository for more information.

The TracStats plugin supports Trac installations with SQLite, MySQL, and PostgreSQL database backends.

The TracStats plugin has been tested with Subversion, Mercurial, and Git version control systems.

## Installation

The TracStats plugin can be installed using standard:

` $ pip install tracstats `

Or, grab the sources and build using:

` $ python setup.py install `

## Configuration

It is configured in the trac.ini file by enabling and configuring:

`ini [components] tracstats.* = enabled `

The STATS_VIEW permission is used to control access to the statistics pages.

In addition, an optional “project root” within your repository can be configured as the base for all projects and source code statistics:

`ini [stats] root = path/to/projects `

## Troubleshooting

If you use Git (i.e. the GitPlugin for Trac) and are not able to see any of the code statistics, you likely need to configure it to cache the repository to make it work:

`ini [git] cached_repository = true persistent_cache = true `

You might need to run trac-admin <project-env> repository resync <reponame> after the change.

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

TracStats-0.6.tar.gz (138.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

TracStats-0.6-py2-none-any.whl (180.3 kB view details)

Uploaded Python 2

File details

Details for the file TracStats-0.6.tar.gz.

File metadata

  • Download URL: TracStats-0.6.tar.gz
  • Upload date:
  • Size: 138.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for TracStats-0.6.tar.gz
Algorithm Hash digest
SHA256 d8b09dd53d3c06dc41563fa7b9cdbb34ec67b258cd0b80c8487cebfd39325cd6
MD5 012808788d4e998e309b07b3723e0e32
BLAKE2b-256 16514c65557d03282239c86ab37969d789d87823195e1ecd5fea6ec60733c179

See more details on using hashes here.

File details

Details for the file TracStats-0.6-py2-none-any.whl.

File metadata

File hashes

Hashes for TracStats-0.6-py2-none-any.whl
Algorithm Hash digest
SHA256 e5478e032fa8fdb7383d8b41ab18aaceaa67f31b34f3940736908c98e06f929b
MD5 547253e1518023cc2a84e6bfd4d3ae2b
BLAKE2b-256 dcb105646ae3bb44e0d89812b56568a1aa71ad14374a6847f1f330237fff364b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page