python

프로그래밍/Python

[python] GUI 비밀번호 자동 생성기

##### """https://copyassignment.com/password-generator-in-python-gui-application/""" ##### # importing the tkinter module from tkinter import * # importing the pyperclip module to use it to copy our generated # password to clipboard import pyperclip # random module will be used in generating the random password import random # initializing the tkinter root = Tk() # setting the width and height o..

프로그래밍/Python

[python] pyperclip

pyperclip 1.8.2 >> pip install pyperclip A cross-platform clipboard module for Python. (Only handles plain text for now.) https://pypi.org/project/pyperclip/ pyperclip A cross-platform clipboard module for Python. (Only handles plain text for now.) pypi.org >>> import pyperclip >>> pyperclip.copy('The text to be copied to the clipboard.') >>> pyperclip.paste() 'The text to be copied to the clipb..

프로그래밍/Python

[Python] kivy

크로스 플랫폼 사용자 인터페이스의 신속한 개발을 위한 오픈 소스 파이썬 라이브러리다. 키비 응용 프로그램을 사용하면 리눅스, 윈도우에 사용하는 GUI 프로그램뿐 아니라 안드로이드, IOS 용도로 개발할 수 있다. https://kivy.org/ Kivy: Cross-platform Python Framework for NUI Open source Python framework for rapid development of applications that make use of innovative user interfaces, such as multi-touch apps. kivy.org https://kivy.org/doc/stable/gettingstarted/intro.html Introduction —..

프로그래밍/Python

[python] PDF to png, import fitz , PyMuPDF

PyMuPDF is a high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents. https://pypi.org/project/PyMuPDF/ >> pip install PyMuPDF 1.디렉토리 안의 pdf 파일을 읽어들여서 리스트 목록을 출력 2.파일명을 넘기면 파일명_이미지순서.png 파일을 생성. import fitz # PyMuPDF # 파이썬 컴파일 경로가 달라서 현재 폴더의 이미지를 호출하지 못할때 작업디렉토리를 변경한다. import os from pathlib import Path # src 상위 폴더를 실행폴더로 지정하려고 한다. ##..

프로그래밍/Python

[python] PyMuPDF로 코딩 없이 PDF에서 이미지 추출

PyMuPDF로 코딩 없이 PDF에서 이미지 추출 https://wikidocs.net/181972 PyMuPDF로 코딩 없이 PDF에서 이미지 추출 [PyMuPDF](https://github.com/pymupdf/PyMuPDF)의 fitz를 이용해 PDF 파일에서 이미지를 추출할 수 있다. [명령행 모듈](https://p… wikidocs.net # PyMuPDF로 코딩 없이 PDF에서 이미지 추출 # PyMuPDF # pip install PyMuPDF import fitz doc = fitz.open(PDF_FILE_PATH) for i, page in enumerate(doc): img = page.get_pixmap() img.save(f"./data/{i}.png") # Command 로 ..

프로그래밍/Python

[python] cowsay

""" cowsay https://pypi.org/project/cowsay/ pip install cowsay """ import cowsay cowsay.cow(" hellow, Cow") cowsay.daemon("Hi demon")

프로그래밍/Python

[PYTHON] Python tkinter 강좌

https://076923.github.io/posts/Python-tkinter-1/ Python tkinter 강좌 : 제 1강 - GUI 생성 tkinter 076923.github.io """ Python tkinter 강좌 : https://076923.github.io/posts/Python-tkinter-2/ Label, Button, Entry, ListBox, CheckButton """ import tkinter window=tkinter.Tk() window.title("KIM HONG WAN") window.geometry("640x400+100+100") window.resizable(False, True) # 좌우, 상하 label0=tkinter.Label(window, tex..

프로그래밍/Python

[python] send email app

https://pypi.org/project/secure-smtplib/ secure-smtplib Secure SMTP subclasses for Python 2 pypi.org secure-smtplib 0.1.1 pip install secure-smtplib .chatGPT에게 " python email sending app " 이라고 질문했다. # chatGPT - python email sending app import tkinter as tk from tkinter import messagebox import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText def send_em..

홍반장水_
'python' 태그의 글 목록