Git Product home page Git Product logo

gitauthors's Introduction

GitAuthors

GitAuthors

GitAuthors is simple tool that prints a quick summary of a repository's authors, as collated by commits. Summary output includes each author's name, email, number of commits, and date of last commit.

Once installed, GitAuthors is available via the gitauthors command.

Usage

To use, provide gitauthors the URL of a respository and let it go to work. gitauthors will, in turn:

  1. Check out the repository into a temporary directory.
  2. Parse the repository's log history.
  3. Collate a list of the repository's authors and their commits.
  4. Output a nicely formatted summary of the repository's authors and their commits.
  5. Clean up after itself and delete the temporary directory.

Example:

$ gitauthors https://github.com/gruns/gitauthors
Ansgar Grunseid  [email protected]              16 commits, latest on Aug 06, 2018
Ansgar Grunseid  [email protected]   1  commit, latest on Jul 17, 2018

That's it. Simple.

Of course gitauthors can also be imported and used programmatically, too.

>>> from gitauthors import collateGitAuthors, formatGitAuthors
>>>
>>> authors = collateGitAuthors('https://github.com/gruns/gitauthors')
>>> authors[0]
('[email protected]', 'grun', 46, time.struct_time(tm_year=2018, tm_mon=7, tm_mday=18, tm_hour=7, tm_min=8, tm_sec=14, tm_wday=2, tm_yday=199, tm_isdst=0))
>>>
>>> formatted = formatGitAuthors(authors)
>>> print(formatted)
grun             grunseid@gmail.com              46 commits, latest on Jul 18, 2018
Ansgar Grunseid  gruns@users.noreply.github.com   1  commit, latest on Jul 18, 2018

Installation

Installing GitAuthors with pip is easy.

$ pip install gitauthors

gitauthors's People

Contributors

gruns avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gitauthors's Issues

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 8: ordinal not in range(128)

py gitauthors https://github.com/vibora-io/vibora Traceback (most recent call last): File "gitauthors", line 145, in <module> main() File "gitauthors", line 139, in main out = gitauthors(url) File "gitauthors", line 130, in gitauthors lines.append(tmp.format(name, email, numCommits, latestCommitDate)) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 8: ordinal not in range(128)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.