このファイルは古いです。 以下に移行しました。 https://github.com/pyminihack/pyhack-manual
- 年に2回実施している、pyhack合宿の説明文書
- 貸し切りで開催を前提にしている
| from pathlib import Path | |
| import whisper | |
| from whisper.utils import get_writer | |
| BASE = Path(__file__).parent | |
| def main(folder: Path, ext: str = "wav", lang: str = "Japanese", model_name: str = "large-v2"): | |
| model = whisper.load_model(model_name) |
| """ | |
| po file to CSV file for untranselated | |
| """ | |
| from collections import defaultdict | |
| import csv | |
| EMPTY_ONLY = True | |
| CSV_HEADERS = ("uses", "default", "msgid", "fuzzy", "msgstr") |
| import json | |
| import gzip | |
| from operator import itemgetter | |
| from pathlib import Path | |
| import asyncio | |
| def get_logfiles(path): | |
| for p in path.glob("*.gz"): | |
| date_str = p.stem.split('-')[1] |
このファイルは古いです。 以下に移行しました。 https://github.com/pyminihack/pyhack-manual
| import binascii | |
| from Crypto.Cipher import AES | |
| data = "abcdefghijklmnopqrstuvwxyz" | |
| key = "pqrstuvwxyz$abcdefghijAB" | |
| iv = "DEFGHTABCIESPQXO" | |
| encrypted = "2324ab5ec7a901247bf01b08bd1956688843dad5a8e15106ca3a5b9258918527" | |
| cipher = AES.new(key, AES.MODE_CBC, iv) |
| import b | |
| class A: | |
| def __init__(self, save_dir): | |
| self.save_dir = save_dir | |
| save_dialog = A(b.prefs.get('save_dir')) | |
| def show(): | |
| pass |