Python/Anything

    bip_utils 설치

    https://github.com/ebellocchia/bip_utils GitHub - ebellocchia/bip_utils: Generation of mnemonics, seeds, private/public keys and addresses for different types of cryptoc Generation of mnemonics, seeds, private/public keys and addresses for different types of cryptocurrencies - GitHub - ebellocchia/bip_utils: Generation of mnemonics, seeds, private/public keys and a... github.com 깃허브에서 소스코드 파일 다운..

    Python2 cmd encoding error solve

    파일을 복사하는 과정에서 cmd encoding error 가 발생했습니다. 로깅 모듈이 인코딩을 지원하지 않아서 발생하는 일이라고 합니다. C:\Python27\Lib\encodings\aliases.py 파일의 utf_8 codec 부분에 'cp65001' : 'utf_8' 값을 추가해줍니다. 그리고 cmd 창에서 chcp 65001 을 입력해줍니다. 그러면 잘 된다고 하네요.

    python3 csv to json

    DB를 분석할 일이 생겼습니다. DB 테이블에서 서치를 해야 하는데 SQL 쿼리문으로는 불편한 점이 다수 있어 각 행의 데이터를 텍스트 파일로 출력하고 텍스트 파일들 전체에서 서치를 해야하는 상황입니다. 그래서 DB 데이터를 Microsoft SQL Server Management Studio 프로그램을 사용하여 csv 파일로 출력한 뒤, csv 파일을 json 파일 형태로 변환하였습니다. sqlite db 형태로 뽑아낸 뒤 json 파일로 변환하거나, pandas를 사용하여 db 서버에 연결한 뒤 테이블 정보를 읽어와서 파싱하는 방법도 있지만 csv에서 json으로 바로 변환이 가능한 라이브러리가 존재하여 본 방법을 선택하게 되었습니다. SSMS(Microsoft SQL Server Management..