Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
Works with requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Gesugao-san committed Oct 8, 2021
1 parent 8ad915f commit 6195da0
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bin/python/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,19 @@
# https://www.google.com/search?q=python+parsing+html
# https://stackoverflow.com/a/419185

import urllib2

def say_hello_world():
print ("Hello world.")

# https://stackoverflow.com/a/3764660
def internet_on():
try:
urllib2.urlopen('https://www.byond.com/', timeout=1)
return True
except urllib2.URLError as err:
return False

# Python program to use
# main for function call.
if __name__ == "__main__":
Expand Down
11 changes: 11 additions & 0 deletions bin/python/req_install.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env sh
# -*- coding: utf-8 -*-

# Authors: @Gesugao-san;
# Licence: MIT

sudo apt install python python3 python-is-python3 -y
sudo apt install pip python3-pip -y

python --version
pip install -r requirements.txt
13 changes: 13 additions & 0 deletions bin/python/req_install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

:: -*- coding: utf-8 -*-

:: Authors: @Gesugao-san;
:: Licence: MIT

@ECHO OFF

python --version

pip install -r requirements.txt

PAUSE
3 changes: 3 additions & 0 deletions bin/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pip-chill
pipenv
urllib.request

0 comments on commit 6195da0

Please sign in to comment.