semvec/pypi-packages huggingface dataset:
gitignorefile 1.1.2
A spec-compliant `.gitignore` parser for Python
License: MIT
Keywords: git,gitignore

# `gitignorefile`

[![Black](https://github.com/excitoon/gitignorefile/actions/workflows/black.yml/badge.svg)](https://github.com/excitoon/gitignorefile/actions/workflows/black.yml)
[![Linux](https://github.com/excitoon/gitignorefile/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/excitoon/gitignorefile/actions/workflows/ubuntu.yml)
[![OS X](https://github.com/excitoon/gitignorefile/actions/workflows/macos.yml/badge.svg)](https://github.com/excitoon/gitignorefile/actions/workflows/macos.yml)
[![Windows](https://github.com/excitoon/gitignorefile/actions/workflows/windows.yml/badge.svg)](https://github.com/excitoon/gitignorefile/actions/workflows/windows.yml)
[![PyPI](https://badge.fury.io/py/gitignorefile.svg)](https://badge.fury.io/py/gitignorefile)

A spec-compliant `.gitignore` parser for Python.

## Installation

```
pip3 install gitignorefile
```

## Usage

### `gitignorefile.parse()`

Parses single `.gitignore` file. Suppose `/home/michael/project/.gitignore` contains the following:

```
__pycache__/
*.py[cod]
```

Then:

```python3
import gitignorefile

matches = gitignorefile.parse("/home/michael/project/.gitignore")
matches("/home/michael/project/main.py") # False
matches("/home/michael/project/main.pyc") # True
matches("/home/michael/project/dir/main.pyc") # True
matches("/home/michael/project/__pycache__") # True
```

### `gitignorefile.ignore()`

`shutil.copytree()` ignore function which checks if file is ignored by any `.gitignore` in the directory tree.

Example:

```python3
import shutil
import gitignorefile

shutil.copytree("/source", "/destination", ignore=gitignorefile.ignore())
```

### `gitignorefile.ignored()`

Checks if file is ignored by any `.gitignore` in the directory tree.

```python3
import gitignorefile

gitignorefile.ignored("/home/michael/project/main.py") # False
```

### `gitignorefile.Cache`

Caches `.gitignore` rules discovered in the directory tree.

```python3
import gitignorefile

matches = gitignorefile.Cache()
matches("/home/michael/project/main.py") # False
matches("/home/michael/project/main.pyc") # True
matches("/home/michael/project/dir/main.pyc") # True
matches("/home/michael/project/__pycache__") # True
```

### Custom ignore file sources

You could override files, that will be used to fetch ignore rules. Default value is `[".gitignore", ".git/info/exclude"]`.

```python3
import gitignorefile

matches = gitignorefile.Cache(ignore_names=[".mylovelytoolignore"])
matches("/home/michael/project/main.py") # False
matches("/home/michael/project/main.pyc") # True
matches("/home/michael/project/dir/main.pyc") # True
matches("/home/michael/project/__pycache__") # True
```


## Credits

- https://github.com/snark/ignorance by Steve Cook
- https://github.com/mherrmann/gitignore_parser by Michael Herrmann
- https://github.com/bitranox/igittigitt by Robert Nowotny
- https://github.com/cpburnz/python-path-specification by Caleb Burns
torchrecorder 1.0.3
Record execution graphs of PyTorch neural networks
License: MIT

`torchrecorder`
===============

![](https://readthedocs.org/projects/torchrecorder/badge/?version=latest&style=flat)

A small package to record execution graphs of neural networks in PyTorch.
The package uses hooks and the `grad_fn` attribute to record information.  
This can be used to generate visualizations at different scope depths. 

Licensed under MIT License.
View documentation at https://torchrecorder.readthedocs.io/

## Installation

Requirements:

* Python3.6+
* [PyTorch](https://pytorch.org) v1.3 or greater (the `cpu` version)
* The [Graphviz](https://graphviz.gitlab.io) library and `graphviz` [python package](https://graphviz.readthedocs.io/en/stable/manual.html).


Install this package:

```
$ pip install torchrecorder
```

## Acknowledgements

This is inspired from [`szagoruyko/pytorchviz`](https://github.com/szagoruyko/pytorchviz).  This package
differs from `pytorchviz` as it provides rendering at multiple depths.

Note that for rendering a network during training, you can use TensorBoard and
[`torch.utils.tensorboard.SummaryWriter.add_graph`](https://pytorch.org/docs/stable/tensorboard.html#torch.utils.tensorboard.writer.SummaryWriter.add_graph),
which records and renders to a `protobuf` in a single step.  The intended usage of `torchrecorder` is for
presentation purposes.
slack-hooks 0.4.1
Slack client for webhooks with Block Kit builder.
License: MIT
Requires Python: >=3.8,<4.0
Keywords: slack,webhooks,block kit

 # slack-hooks

[![Version](https://img.shields.io/pypi/v/slack-hooks?logo=pypi)](https://pypi.org/project/slack-hooks)
[![Quality Gate Status](https://img.shields.io/sonar/alert_status/fedecalendino_slack-hooks?logo=sonarcloud&server=https://sonarcloud.io)](https://sonarcloud.io/dashboard?id=fedecalendino_slack-hooks)
[![CodeCoverage](https://img.shields.io/sonar/coverage/fedecalendino_slack-hooks?logo=sonarcloud&server=https://sonarcloud.io)](https://sonarcloud.io/dashboard?id=fedecalendino_slack-hooks)