Skip to main content

CLI tool to fetch and display GitHub user activity

Project description

GitHub User Activity CLI

A command-line tool to fetch and display recent activity of a GitHub user.

Features

  • Fetch recent activity of any GitHub user
  • Display activity in a human-readable format
  • Handle errors gracefully
  • Limit the number of events displayed

Installation

From Source

  1. Clone the repository:
git clone https://github.com/yourusername/github-user-activity.git
cd github-user-activity
  1. Install the package:
pip install .
  1. For development (includes pytest):
pip install ".[dev]"

Usage

# Display recent activity for a GitHub user
github-activity <username>

# Display only the 5 most recent events
github-activity <username> --limit 5

# Show help
github-activity --help

# Show version
github-activity --version

Example

$ github-activity octocat
Recent activity for GitHub user 'octocat':

- Pushed 3 commit(s) to octocat/Hello-World
- Opened issue #123 in octocat/Hello-World
- Created branch 'feature/new-feature' in octocat/Hello-World
- Starred microsoft/vscode

Development

Requirements

  • Python 3.6+

Setup Development Environment

# Clone the repository
git clone https://github.com/yourusername/github-user-activity.git
cd github-user-activity

# Install in development mode with testing dependencies
pip install ".[dev]"

Project Structure

This project uses modern Python packaging with pyproject.toml for configuration, following PEP 621 standards. No setup.py file is needed.

Running Tests

# Run all tests
pytest

# Run with coverage report
pytest --cov=github_activity

License

MIT

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

github_user_activity-0.1.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

github_user_activity-0.1.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file github_user_activity-0.1.1.tar.gz.

File metadata

  • Download URL: github_user_activity-0.1.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for github_user_activity-0.1.1.tar.gz
Algorithm Hash digest
SHA256 58f3208e6fcb03b08c97db03f022336c8e2d85e27a1fdd59d1af2aecac3a2f03
MD5 6a0a2def50016aaa7c9c9a6e882a1d69
BLAKE2b-256 416abf5efd88038c580cf89f37aa40db00770c1ffc5e0a6d692586ac70f5ddc8

See more details on using hashes here.

File details

Details for the file github_user_activity-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for github_user_activity-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fd06316ea431e349345a17a9af591dacfaacdee88456826c4fbcfc7f2470fa9e
MD5 f8725642e270d35088ed060979974f2e
BLAKE2b-256 0b3299afa128676ec082ecb239e9201190968c6ce979b028d4087750ff79e6a3

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