import boto3 services_name = 's3' endpoint_url = 'https://kr.object.ncloudstorage.com' region_name = 'kr-standard' access_key = '' secret_key = '' class Storage(): def __init__(self): s3 = boto3.client(services_name, endpoint_url=endpoint_url, aws_access_key_id=access_key, aws_secret_access_key=secret_key) def create_bucket(self, bname): bucket_name = bname # '-' 안 됨 self.s3.create_bucket(Bucket..

pip install cx_oracle 12.2버전 다운 https://www.oracle.com/database/technologies/instant-client/winx64-64-downloads.html#ic_winx64_inst Instant Client for Microsoft Windows (x64) 64-bit No results found Your search did not match any results. www.oracle.com 원하는 곳에 압축 해제 > 해당 폴더 위치 환경변수 추가(사용자변수 - PATH: ~~~~~~~;I:\instantclient_12_2) import cx_Oracle connection = cx_Oracle.connect("id", "password", "i..
글 수정 중 pip install oci oci reference https://oracle-cloud-infrastructure-python-sdk.readthedocs.io/en/latest/quickstart.html Quickstart — oci 2.6.1 documentation CRUD operations and Pagination Creating entities Let's create a new user and group, and add the user to the group. Then we'll list all users in the tenancy, and finally clean up the user and group we created. First, we'll need to create..

import os, sys import numpy as np import pydicom from pydicom.data import get_testdata_files from PyQt5.QtCore import Qt from PyQt5.QtGui import QPixmap, QImage from PyQt5.QtWidgets import QApplication, QLabel, QVBoxLayout, QWidget class MyApp(QWidget): def __init__(self): super().__init__() self.initUI() def initUI(self): ds = pydicom.dcmread('H:/dicom/US-RGB-8-epicard', force = True) cvImg = d..
pip로 설치중 UnicodeDecodeError: 'cp949' codec can't decode byte 0xe2 in position 903: illegal multibyte sequence pip install pygetwindow==0.0.1 설치 후에 에러 내던 패키지 설치하니 설치 함 source: https://github.com/asweigart/pyautogui/issues/292#issuecomment-455600548
''' pip install selenium pip install requests chromedriver 필요 용량제한X 카테고리 별 분류 필요 app 들의 urls 수집 후 for each list 그리고 그 url에 있는 카테고리 폴더가 없으면 생성 후 다운로드 있으면 거기에 다운로드 킹론상 25페이지 20개 = 500개 다운로드 ''' import os, sys, time import requests from selenium import webdriver page = 25 in_page = 20 sleep_time = 30 chromePath = 'C:/Users/hacke/Desktop/for_reaLife/chromedriver' download_base = 'C:/Users/hacke/Desk..
과목, 과제들을 json으로 안드로이드에 넘겨주기 위해서 dictionary를 만들면서 애먹었다string은 append가 없다고dictionary는 indexing이 안된다고 등등 1234567891011121314151617181920212223242526272829from collections import defaultdict dict_test = defaultdict(list)list_reports_title = '''[['[선문]English Reading and Writing II (053511-11)', 'Unit 8 Homework (Writing)과제!', 'Unit 7 Homework (Writing)과제!', 'Unit 5 Homework (Writing)과제!', 'Unit 4 Ho..
필수 코드console: pip install requestsimport requests 123456789101112131415import requestsimport json @csrf_exemptdef push_to_client(lms_id, list_diff_subjects, list_diff_reports): url = 'https://fcm.googleapis.com/fcm/send' headers = { 'Authorization': 'key=longlongKey', 'Content-Type': 'application/json; UTF-8', } # 한명 지정이면 to, 여럿일 경우 registration_ids[] content ={'to': token, 'notification': { 'ti..
Contact: j0n9m1n1@gmail.com