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.0.tar.gz (5.2 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.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for github_user_activity-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a2fc2bea22102546c71cdf94dce8a170242be232a4eb877e06f1af47f0039e06
MD5 85618b031e4d71a0f3277e94a7e3eb12
BLAKE2b-256 934f5219ebcbf862cc14bdce5b6ee8e8d38415a57e2af859e7fa60037b7ab779

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for github_user_activity-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e75cccf89a7cdb402fba0baf4ce26f25093c0ab151305f9275268e77d654a21
MD5 14447838161bfa3ca2b3af96a7472f81
BLAKE2b-256 907b62dc61f67f9f353f0eaeafe9562358395d556e8cacf413bdac8ae4cb8df4

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