From 8f999515848398c6f2b8f009a79957841c562b61 Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Thu, 20 Apr 2023 11:33:12 +0000 Subject: [PATCH] v.1.0.0 Initial Release! --- .cache/replit/__replit_disk_meta.json | 1 + __pycache__/build.cpython-38.pyc | Bin 508 -> 639 bytes __pycache__/editor.cpython-38.pyc | Bin 647 -> 659 bytes build.py | 18 +- editor.py | 8 +- main.py | 14 +- package/README.md | 17 +- package/dist/firepup650-1.0.0.tar.gz | Bin 0 -> 2896 bytes package/setup.cfg | 14 +- package/src/firepup650.egg-info/PKG-INFO | 25 + package/src/firepup650.egg-info/SOURCES.txt | 9 + .../dependency_links.txt | 0 package/src/firepup650.egg-info/top_level.txt | 1 + package/src/firepup650/__init__.py | 81 +++ package/src/fkeycapture.egg-info/PKG-INFO | 33 -- package/src/fkeycapture.egg-info/SOURCES.txt | 9 - .../src/fkeycapture.egg-info/top_level.txt | 1 - package/src/fkeycapture/__init__.py | 48 -- .../__pycache__/__init__.cpython-38.pyc | Bin 1737 -> 0 bytes poetry.lock | 482 ++++++++++++++++++ pyproject.toml | 17 + 21 files changed, 650 insertions(+), 128 deletions(-) create mode 100644 .cache/replit/__replit_disk_meta.json create mode 100644 package/dist/firepup650-1.0.0.tar.gz create mode 100644 package/src/firepup650.egg-info/PKG-INFO create mode 100644 package/src/firepup650.egg-info/SOURCES.txt rename package/src/{fkeycapture.egg-info => firepup650.egg-info}/dependency_links.txt (100%) create mode 100644 package/src/firepup650.egg-info/top_level.txt create mode 100644 package/src/firepup650/__init__.py delete mode 100644 package/src/fkeycapture.egg-info/PKG-INFO delete mode 100644 package/src/fkeycapture.egg-info/SOURCES.txt delete mode 100644 package/src/fkeycapture.egg-info/top_level.txt delete mode 100644 package/src/fkeycapture/__init__.py delete mode 100644 package/src/fkeycapture/__pycache__/__init__.cpython-38.pyc create mode 100644 poetry.lock create mode 100644 pyproject.toml diff --git a/.cache/replit/__replit_disk_meta.json b/.cache/replit/__replit_disk_meta.json new file mode 100644 index 0000000..4f46f61 --- /dev/null +++ b/.cache/replit/__replit_disk_meta.json @@ -0,0 +1 @@ +{"nonce":6494760093704306076,"last_updated":{"seconds":1681990364,"nanos":523064000}} diff --git a/__pycache__/build.cpython-38.pyc b/__pycache__/build.cpython-38.pyc index 4601c85e9e73fa6ea16d93132d1fd04be61d861f..379e6dc4976eb3ceb722248fee2daa36999041c8 100644 GIT binary patch literal 639 zcmY*Xy^a$x5Vm)-dr2;7pgB61>`BWaAt(@nlMn^XDLMpF(rtEp#LC)h*0|LQmCYQgkDaoi$?Z!GTQ5$d&ZhPNImYZv)%W7SIV`YBVXcPJai3H*FU|JBRjb$sZmeh&dxHfV!ye9e=h-Vy=i6ntbt`T; zs~Raw1(qrP**#}t#wz&N01dryt42Lxxn#>$)Nt43J_*IKbKR7H(_*w1EKFLQF9yrf zuCfy!HP(a`FVgU?#+a~kp9rN}=aW`zZhWGRP%evoTuJBx7Ngek=pImMJed9i9F zFHEZxH^sFuT(|n!)5rO2K6{(b`aN}1KGGYXbQ*pRV$V9sSPtek!M`nt5ml^G_ WYjjJ5-{XfbWCLx@Uxr%0k;z|Lyq=f< literal 508 zcmY*WJ5R$f5I*PCP_+^(n;94a3K`fCLP+c#KrG#y*fdcS$FdzkDmuXrfswxyMkZ!9 zCN6=Za@Kc`?@pgzH`D1D(DvSFdPD%;`(oQ1EG`gcf{p_xPcR4WTtnn$$oyG9=OQi< zW`>Rv4kfJn=#->#)`Y+VJiFX|*<{|3kw^IL47K&R|G1e5`UwuW+i3QIq7aeJ6TGmi z163$mNMl)9(l~C^LNhLC&!$aLa%%4iDLOwZ1=Fkas*%*@!U&qxRmCJXREm3hO2?FD zoGO+r*+O8UTASDMgvQm6&VOnUrHv|U#%Zi^S{0NR#wLezFJ&f={LZP(Jm}9@Yu&#} z7ns&qQFXr3g|v~QJ!FU0E9epCU;9a3S0d4kltL%BOVMUb*+z?GxXZC>JAcUVhrsNj m0}_%68RH5Np`&+@n?+=ZgXoqEvDbxXRn41Hoc9`^2>1r+A$Rov diff --git a/__pycache__/editor.cpython-38.pyc b/__pycache__/editor.cpython-38.pyc index 01446672db6741a1c60dee2220ea2c9b39fdcaca..09ade78f2405eeb62d055e4bba5ddc9b8ec24be4 100644 GIT binary patch delta 362 zcmZo?oy^J`%FD~e00b+)+NbQB$m>wg0^~RYaq%%AQNobI*vwc9qM3j+V+mslGmvJg zVOqenkfD|tNHZ^FU}Q*PsbQGSkit5bxrRA~&4vM_E``0Bsg@~)V*yJI^Fqd27NAXg*1xHDFObuqB*?ElFVrX3*sK zo2ceWw6Ik%-g?4=QdE#xRe zJ19{OHgSmnX~M9bW1GY#VNQl$5uJE|>Rb8^l@!4HYt3Xye?)LK?bC xh30+gHy<9SGZAsWqjW0dd>RR*eX``KX)F>JXkL87nBo?+pcvr;=oZ)b^anssY?S~2 diff --git a/build.py b/build.py index 7d0b7ef..efb8210 100644 --- a/build.py +++ b/build.py @@ -1,12 +1,14 @@ def build(): - import os + from os import system as cmd from editor import edit - os.system("rm -rf package/dist") - os.system("mkdir package/dist") - os.system("pip install --upgrade pip build twine") - os.system("clear") - edit() - os.system("clear") + cmd("rm -rf package/dist") + cmd("mkdir package/dist") + cmd("poetry update") + cmd("clear") + useEditor = input("Run Version Editor (Y|*)?").upper() + if useEditor == "Y": + edit() + cmd("clear") print("Run these commands next: \n cd package\n python3 -m build\n python3 -m twine upload -r pypi dist/*") # __token__ - os.system("bash") \ No newline at end of file + cmd("bash") \ No newline at end of file diff --git a/editor.py b/editor.py index 7cc5c77..e97f17f 100644 --- a/editor.py +++ b/editor.py @@ -1,10 +1,10 @@ def edit(): + ver = input("Version: ") + update = input("What's new?: ") # Edit setup.cfg my_file = open("package/setup.cfg") string_list = my_file.readlines() my_file.close() - ver = input("Version: ") - update = input("What's new?: ") string_list[2] = f"version = {ver}\n" my_file = open("package/setup.cfg", "w") new_file_contents = "".join(string_list) @@ -14,8 +14,8 @@ def edit(): my_file = open("package/README.md") string_list = my_file.readlines() my_file.close() - string_list[9] = f"###### v.{ver}:\n" - string_list[10] = f"{update}\n" + string_list[11] = f"###### v.{ver}:\n" + string_list[12] = f"{update}\n\n{string_list[12]}" my_file = open("package/README.md", "w") new_file_contents = "".join(string_list) my_file.write(new_file_contents) diff --git a/main.py b/main.py index 494f17b..5413526 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,8 @@ -#from build import build -#build() -import package.src.fkeycapture as fkey -print(fkey.get(5)) -while 1: - print(fkey.getnum()) \ No newline at end of file +import os +from build import build +if os.environ["REPL_OWNER"] == "Firepup650": + build() + exit() +else: + import package.src.firepup650 as fp650 + fp650.e("No demo yet!") \ No newline at end of file diff --git a/package/README.md b/package/README.md index 16c7f7b..d21406c 100644 --- a/package/README.md +++ b/package/README.md @@ -1,12 +1,5 @@ -# fkeycapture -This is a simple and easy to use package that allows you to capture individual keystrokes from the user. -#### Forms: -1. (Default) Recive key as a string -2. Recive key as bytes -#### How to Use: -1. from fkeycapture import get, getnum -2. Use it like this -: get([number of keys to capture],[if you want bytes output, make this 'True']) -3. To use the getnum method use like this: getnum([number of key to capture]) -###### v.1.0.7: -Added the getnum method +# Firepup650 +Package containing various shorthand things I use, and a few imports I almost always use +#### Change log: +###### v.1.0.0: +Initial Release! \ No newline at end of file diff --git a/package/dist/firepup650-1.0.0.tar.gz b/package/dist/firepup650-1.0.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..5b6140bc4e5a6a90ec7196f06336918b37f1ccb2 GIT binary patch literal 2896 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 literal 0 HcmV?d00001 diff --git a/package/setup.cfg b/package/setup.cfg index dfc6682..d06aad8 100644 --- a/package/setup.cfg +++ b/package/setup.cfg @@ -1,15 +1,15 @@ [metadata] -name = fkeycapture -version = 1.0.7 +name = firepup650 +version = 1.0.0 author = Firepup650 author_email = firepyp650@gmail.com -description = A way to capture keystrokes +description = Package containing various shorthand things I use, and a few imports I almost always use long_description = file: README.md long_description_content_type = text/markdown -url = https://github.com/Alexander-Maples/fkeycapture +url = https://github.com/F1repup650/firepup650-PYPI project_urls = - Bug Tracker = https://github.com/Alexander-Maples/fkeycapture/issues - replit = https://replit.com/@ALEXANDERMAPLES/fkeycapture + Bug Tracker = https://github.com/F1repup650/firepup650-PYPI/issues + replit = https://replit.com/@Firepup650/firepup650-PYPI-Package classifiers = Programming Language :: Python :: 3 License :: OSI Approved :: MIT License @@ -23,7 +23,7 @@ classifiers = package_dir = = src packages = find: -python_requires = >=3.6 +python_requires = >=3.8 [options.packages.find] where = src \ No newline at end of file diff --git a/package/src/firepup650.egg-info/PKG-INFO b/package/src/firepup650.egg-info/PKG-INFO new file mode 100644 index 0000000..19018f4 --- /dev/null +++ b/package/src/firepup650.egg-info/PKG-INFO @@ -0,0 +1,25 @@ +Metadata-Version: 2.1 +Name: firepup650 +Version: 1.0.0 +Summary: Package containing various shorthand things I use, and a few imports I almost always use +Home-page: https://github.com/F1repup650/firepup650-PYPI +Author: Firepup650 +Author-email: firepyp650@gmail.com +License: UNKNOWN +Project-URL: Bug Tracker, https://github.com/F1repup650/firepup650-PYPI/issues +Project-URL: replit, https://replit.com/@Firepup650/firepup650-PYPI-Package +Description: # Firepup650 + Package containing various shorthand things I use, and a few imports I almost always use + #### Change log: + ###### v.1.0.0: + Initial Release! +Platform: UNKNOWN +Classifier: Programming Language :: Python :: 3 +Classifier: License :: OSI Approved :: MIT License +Classifier: Operating System :: OS Independent +Classifier: Development Status :: 5 - Production/Stable +Classifier: Environment :: Console +Classifier: Intended Audience :: Developers +Classifier: Natural Language :: English +Requires-Python: >=3.8 +Description-Content-Type: text/markdown diff --git a/package/src/firepup650.egg-info/SOURCES.txt b/package/src/firepup650.egg-info/SOURCES.txt new file mode 100644 index 0000000..24655b9 --- /dev/null +++ b/package/src/firepup650.egg-info/SOURCES.txt @@ -0,0 +1,9 @@ +LICENSE +README.md +pyproject.toml +setup.cfg +src/firepup650/__init__.py +src/firepup650.egg-info/PKG-INFO +src/firepup650.egg-info/SOURCES.txt +src/firepup650.egg-info/dependency_links.txt +src/firepup650.egg-info/top_level.txt \ No newline at end of file diff --git a/package/src/fkeycapture.egg-info/dependency_links.txt b/package/src/firepup650.egg-info/dependency_links.txt similarity index 100% rename from package/src/fkeycapture.egg-info/dependency_links.txt rename to package/src/firepup650.egg-info/dependency_links.txt diff --git a/package/src/firepup650.egg-info/top_level.txt b/package/src/firepup650.egg-info/top_level.txt new file mode 100644 index 0000000..58c9cc0 --- /dev/null +++ b/package/src/firepup650.egg-info/top_level.txt @@ -0,0 +1 @@ +firepup650 diff --git a/package/src/firepup650/__init__.py b/package/src/firepup650/__init__.py new file mode 100644 index 0000000..1ff7f22 --- /dev/null +++ b/package/src/firepup650/__init__.py @@ -0,0 +1,81 @@ +"""Firepup650's PYPI Package""" +import os, sys +import random as r +import fkeycapture as fkey +def clear() -> None: + """# Function: clear + Clears the screen + # Inputs: + None + + # Returns: + None + + # Raises: + None""" + os.system("clear") +def cmd(command: str) -> int: + """# Function: cmd + Runs bash commands + # Inputs: + command: str - The command to run + + # Returns: + int - Status code returned by the command + + # Raises: + None""" + status = os.system(command) + return status +def randint(low: int = 0, high: int = 10) -> int: + """# Funcion: randint + A safe randint function + # Inputs: + low: int - The bottom number, defaults to 0 + high: int - The top number, defaults to 10 + + # Returns: + int - A number between high and low + + # Raises: + None""" + try: + out = r.randint(low, high) + except: + out = r.randint(high, low) + return out +def e(code: any = 0) -> None: + """# Function: e + Exits with the provided code + # Inputs: + code: any - The status code to exit with, defaults to 0 + + # Returns: + None + + # Raises: + None""" + sys.exit(code) +def gp(keycount: int = 1, chars: list = ["1" ,"2"], bytes: bool = False) -> str or bytes: + """# Function: gp + Get keys and print them. + # Inputs: + keycount: int - Number of keys to get, defaults to 1 + chars: list - List of keys to accept, defaults to ["1", "2"] + + # Returns: + str or bytes - Keys pressed + + # Raises: + None""" + got = 0 + keys = "" + while got < keycount: + key = fkey.getchars(1, chars) + keys = f"{keys}{key}" + print(key,end="",flush=True) + print() + if not bytes: + return keys + else: + return keys.encode() \ No newline at end of file diff --git a/package/src/fkeycapture.egg-info/PKG-INFO b/package/src/fkeycapture.egg-info/PKG-INFO deleted file mode 100644 index 22239d0..0000000 --- a/package/src/fkeycapture.egg-info/PKG-INFO +++ /dev/null @@ -1,33 +0,0 @@ -Metadata-Version: 2.1 -Name: fkeycapture -Version: 1.0.7 -Summary: A way to capture keystrokes -Home-page: https://github.com/Alexander-Maples/fkeycapture -Author: Firepup650 -Author-email: firepyp650@gmail.com -License: UNKNOWN -Project-URL: Bug Tracker, https://github.com/Alexander-Maples/fkeycapture/issues -Project-URL: replit, https://replit.com/@ALEXANDERMAPLES/fkeycapture -Description: # fkeycapture - This is a simple and easy to use package that allows you to capture individual keystrokes from the user. - #### Forms: - 1. (Default) Recive key as a string - 2. Recive key as bytes - #### How to Use: - 1. from fkeycapture import get, getnum - 2. Use it like this - : get([number of keys to capture],[if you want bytes output, make this 'True']) - 3. To use the getnum method use like this: getnum([number of key to capture]) - ###### v.1.0.7: - Added the getnum method - -Platform: UNKNOWN -Classifier: Programming Language :: Python :: 3 -Classifier: License :: OSI Approved :: MIT License -Classifier: Operating System :: OS Independent -Classifier: Development Status :: 5 - Production/Stable -Classifier: Environment :: Console -Classifier: Intended Audience :: Developers -Classifier: Natural Language :: English -Requires-Python: >=3.6 -Description-Content-Type: text/markdown diff --git a/package/src/fkeycapture.egg-info/SOURCES.txt b/package/src/fkeycapture.egg-info/SOURCES.txt deleted file mode 100644 index e2dbd60..0000000 --- a/package/src/fkeycapture.egg-info/SOURCES.txt +++ /dev/null @@ -1,9 +0,0 @@ -LICENSE -README.md -pyproject.toml -setup.cfg -src/fkeycapture/__init__.py -src/fkeycapture.egg-info/PKG-INFO -src/fkeycapture.egg-info/SOURCES.txt -src/fkeycapture.egg-info/dependency_links.txt -src/fkeycapture.egg-info/top_level.txt \ No newline at end of file diff --git a/package/src/fkeycapture.egg-info/top_level.txt b/package/src/fkeycapture.egg-info/top_level.txt deleted file mode 100644 index a083384..0000000 --- a/package/src/fkeycapture.egg-info/top_level.txt +++ /dev/null @@ -1 +0,0 @@ -fkeycapture diff --git a/package/src/fkeycapture/__init__.py b/package/src/fkeycapture/__init__.py deleted file mode 100644 index 27a7985..0000000 --- a/package/src/fkeycapture/__init__.py +++ /dev/null @@ -1,48 +0,0 @@ -import termios, fcntl, sys -global fd,flags_save,attrs_save -fd = sys.stdin.fileno() -flags_save = fcntl.fcntl(fd, fcntl.F_GETFL) -attrs_save = termios.tcgetattr(fd) -def getp1(): - import termios, fcntl, sys, os - fd = sys.stdin.fileno() - # save old state - flags_save = fcntl.fcntl(fd, fcntl.F_GETFL) - attrs_save = termios.tcgetattr(fd) - # make raw - the way to do this comes from the termios(3) man page. - attrs = list(attrs_save) # copy the stored version to update - # iflag - attrs[0] &= ~(termios.IGNBRK | termios.BRKINT | termios.PARMRK - | termios.ISTRIP | termios.INLCR | termios. IGNCR - | termios.ICRNL | termios.IXON ) - # oflag - attrs[1] &= ~termios.OPOST - # cflag - attrs[2] &= ~(termios.CSIZE | termios. PARENB) - attrs[2] |= termios.CS8 - # lflag - attrs[3] &= ~(termios.ECHONL | termios.ECHO | termios.ICANON - | termios.ISIG | termios.IEXTEN) - termios.tcsetattr(fd, termios.TCSANOW, attrs) - # turn off non-blocking - fcntl.fcntl(fd, fcntl.F_SETFL, flags_save & ~os.O_NONBLOCK) -def getp2(): - termios.tcsetattr(fd, termios.TCSAFLUSH, attrs_save) - fcntl.fcntl(fd, fcntl.F_SETFL, flags_save) -def get(keycount=1,bytes=False): - getp1() - key = sys.stdin.read(keycount) - getp2() - if bytes == True: - key = key.encode() - return key -def getnum(keycount=1): - internalcounter=0 - keys = [] - while internalcounter != keycount: - key = get() - if key == "0" or key == "1" or key == "2" or key == "3" or key == "4" or key == "5" or key == "6" or key == "7" or key == "8" or key == "9": - keys.append(key) - internalcounter += 1 - key = "".join(keys) - return key \ No newline at end of file diff --git a/package/src/fkeycapture/__pycache__/__init__.cpython-38.pyc b/package/src/fkeycapture/__pycache__/__init__.cpython-38.pyc deleted file mode 100644 index 9f556c86986155a7d8eef1a503a8acc5d72262e5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1737 zcmZ8i&2HO95Z+n-ik580abm|!3LgTr0*bmx(?yC%L))1ZW!PR~znNL??9MOwwo(Zgjz9m}KKb2c>~9jT z4;zIaaAqe6f(aP1XigylBlCzSd|*xO8H=3+rl1f9?u^G?!lu4*W)PPI7uE+B1;Q2% z(j`$Az9@Zws4OZX5KG8a1hiOn`6J%L!Y<)r_{gAbtcEk&2DAfj9IaBZ|q*YS#K`%?PBje+ zu)!y}H?x3UdG;`Oa%=Et1=B?9f?*V$P-2+aM+2NV3!(a{_EaLz`=d-dy>6<8+R837 z%}LIb=%?E4^@mA1(%ydOpx)j;)FstDO;oIu)b_BSsmN^{gnP%YBNw3&wj=lG;j^Y1cavgX6v%B-t=sekx7ipTvo!(h;*^S5QLMA)o zxO*0#COetz-dOK+`e|QvI$w@2wS(~*KcUOBX9x_oA>hk6eZC3ye|#~y{V&HE*z0@? z)~?6a;=&PT7R# zkh3#O{z`t}hs6^7jAuQhRzdB8It6tL>J`*4XsMttyp2AH^H$dIm4+u8o@)47!!r%vX!usca}6&vd}lJDS=BP0X*V8^lT>JXFzTmO zTW+C4(MmtX=1=3HiCcpGj3LY9Lwt8Ta4rTey*U32Uu9Gk3~YRSjNTCh=8=@!DxX(C z6%4H|-|jogpQQhbDLuJFoT)NO$h`ch(&xoQIWfmxv&K}TsX>4Dd?YT0$@i4CjLLbF N2Y_t_{)TS_-v5bcY(xM6 diff --git a/poetry.lock b/poetry.lock new file mode 100644 index 0000000..b2e94c6 --- /dev/null +++ b/poetry.lock @@ -0,0 +1,482 @@ +[[package]] +name = "bleach" +version = "6.0.0" +description = "An easy safelist-based HTML-sanitizing tool." +category = "main" +optional = false +python-versions = ">=3.7" + +[package.dependencies] +six = ">=1.9.0" +webencodings = "*" + +[package.extras] +css = ["tinycss2 (>=1.1.0,<1.2)"] + +[[package]] +name = "build" +version = "0.10.0" +description = "A simple, correct Python build frontend" +category = "main" +optional = false +python-versions = ">= 3.7" + +[package.dependencies] +colorama = {version = "*", markers = "os_name == \"nt\""} +packaging = ">=19.0" +pyproject_hooks = "*" +tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} + +[package.extras] +test = ["pytest (>=6.2.4)", "filelock (>=3)", "pytest-cov (>=2.12)", "pytest-mock (>=2)", "pytest-rerunfailures (>=9.1)", "pytest-xdist (>=1.34)", "toml (>=0.10.0)", "wheel (>=0.36.0)", "setuptools (>=42.0.0)", "setuptools (>=56.0.0)"] +docs = ["furo (>=2021.08.31)", "sphinx (>=4.0,<5.0)", "sphinx-argparse-cli (>=1.5)", "sphinx-autodoc-typehints (>=1.10)"] +typing = ["importlib-metadata (>=5.1)", "mypy (==0.991)", "tomli", "typing-extensions (>=3.7.4.3)"] +virtualenv = ["virtualenv (>=20.0.35)"] + +[[package]] +name = "certifi" +version = "2022.12.7" +description = "Python package for providing Mozilla's CA Bundle." +category = "main" +optional = false +python-versions = ">=3.6" + +[[package]] +name = "cffi" +version = "1.15.1" +description = "Foreign Function Interface for Python calling C code." +category = "main" +optional = false +python-versions = "*" + +[package.dependencies] +pycparser = "*" + +[[package]] +name = "charset-normalizer" +version = "3.1.0" +description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." +category = "main" +optional = false +python-versions = ">=3.7.0" + +[[package]] +name = "colorama" +version = "0.4.6" +description = "Cross-platform colored terminal text." +category = "main" +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" + +[[package]] +name = "cryptography" +version = "40.0.2" +description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers." +category = "main" +optional = false +python-versions = ">=3.6" + +[package.dependencies] +cffi = ">=1.12" + +[package.extras] +docs = ["sphinx (>=5.3.0)", "sphinx-rtd-theme (>=1.1.1)"] +docstest = ["pyenchant (>=1.6.11)", "twine (>=1.12.0)", "sphinxcontrib-spelling (>=4.0.1)"] +pep8test = ["black", "ruff", "mypy", "check-manifest"] +sdist = ["setuptools-rust (>=0.11.4)"] +ssh = ["bcrypt (>=3.1.5)"] +test = ["pytest (>=6.2.0)", "pytest-shard (>=0.1.2)", "pytest-benchmark", "pytest-cov", "pytest-subtests", "pytest-xdist", "pretend", "iso8601"] +test-randomorder = ["pytest-randomly"] +tox = ["tox"] + +[[package]] +name = "docutils" +version = "0.19" +description = "Docutils -- Python Documentation Utilities" +category = "main" +optional = false +python-versions = ">=3.7" + +[[package]] +name = "idna" +version = "3.4" +description = "Internationalized Domain Names in Applications (IDNA)" +category = "main" +optional = false +python-versions = ">=3.5" + +[[package]] +name = "importlib-metadata" +version = "6.5.0" +description = "Read metadata from Python packages" +category = "main" +optional = false +python-versions = ">=3.7" + +[package.dependencies] +zipp = ">=0.5" + +[package.extras] +docs = ["sphinx (>=3.5)", "jaraco.packaging (>=9)", "rst.linker (>=1.9)", "furo", "sphinx-lint", "jaraco.tidelift (>=1.4)"] +perf = ["ipython"] +testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "flake8 (<5)", "pytest-cov", "pytest-enabler (>=1.3)", "packaging", "pyfakefs", "flufl.flake8", "pytest-perf (>=0.9.2)", "pytest-black (>=0.3.7)", "pytest-mypy (>=0.9.1)", "pytest-flake8", "importlib-resources (>=1.3)"] + +[[package]] +name = "importlib-resources" +version = "5.12.0" +description = "Read resources from Python packages" +category = "main" +optional = false +python-versions = ">=3.7" + +[package.dependencies] +zipp = {version = ">=3.1.0", markers = "python_version < \"3.10\""} + +[package.extras] +docs = ["sphinx (>=3.5)", "jaraco.packaging (>=9)", "rst.linker (>=1.9)", "furo", "sphinx-lint", "jaraco.tidelift (>=1.4)"] +testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "flake8 (<5)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-black (>=0.3.7)", "pytest-mypy (>=0.9.1)", "pytest-flake8"] + +[[package]] +name = "jaraco.classes" +version = "3.2.3" +description = "Utility functions for Python class constructs" +category = "main" +optional = false +python-versions = ">=3.7" + +[package.dependencies] +more-itertools = "*" + +[package.extras] +docs = ["sphinx (>=3.5)", "jaraco.packaging (>=9)", "rst.linker (>=1.9)", "jaraco.tidelift (>=1.4)"] +testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "flake8 (<5)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-black (>=0.3.7)", "pytest-mypy (>=0.9.1)"] + +[[package]] +name = "jeepney" +version = "0.8.0" +description = "Low-level, pure Python DBus protocol wrapper." +category = "main" +optional = false +python-versions = ">=3.7" + +[package.extras] +test = ["pytest", "pytest-trio", "pytest-asyncio (>=0.17)", "testpath", "trio", "async-timeout"] +trio = ["trio", "async-generator"] + +[[package]] +name = "keyring" +version = "23.13.1" +description = "Store and access your passwords safely." +category = "main" +optional = false +python-versions = ">=3.7" + +[package.dependencies] +importlib-metadata = {version = ">=4.11.4", markers = "python_version < \"3.12\""} +importlib-resources = {version = "*", markers = "python_version < \"3.9\""} +"jaraco.classes" = "*" +jeepney = {version = ">=0.4.2", markers = "sys_platform == \"linux\""} +pywin32-ctypes = {version = ">=0.2.0", markers = "sys_platform == \"win32\""} +SecretStorage = {version = ">=3.2", markers = "sys_platform == \"linux\""} + +[package.extras] +completion = ["shtab"] +docs = ["sphinx (>=3.5)", "jaraco.packaging (>=9)", "rst.linker (>=1.9)", "furo", "jaraco.tidelift (>=1.4)"] +testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "flake8 (<5)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-black (>=0.3.7)", "pytest-mypy (>=0.9.1)", "pytest-flake8"] + +[[package]] +name = "markdown-it-py" +version = "2.2.0" +description = "Python port of markdown-it. Markdown parsing, done right!" +category = "main" +optional = false +python-versions = ">=3.7" + +[package.dependencies] +mdurl = ">=0.1,<1.0" + +[package.extras] +benchmarking = ["psutil", "pytest", "pytest-benchmark"] +code_style = ["pre-commit (>=3.0,<4.0)"] +compare = ["commonmark (>=0.9,<1.0)", "markdown (>=3.4,<4.0)", "mistletoe (>=1.0,<2.0)", "mistune (>=2.0,<3.0)", "panflute (>=2.3,<3.0)"] +linkify = ["linkify-it-py (>=1,<3)"] +plugins = ["mdit-py-plugins"] +profiling = ["gprof2dot"] +rtd = ["attrs", "myst-parser", "pyyaml", "sphinx", "sphinx-copybutton", "sphinx-design", "sphinx-book-theme"] +testing = ["coverage", "pytest", "pytest-cov", "pytest-regressions"] + +[[package]] +name = "mdurl" +version = "0.1.2" +description = "Markdown URL utilities" +category = "main" +optional = false +python-versions = ">=3.7" + +[[package]] +name = "more-itertools" +version = "9.1.0" +description = "More routines for operating on iterables, beyond itertools" +category = "main" +optional = false +python-versions = ">=3.7" + +[[package]] +name = "packaging" +version = "23.1" +description = "Core utilities for Python packages" +category = "main" +optional = false +python-versions = ">=3.7" + +[[package]] +name = "pkginfo" +version = "1.9.6" +description = "Query metadata from sdists / bdists / installed packages." +category = "main" +optional = false +python-versions = ">=3.6" + +[package.extras] +testing = ["pytest", "pytest-cov"] + +[[package]] +name = "pycparser" +version = "2.21" +description = "C parser in Python" +category = "main" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" + +[[package]] +name = "pygments" +version = "2.15.1" +description = "Pygments is a syntax highlighting package written in Python." +category = "main" +optional = false +python-versions = ">=3.7" + +[package.extras] +plugins = ["importlib-metadata"] + +[[package]] +name = "pyproject-hooks" +version = "1.0.0" +description = "Wrappers to call pyproject.toml-based build backend hooks." +category = "main" +optional = false +python-versions = ">=3.7" + +[package.dependencies] +tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} + +[[package]] +name = "pywin32-ctypes" +version = "0.2.0" +description = "" +category = "main" +optional = false +python-versions = "*" + +[[package]] +name = "readme-renderer" +version = "37.3" +description = "readme_renderer is a library for rendering \"readme\" descriptions for Warehouse" +category = "main" +optional = false +python-versions = ">=3.7" + +[package.dependencies] +bleach = ">=2.1.0" +docutils = ">=0.13.1" +Pygments = ">=2.5.1" + +[package.extras] +md = ["cmarkgfm (>=0.8.0)"] + +[[package]] +name = "requests" +version = "2.28.2" +description = "Python HTTP for Humans." +category = "main" +optional = false +python-versions = ">=3.7, <4" + +[package.dependencies] +certifi = ">=2017.4.17" +charset-normalizer = ">=2,<4" +idna = ">=2.5,<4" +urllib3 = ">=1.21.1,<1.27" + +[package.extras] +socks = ["PySocks (>=1.5.6,!=1.5.7)"] +use_chardet_on_py3 = ["chardet (>=3.0.2,<6)"] + +[[package]] +name = "requests-toolbelt" +version = "0.10.1" +description = "A utility belt for advanced users of python-requests" +category = "main" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" + +[package.dependencies] +requests = ">=2.0.1,<3.0.0" + +[[package]] +name = "rfc3986" +version = "2.0.0" +description = "Validating URI References per RFC 3986" +category = "main" +optional = false +python-versions = ">=3.7" + +[package.extras] +idna2008 = ["idna"] + +[[package]] +name = "rich" +version = "13.3.4" +description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal" +category = "main" +optional = false +python-versions = ">=3.7.0" + +[package.dependencies] +markdown-it-py = ">=2.2.0,<3.0.0" +pygments = ">=2.13.0,<3.0.0" +typing-extensions = {version = ">=4.0.0,<5.0", markers = "python_version < \"3.9\""} + +[package.extras] +jupyter = ["ipywidgets (>=7.5.1,<9)"] + +[[package]] +name = "secretstorage" +version = "3.3.3" +description = "Python bindings to FreeDesktop.org Secret Service API" +category = "main" +optional = false +python-versions = ">=3.6" + +[package.dependencies] +cryptography = ">=2.0" +jeepney = ">=0.6" + +[[package]] +name = "six" +version = "1.16.0" +description = "Python 2 and 3 compatibility utilities" +category = "main" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" + +[[package]] +name = "tomli" +version = "2.0.1" +description = "A lil' TOML parser" +category = "main" +optional = false +python-versions = ">=3.7" + +[[package]] +name = "twine" +version = "4.0.2" +description = "Collection of utilities for publishing packages on PyPI" +category = "main" +optional = false +python-versions = ">=3.7" + +[package.dependencies] +importlib-metadata = ">=3.6" +keyring = ">=15.1" +pkginfo = ">=1.8.1" +readme-renderer = ">=35.0" +requests = ">=2.20" +requests-toolbelt = ">=0.8.0,<0.9.0 || >0.9.0" +rfc3986 = ">=1.4.0" +rich = ">=12.0.0" +urllib3 = ">=1.26.0" + +[[package]] +name = "typing-extensions" +version = "4.5.0" +description = "Backported and Experimental Type Hints for Python 3.7+" +category = "main" +optional = false +python-versions = ">=3.7" + +[[package]] +name = "urllib3" +version = "1.26.15" +description = "HTTP library with thread-safe connection pooling, file post, and more." +category = "main" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" + +[package.extras] +brotli = ["brotlicffi (>=0.8.0)", "brotli (>=1.0.9)", "brotlipy (>=0.6.0)"] +secure = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "certifi", "urllib3-secure-extra", "ipaddress"] +socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"] + +[[package]] +name = "webencodings" +version = "0.5.1" +description = "Character encoding aliases for legacy web content" +category = "main" +optional = false +python-versions = "*" + +[[package]] +name = "zipp" +version = "3.15.0" +description = "Backport of pathlib-compatible object wrapper for zip files" +category = "main" +optional = false +python-versions = ">=3.7" + +[package.extras] +docs = ["sphinx (>=3.5)", "jaraco.packaging (>=9)", "rst.linker (>=1.9)", "furo", "sphinx-lint", "jaraco.tidelift (>=1.4)"] +testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "flake8 (<5)", "pytest-cov", "pytest-enabler (>=1.3)", "jaraco.itertools", "jaraco.functools", "more-itertools", "big-o", "pytest-black (>=0.3.7)", "pytest-mypy (>=0.9.1)", "pytest-flake8"] + +[metadata] +lock-version = "1.1" +python-versions = "^3.8" +content-hash = "ffd17881930fc730266e5d5c0c1d583b4591c5f8a25163f1abe20c96ade126c9" + +[metadata.files] +bleach = [] +build = [] +certifi = [] +cffi = [] +charset-normalizer = [] +colorama = [] +cryptography = [] +docutils = [] +idna = [] +importlib-metadata = [] +importlib-resources = [] +"jaraco.classes" = [] +jeepney = [] +keyring = [] +markdown-it-py = [] +mdurl = [] +more-itertools = [] +packaging = [] +pkginfo = [] +pycparser = [] +pygments = [] +pyproject-hooks = [] +pywin32-ctypes = [] +readme-renderer = [] +requests = [] +requests-toolbelt = [] +rfc3986 = [] +rich = [] +secretstorage = [] +six = [] +tomli = [] +twine = [] +typing-extensions = [] +urllib3 = [] +webencodings = [] +zipp = [] diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..b1e5048 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,17 @@ +[tool.poetry] +name = "fkeycapture" +version = "0.1.0" +description = "Replit source" +authors = ["Firepup650"] + +[tool.poetry.dependencies] +python = "^3.8" +pip = "^23.1" +build = "^0.10.0" +twine = "^4.0.2" + +[tool.poetry.dev-dependencies] + +[build-system] +requires = ["poetry-core>=1.0.0"] +build-backend = "poetry.core.masonry.api"