semvec/pypi-packages huggingface dataset:
professional-python-exercises-2-githubcli 0.1.0a0
Command Line Interface for GitHub as part of the professional python course
License: MIT
Requires Python: >=3.8,<4.0

# Exercise2: GitHub Command line interface (CLI)

## Purpose

This is the second exercise for the professional python course. The purpose is to build a proper CLI using the github API.
The task is (copied from the professional python course): 

Create a python program to interact with GitHub and retrieve data.
Add the following commands:

- Count all stars of all repos of yourself, a specified user or an organization.
- Print out details about yourself, a user or organization.
  Allow a nicely printed format as default and offer output as json too.
- One of the following:
  - (easy) Modify your user description by adding a tea emoji and a heart.
  - (difficult) Set your user status (top-right when clicking on username)
    to a tea emoji with the message "Drinking Tea".

Focus points:

- End-users will use your program so focus on usability
- Integrate previous lessons as much as it makes sense

## Quickstart

### Installing

This repository uses poetry to install the dependencies and taskfile to execute the most basic functionality. 
After having installed taskfile onto your system you can simply use ```task install``` to install the necessary dependendcies into a virtual environment. 4
Besides the dependencies you will need a GitHub Access Token to use this program. Get it [here]("https://github.com/settings/tokens).

### Usage

Promt ```task``` to get a list of the tasks availabe and go for one of the options: 

```bash
$ task
task: Available tasks for this project:
* build:                Builds the puthon package
* docs-publish:         Publish the documentation to gh-pages
* docs-serve:           Serve the documentation locally
* getdetails:           Get details of a given user and print it to console
* getdetailsjson:       Get details of a given user in json
* install:              Installs the dependecies based on the poetry file
* lint:                 Runs formatting and linting
* sbom:                 Generate the Software Bill of Materials
* stars:                Get the number of stars of the given user's repositories
* starsjson:            Get the number of stars of the given user's repositories in json format
* status:               Set the status of your user to something delicous
* test:                 Runs tests on the code
```

The other way of using this tool is directly with calling etiher poetry or native python to start on of the functions, like 

```bash
poetry run python professional_python_exercises_2_githubcli/github_cli.py setstatus
```
bootstraphistogram 0.11.0
Poisson bootstrap histogram.
License: MIT
Requires Python: >=3.6.2,<4.0.0

# bootstraphistogram 

[![Github Build Status](https://img.shields.io/github/workflow/status/davehadley/bootstraphistogram/ci?label=Github%20Build)](https://github.com/davehadley/bootstraphistogram/actions?query=workflow%3Aci)
[![Documentation Status](https://readthedocs.org/projects/bootstraphistogram/badge/?version=latest)](https://bootstraphistogram.readthedocs.io/en/latest/?badge=latest)
[![PyPI](https://img.shields.io/pypi/v/bootstraphistogram)](https://pypi.org/project/bootstraphistogram/)
[![License: MIT](https://img.shields.io/pypi/l/bootstraphistogram)](https://github.com/davehadley/bootstraphistogram/blob/master/LICENSE.txt)
[![Last Commit](https://img.shields.io/github/last-commit/davehadley/bootstraphistogram/dev)](https://github.com/davehadley/bootstraphistogram)

A python package that provides a multi-dimensional histogram with automatic Poisson bootstrap re-sampling.

# Installation

Install with pip from PyPI:
```bash
python -m pip install bootstraphistogram
```

# Usage Instructions

For usage instructions and examples see the documentation at: <https://bootstraphistogram.readthedocs.io>.

# Development Instructions

For Linux systems, the provided setup script will setup a suitable python virtual environment 
and install pre-commit-hooks.
```bash
source setup.sh
```

Alternatively, a `Dockerfile` is provided for a consistent development environment.
```bash
docker build -tbootstraphistogram:latest . && \
docker start bootstraphistogram && \
docker run --name bootstraphistogram -it -d bootstraphistogram:latest /bin/bash
```

This package uses [Python poetry](https://python-poetry.org/) for dependency management.
```bash
poetry install
```

To run the unit tests run:
```bash
poetry run pytest
```

To build documentation run:
```bash
poetry run pip install -r docs/requirements.txt && \
poetry run sphinx-build -W docs docs-build
```

To auto-build the documentation while editing:
```
poetry run pip install sphinx-autobuild && sphinx-autobuild docs docs/_build/html 
```
and find your documentation on <http://localhost:8000>.

To generate a test coverage report run:
```bash
poetry run coverage run -m pytest tests && poetry run coverage report -m
```