pastoke
Advanced tools
| Metadata-Version: 2.1 | ||
| Name: pastoke | ||
| Version: 0.1.1 | ||
| Summary: paste jokes script | ||
| Home-page: https://github.com/streanger/pastoke | ||
| Author: streanger | ||
| Author-email: divisionexe@gmail.com | ||
| License: MIT | ||
| Description: Pastoke | ||
| =========== | ||
| Script for log, clear or replace clipboard with using 'pyperclip' | ||
| Install | ||
| =========== | ||
| .. code-block:: python | ||
| pip install pastoke | ||
| Usage | ||
| =========== | ||
| .. code-block:: python | ||
| from pastoke import log_changes, clear_clipboard, replace_clipboard | ||
| # log clipboard to log.txt file. Default path is python exe dir | ||
| log_changes() | ||
| # clear clipboard | ||
| clear_clipboard() | ||
| # replace clipboard with specified phrase | ||
| replace_clipboard(search='test', thing='trick') | ||
| Platform: UNKNOWN | ||
| Classifier: Programming Language :: Python :: 3 | ||
| Classifier: License :: OSI Approved :: MIT License | ||
| Classifier: Operating System :: OS Independent | ||
| Description-Content-Type: text/markdown |
| pyperclip |
| README.rst | ||
| setup.cfg | ||
| setup.py | ||
| pastoke/__init__.py | ||
| pastoke/pastoke.py | ||
| pastoke.egg-info/PKG-INFO | ||
| pastoke.egg-info/SOURCES.txt | ||
| pastoke.egg-info/dependency_links.txt | ||
| pastoke.egg-info/requires.txt | ||
| pastoke.egg-info/top_level.txt |
| pastoke |
+27
| Pastoke | ||
| =========== | ||
| Script for log, clear or replace clipboard with using 'pyperclip' | ||
| Install | ||
| =========== | ||
| .. code-block:: python | ||
| pip install pastoke | ||
| Usage | ||
| =========== | ||
| .. code-block:: python | ||
| from pastoke import log_changes, clear_clipboard, replace_clipboard | ||
| # log clipboard to log.txt file. Default path is python exe dir | ||
| log_changes() | ||
| # clear clipboard | ||
| clear_clipboard() | ||
| # replace clipboard with specified phrase | ||
| replace_clipboard(search='test', thing='trick') | ||
| [metadata] | ||
| description-file = README.rst | ||
| [egg_info] | ||
| tag_build = | ||
| tag_date = 0 | ||
+23
| import setuptools | ||
| with open("README.rst", "r") as fh: | ||
| long_description = fh.read() | ||
| setuptools.setup( | ||
| name='pastoke', | ||
| version='0.1.1', | ||
| author="streanger", | ||
| author_email="divisionexe@gmail.com", | ||
| description="paste jokes script", | ||
| long_description=long_description, | ||
| long_description_content_type="text/markdown", | ||
| url="https://github.com/streanger/pastoke", | ||
| packages=['pastoke',], | ||
| license='MIT', | ||
| install_requires=['pyperclip'], | ||
| classifiers=[ | ||
| "Programming Language :: Python :: 3", | ||
| "License :: OSI Approved :: MIT License", | ||
| "Operating System :: OS Independent", | ||
| ], | ||
| ) |
| ''' | ||
| paste_log.py, version 1.0.1 | ||
| paste_log.py, version 0.1.1 | ||
| script for logging copy-paste content | ||
@@ -69,6 +69,8 @@ pyinstaller proper command: | ||
| hide_console() | ||
| last_content = "" | ||
| while True: | ||
| content = pyperclip.paste() | ||
| if content == search: # this is the simplest condition; thinkg of regex etc | ||
| pyperclip.copy(thing) | ||
| if content != last_content: # this is the simplest condition; thinkg of regex etc | ||
| pyperclip.copy(content.replace(search, thing)) | ||
| last_content = content | ||
| time.sleep(timeout) | ||
@@ -75,0 +77,0 @@ return True |
+2
-2
| Metadata-Version: 2.1 | ||
| Name: pastoke | ||
| Version: 0.1.0 | ||
| Summary: paste joke scritp | ||
| Version: 0.1.1 | ||
| Summary: paste jokes script | ||
| Home-page: https://github.com/streanger/pastoke | ||
@@ -6,0 +6,0 @@ Author: streanger |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
| pyperclip |
-10
| README.rst | ||
| setup.cfg | ||
| setup.py | ||
| pastoke/__init__.py | ||
| pastoke/pastoke.py | ||
| pastoke.egg-info/PKG-INFO | ||
| pastoke.egg-info/SOURCES.txt | ||
| pastoke.egg-info/dependency_links.txt | ||
| pastoke.egg-info/requires.txt | ||
| pastoke.egg-info/top_level.txt |
| pastoke |
Sorry, the diff of this file is not supported yet
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
6345
Infinity%11
Infinity%89
Infinity%