Skip to main content
Loss of provenance

A previous release had provenance metadata, but this release does not. View details.

Generate Gitignore

A simple Python script to generate a .gitignore file for your project using the templates from github.com/github/gitignore

Pip install PyPI - Version

Build a Publish Update Templates

Templates

Templates are taken from the github.com/github/gitignore repository and are updated every 24 hours.

The parsed list of templates can be found in the templates.json file. This file is used by the script to generate the list of available templates.

I am not a maintainer of the gitignore source repository, so if you wish to have a template added, please open an issue or a pull request on the source repository as I do not maintain any custom templates.

Usage

Installation

Install the package using pip:

pip install generate-gitignore

For global installation, it is recommended to use pipx as to avoid breaking any system packages, especially on linux systems:

pipx install generate-gitignore

Running

Once installed, you can run the script with the following command:

generate-gitignore

Listing all available templates

You can list all available templates with the list command:

generate-gitignore list

Searching for a template

You can search for a template with the search command, it will launch an interactive search in the terminal allowing you to search by name and apply the selected template:

generate-gitignore search

Generating a .gitignore file

If you want to use a template directly, you can use the use command followed by an array of template names:

generate-gitignore use python visualstudiocode ...

Contributing

Contributions are welcome, please open an issue or a pull request if you wish to contribute. Make sure to follow the Contribution Guidelines before submitting a pull request.

Metadata

Release files for generate-gitignore 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Loss of provenance

These files do not have provenance metadata, despite files in a prior release including this data.

We recommend further investigation before installing these files. View details.

Source distribution (sdist)

Source distribution for generate-gitignore 1.0.2
File Size Uploaded Provenance Actions
generate_gitignore-1.0.2.tar.gz 7.0 kB Without provenance Details for generate_gitignore-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for generate-gitignore 1.0.2
File Interpreter ABI Platform Actions
generate_gitignore-1.0.2-py3-none-any.whl Python 3 none any Details for generate_gitignore-1.0.2-py3-none-any.whl

Total release size: 15.2 kB

Release files / generate_gitignore-1.0.2.tar.gz

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL generate_gitignore-1.0.2.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ae789599b570074097a480ad32c92303bb01c851bd660b52a726d374d405eb7a
BLAKE2b-256 checksum
How to use checksums
a6bcc30af501f86ff9e6f0a88e183461434b03dc8018d94b1d88a540a764e553
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release files / generate_gitignore-1.0.2-py3-none-any.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL generate_gitignore-1.0.2-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90efa6672d920ef366b76ccdf4b9f165206f2f590f9ab8bde87829fb786b396b
BLAKE2b-256 checksum
How to use checksums
b4e566f9e45928c59099ee35a481422f10cf16eca15d3a843cf56d75a452f864
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Security for generate-gitignore 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Loss of provenance

A previous release of these files had provenance metadata, but this release does not.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Release comparison

  • Removed 1.0.1 2 files With provenance
  • Added 1.0.2 2 files Without provenance

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page