All Projects → Antrikshy → Ignr.py

Antrikshy / Ignr.py

Licence: mit
Python-based command line client to download .gitignore templates from gitignore.io

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Ignr.py

Python Sploitkit
Devkit for building Metasploit-like consoles
Stars: ✭ 148 (+393.33%)
Mutual labels:  cli, programming
Mcscript
A programming language for Minecraft Vanilla
Stars: ✭ 124 (+313.33%)
Mutual labels:  cli, programming
Haxor News
Browse Hacker News like a haxor: A Hacker News command line interface (CLI).
Stars: ✭ 3,342 (+11040%)
Mutual labels:  cli, programming
Gh
(DEPRECATED) GitHub CLI made with NodeJS
Stars: ✭ 1,701 (+5570%)
Mutual labels:  cli, programming
Saws
A supercharged AWS command line interface (CLI).
Stars: ✭ 4,886 (+16186.67%)
Mutual labels:  cli, programming
Djangochannel
Проект призван помочь людям в обучении программированию и веб разработке
Stars: ✭ 28 (-6.67%)
Mutual labels:  programming
Jplot
iTerm2 expvar/JSON monitoring tool
Stars: ✭ 949 (+3063.33%)
Mutual labels:  cli
Bashmultitool
A library for bash shell program containing useful functions. Can be imported into scripts to create colourful and functional scripts and TUIs.
Stars: ✭ 27 (-10%)
Mutual labels:  cli
Awesome Scalability
The Patterns of Scalable, Reliable, and Performant Large-Scale Systems
Stars: ✭ 36,688 (+122193.33%)
Mutual labels:  programming
Rispa Cli
Modular project management
Stars: ✭ 30 (+0%)
Mutual labels:  cli
Coronavirus Tracker Cli
Track conronavirus cases from command line. curl https://corona-stats.online/
Stars: ✭ 954 (+3080%)
Mutual labels:  cli
Typac
install npm packages along with corresponding typings
Stars: ✭ 29 (-3.33%)
Mutual labels:  cli
Todo r
Find all your TODO notes with one command!
Stars: ✭ 28 (-6.67%)
Mutual labels:  cli
Show Down
Command line utility to download latest episodes of TV show just by typing name of show. Also we can schedule to automatically download latest episodes of TV shows.
Stars: ✭ 29 (-3.33%)
Mutual labels:  cli
Todoist
Todoist CLI Client. I ❤️ Todoist and CLI.
Stars: ✭ 940 (+3033.33%)
Mutual labels:  cli
Mber
Fast and minimal Ember.js CLI alternative, without broccoli.
Stars: ✭ 30 (+0%)
Mutual labels:  cli
Durt
Command line tool for calculating the size of files and directories
Stars: ✭ 27 (-10%)
Mutual labels:  cli
Yb
A new build tool optimized for local + remote development
Stars: ✭ 29 (-3.33%)
Mutual labels:  cli
Wait4x
Wait4X is a cli tool to wait for everything! It can be wait for a port to open or enter to rquested state.
Stars: ✭ 30 (+0%)
Mutual labels:  cli
Pivotal Flow
Automate your pivotal workflow
Stars: ✭ 29 (-3.33%)
Mutual labels:  cli

ignr.py

ignr.py (or simply ignr) is a Python-based command line utility to fetch .gitignore templates from gitignore.io. gitignore.io has official command line tools, but they rely on bash or zsh, and may not be compatible with all systems out there.

The .gitignore file in this repository was generated using ignr, if you want to look at a sample!

There's also a Go-based alternative, gogi, but not everyone uses Go.

ignr was created for Python users who prefer to install via PyPI and/or pip.

Note: Version 2.0 completely drops Python 2 support in favor of Python 3, released late-2019.

Usage

Install using

pip install ignr

List

ignr -l

Lists all available .gitignore templates on gitignore.io.

Search

ignr -s mac

Searches for supplied query in list of available templates from gitignore.io, similar to using grep.

Preview

ignr -p scala macOS

Prints a preview of the template without generating a .gitignore file. List multiple space-separated languages, frameworks, operating systems to get combined output.

Create

ignr -n node sass windows

Generates a new .gitignore file in the current directory. List multiple space-separated languages, frameworks, operating systems to get combined output.

If a .gitignore already exists in the directory, ignr will give you an option to back it up.

Troubleshooting

Since gitignore.io uses HTTPS, running this utility in certain macOS environments may result in an SSL "handshake failure" error, which is discussed in detail in this requests issue.

Unfortunately, there is no trivial fix.

In my experience, switching from the included Python in El Capitan to a standalone Python installed via brew solved the issue. All my existing packages seemed to remain intact.

Contribute

Feel free to make improvements. PRs are greatly appreciated. ignr is currently untested on Windows. If you can confirm that it works, please let me know. You can open a PR to edit this line out if you want. If not, fixes would be nice.

I can be reached @Antrikshy or via reddit.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].