Sindbad~EG File Manager
�
Mٜg�^ � � � d Z dZddlZddlZddlmZmZmZmZmZ ddl Z ddl
Z
ddlmZ
ddlZddlZddlZddlmZmZ ddlmZ e j, d� Zd Zd
Z G d� de� Zd
efd�Zd� Zd� Zd� Zd� Z d� Z!d� Z"d� Z#d� Z$d� Z% G d� d� Z&d� Z'd� Z(d� Z)d� Z*d� Z+d� Z,d
e-fd �Z.e+e,ca/a0d$d!�Z1d$d"�Z2g d#�Z3t` Z4t^ Z5y)%a�
Pyperclip
A cross-platform clipboard module for Python,
with copy & paste functions for plain text.
By Al Sweigart al@inventwithpython.com
Licence at LICENSES/PYPERCLIP_LICENSE
Usage:
import pyperclip
pyperclip.copy('The text to be copied to the clipboard.')
spam = pyperclip.paste()
if not pyperclip.is_available():
print("Copy functionality unavailable!")
On Windows, no additional modules are needed.
On Mac, the pyobjc module is used, falling back to the pbcopy and pbpaste cli
commands. (These commands should come with OS X.).
On Linux, install xclip, xsel, or wl-clipboard (for "wayland" sessions) via
package manager.
For example, in Debian:
sudo apt-get install xclip
sudo apt-get install xsel
sudo apt-get install wl-clipboard
Otherwise on Linux, you will need the PyQt5 modules installed.
This module does not work with PyGObject yet.
Cygwin is currently not supported.
Security Note: This module runs programs with these names:
- pbcopy
- pbpaste
- xclip
- xsel
- wl-copy/wl-paste
- klipper
- qdbus
A malicious user could rename or add programs with these names, tricking
Pyperclip into running them with whatever permissions the Python process has.
z1.8.2� N)�c_size_t�c_wchar� c_wchar_p� get_errno�sizeof)�which)�PyperclipException�PyperclipWindowsException)�find_stack_level�DISPLAYz�
Pyperclip could not find a copy/paste mechanism for your system.
For more information, please visit
https://pyperclip.readthedocs.io/en/latest/index.html#not-implemented-error
�utf-8c � � e Zd Zy)�PyperclipTimeoutExceptionN)�__name__�
__module__�__qualname__� � �G/usr/local/lib/python3.12/site-packages/pandas/io/clipboard/__init__.pyr r U s � �r r �returnc � � t t t t f}t | |� s!t dt
| � j � �� �t | � S )NzJonly str, int, float, and bool values can be copied to the clipboard, not )�str�int�float�bool�
isinstancer �typer )�text�
acceptedTypess r �_stringifyTextr Y sN � ��#�u�d�+�M��d�M�*� �3�37��:�3F�3F�2G�
I�
�
� �t�9�r c � � d� } d� }| |fS )Nc �� � t | � } t j ddgt j d�� 5 }|j | j t � �� d d d � y # 1 sw Y y xY w)N�pbcopy�wT��stdin� close_fds��input�r �
subprocess�Popen�PIPE�communicate�encode�ENCODING�r �ps r �copy_osx_pbcopyz2init_osx_pbcopy_clipboard.<locals>.copy_osx_pbcopyd sS � ��d�#��
�
�
�
�s�O�:�?�?�d�
�
�
�M�M����H� 5�M�6�
�
�
�s �&A#�#A,c �� � t j ddgt j d�� 5 } | j � d }d d d � j t
� S # 1 sw Y �xY w)N�pbpaste�rT��stdoutr'