Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion giig/giig.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/python3

import requests
from security import safe_requests

BASE_URL = "https://gitignore.io/"
API_URL = BASE_URL + "api/"
Expand All @@ -21,5 +22,5 @@ def search(term):


def get_gitignore(options):
req = requests.get(API_URL + ",".join(options))
req = safe_requests.get(API_URL + ",".join(options))
return req.text
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
author_email='github@deutz.io',
packages=['giig'],
scripts=['bin/giig'],

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This library holds security tools for protecting Python API calls.

License: MITOpen SourceMore facts

install_requires=['requests'],
install_requires=['requests', "security==1.3.1"],
keywords='gitignore git cli',
license='MIT',
python_requires='>=3',
Expand Down