semvec/pypi-packages huggingface dataset:
gh-pr-commenter 1.0.0
Simple Script to post a github comment to a given PR based on a jinja2 template
Requires Python: >=3.5
Keywords: github pr-comment

# github-pr-log-commenter

Simple script that posts a comment to a Github PR based on a jinja2 template. This template has two simple variables:

`{{pullRequestAuthor}}`: Will be replaced by the author of the pull request

`{{contents}}`: Will be replaced by the contents of a given file (e.g. a log)

You need to define the `GH_TOKEN` environment variable with at least the repo scope.

# usage:

```
usage: github-pr-commenter.py [-h] repo prnumber template logfile

positional arguments:
  repo        Organization and repository (e.g. xbmc/repo-plugins)
  prnumber    PR number (e.g. 5)
  template    Jinja 2 template file to generate a comment from
  logfile     Log file to parse (e.g. mylog.log)

optional arguments:
  -h, --help  show this help message and exit
```

## Example template

```
## Something was successfull
Hey @{{pullRequestAuthor}},
we found no major flaws with your code. Still you might want to look at this logfile, as we usually suggest some optional improvements.


<details>
  <summary>
    <strong>
     Expand log file
    </strong>
  </summary>

` ` `
{{contents}}
` ` `

```
pertdist 0.1.1
A scipy-like implementation of the PERT distribution
Requires Python: >=3.6

# PertDist
A scipy-like implementation of the [PERT distribution](https://en.wikipedia.org/wiki/PERT_distribution).

## Motivation
In my current job I work a fair amount with the PERT (also known as Beta-PERT) distribution, but there's currently no implementation of this in scipy. To make up the deficency I crafted up my own PERT distribution class, leveraging numpy and scipy to properly flesh out the functionality. The API is heavily modeled after the scipy.stats methods API's.

## Build Status
TODO: when I figure out how in blazes to add these ;-)

## Installation
Installation is straightforward: `pip install pertdist`

## Code Example
Usage is very similar to what you would find in a scipy.stats class as well:

```
from pert import PERT
import seaborn as sns

pert = PERT(10, 190, 200)
sns.kdeplot(pert.rvs(10000))
```

On running this you should see a chart of a heavily low/left skewed distribution (recommended running in Jupyter or Spyder).

## Roadmap
* Develop unit tests
    - Especially around flexible identification of various data types, eg: accepting DataFrames, Series, lists, etc.
* Build out the following scipy function analogues:
    - sf
    - logsf
    - ppf
    - isf
    - moment
    - entropy
    - fit
    - expect
    - median
    - mean
    - var
    - std
    - stats (implemented, but needs refinement)
    
A version history is located [here](https://github.com/Calvinxc1/PertDist/blob/master/VersionHistory.md)

## Contributing
Since this is my first published project, I'm pretty relaxed about contributions. Feel free to send me a pull request with any updates/changes/etc you have in mind!

Note that I do follow [Vincent Driessen's Git Branching Model](https://nvie.com/posts/a-successful-git-branching-model/) rather rigorously. If you do contribute, it'll most likely be pulled into the `develop` branch.

Also, I'm rather fond of [Semantic Commit Messages](https://seesparkbox.com/foundry/semantic_commit_messages), but I'm only picky about those for my own contributions, feel free to use wahtever commit message style you'd like.

## License
This project uses the [GNU General Public License](https://github.com/Calvinxc1/PertDist/blob/master/LICENSE).

Short version: Have fun and use it for whatever, just make sure to attribute me for it (-:
file.io-cli 1.0.4
Command-line tool to upload files to https://file.io
Requires Python: >=3.3.0,<4.0.0

# file.io-cli

    $ pip install file.io-cli

Command-line tool to upload files to https://file.io

  [file.io]: https://www.file.io

### Synopsis

```
$ file.io --help
usage: file.io [-h] [--version] [-e E] [-n NAME] [-q] [-c] [-t PATH] [-z] [file]

Upload a file to file.io and print the download link. Supports stdin.

positional arguments:
  file                  the file to upload

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  -e E, --expires E     set the expiration time for the uploaded file
  -n NAME, --name NAME  specify or override the filename
  -q, --quiet           hide the progress bar
  -c, --clip            copy the URL to your clipboard
  -t PATH, --tar PATH   create a TAR archive from the specified file or directory
  -z, --gzip            filter the TAR archive through gzip (only with -t, --tar)
```

### Examples

Upload a file and copy the link:

```
$ file.io hello.txt -c
[============================================================] 100% (15 bytes / 15 bytes)
https://file.io/pgiPc2 (copied to clipboard)
$ cat https://file.io/pgiPc2
Hello, File.io!
```

Upload a compressed archiveCompress a file/directory and upload it (streaming):

```
$ file.io -zt AllMyFiles/
/ (55MB)
https://file.io/sf2La
```

Upload from stdin:

```
$ find .. -iname \*.py | file.io -n file-list.txt
/ (312KB)
https://file.io/uRglUT
```

### Changelog

#### v1.0.4

* Fix missing entrypoint in new setup script

#### v1.0.3

* Fix declared dependencies in setup script

#### v1.0.2

* Replaced `time.clock` (removed in python 3.8) with `time.perf_counter`
* Minimum Python version is 3.3

#### v1.0.1

* Add `-t, --tar` and `-z, --gzip` options
* Fix NameError when using `-c, --clip`
* Fix progress bar left incomplete

#### v1.0.0

* Initial version