This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding:utf-8 | |
import logging | |
import socket | |
import urllib.request | |
from bs4 import BeautifulSoup | |
""" | |
Web Scrapeを行う | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding:utf-8 | |
import logging | |
from app.app_logic_base import AppLogicBase | |
from app.util import message_access, web_access | |
""" | |
Webスクレイピングするサンプルアプリケーションです | |
""" | |
__author__ = "t.ebinuma" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding:utf-8 | |
import logging | |
import os | |
import sqlite3 | |
from app.util import message_access, app_config | |
""" | |
DBアクセスを制御する | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding:utf-8 | |
import logging | |
from app.app_logic_base import AppLogicBase | |
from app.enum.gender_type import GenderType | |
from app.sql import employees, departments | |
from app.util import date_helper | |
""" | |
DBアクセスするサンプルアプリケーションです |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding:utf-8 | |
import logging | |
from app.app_logic_base import AppLogicBase | |
from app.util import message_access | |
""" | |
メッセージを出力するサンプルアプリケーションです | |
""" | |
__author__ = "t.ebinuma" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 1 | |
formatters: | |
customFormatter: | |
format: '[%(asctime)s] %(levelname)s - %(filename)s#%(funcName)s:%(lineno)d: %(message)s' | |
datefmt: '%Y/%m/%d %H:%M:%S' | |
handlers: | |
fileRotatingHandler: | |
formatter: customFormatter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding:utf-8 | |
import configparser | |
import os | |
from app.util import app_config | |
""" | |
メッセージ出力を行う | |
""" | |
__author__ = "t.ebinuma" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding:utf-8 | |
import logging | |
import os | |
from app.app_logic_base import AppLogicBase | |
from app.sql import employees | |
from app.util import app_config, message_access, date_helper | |
from app.util.file_access import get_file_encoding | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding:utf-8 | |
""" | |
ファイルアクセスを制御する | |
""" | |
import chardet | |
__author__ = "t.ebinuma" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################## | |
## データファイルのプロパティ | |
################################################## | |
# データ(添付ファイル等)ファイルのディレクトリパス | |
data_path: {$python_path}/data/ | |
################################################## | |
## ログファイルのプロパティ | |
################################################## | |
# ログファイルのディレクトリパス |