Metadata-Version: 2.3
Name: getignore3
Version: 3.5.3
Summary: A tool to fetch and manage `.gitignore` templates from GitHub with minimal effort
Author: ashkanfeyzollahi@gmail.com
Author-email: ashkanfeyzollahi@gmail.com
Requires-Python: >=3.8
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: appdirs (>=1.4.4,<2.0.0)
Requires-Dist: requests (>=2.32.4,<3.0.0)
Project-URL: Repository, https://github.com/ashkanfeyzollahi/getignore3
Description-Content-Type: text/markdown

# GetIgnore3

<p align="center"><em>😎 Fetch and manage `.gitignore` templates from GitHub with minimal effort</em>
    <br>
    <img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/ashkanfeyzollahi/getignore3">
    <img alt="GitHub License" src="https://img.shields.io/github/license/ashkanfeyzollahi/getignore3">
    <img alt="PyPI - Version" src="https://img.shields.io/pypi/v/getignore3">
</p>

**getignore** is a simple, no-fuss command-line tool for fetching .gitignore templates from the official GitHub gitignore repository. Whether you're starting a new project or tidying up an old one, getignore lets you easily grab the right .gitignore file for your stack — without digging through websites or typing out boilerplate.

```
usage: getignore [-h] [-L] [-l] [-n] [-c] [-o OUTPUT] [-w]
                 [template_name ...]

A tool to fetch and manage `.gitignore` templates from GitHub with minimal effort

positional arguments:
  template_name         Name(s) of gitignore templates to fetch
                        (e.g., Python, Node and etc.)

options:
  -h, --help            show this help message and exit
  -L, --list-cached-templates
                        List cached gitignore templates
  -l, --list-templates  List available gitignore templates
  -n, --no-cache        Don't cache the gitignore template file when
                        downloaded
  -c, --offline         Get the cached gitignore template instead of
                        downloading
  -o, --output OUTPUT   Where to write the gitignore template
                        content to
  -w, --override        Override existing gitignore file instead of
                        appending
```

## Features

* Automatically caches templates for offline use
* Can list available and cached templates
* Customizable output file location and behavior (append or overwrite)
* Simple CLI with minimal setup

## Installation

- You can install it from `pypi` using `pip` (for Microsoft Windows):

```bash
pip install getignore3
```

- Or install it using `pipx` (recommended, for all):

```bash
pipx install getignore3
```

- Or even build it from source!

```
git clone https://github.com/ashkanfeyzollahi/getignore3.git
cd getignore3
python -m build
pipx install dist/*
```

