PUSH TO GITHUB

This commit is contained in:
Firepup Sixfifty 2023-04-20 16:39:15 +00:00
parent 8f99951584
commit 3e9ca3415b
9 changed files with 45 additions and 6 deletions

View file

@ -1 +1 @@
{"nonce":6494760093704306076,"last_updated":{"seconds":1681990364,"nanos":523064000}} {"nonce":6281290299956684074,"last_updated":{"seconds":1682008736,"nanos":470800000}}

View file

@ -10,5 +10,4 @@ def build():
edit() edit()
cmd("clear") cmd("clear")
print("Run these commands next: \n cd package\n python3 -m build\n python3 -m twine upload -r pypi dist/*") print("Run these commands next: \n cd package\n python3 -m build\n python3 -m twine upload -r pypi dist/*")
# __token__
cmd("bash") cmd("bash")

View file

@ -1,5 +1,7 @@
# Firepup650 # Firepup650
Package containing various shorthand things I use, and a few imports I almost always use Package containing various shorthand things I use, and a few imports I almost always use
#### Change log: #### Change log:
###### v.1.0.1:
Added animated typing function, sleep shorthand
###### v.1.0.0: ###### v.1.0.0:
Initial Release! Initial Release!

Binary file not shown.

Binary file not shown.

BIN
package/dist/firepup650-1.0.1.tar.gz vendored Normal file

Binary file not shown.

View file

@ -1,6 +1,6 @@
[metadata] [metadata]
name = firepup650 name = firepup650
version = 1.0.0 version = 1.0.1
author = Firepup650 author = Firepup650
author_email = firepyp650@gmail.com author_email = firepyp650@gmail.com
description = Package containing various shorthand things I use, and a few imports I almost always use description = Package containing various shorthand things I use, and a few imports I almost always use

View file

@ -1,6 +1,6 @@
Metadata-Version: 2.1 Metadata-Version: 2.1
Name: firepup650 Name: firepup650
Version: 1.0.0 Version: 1.0.1
Summary: Package containing various shorthand things I use, and a few imports I almost always use Summary: Package containing various shorthand things I use, and a few imports I almost always use
Home-page: https://github.com/F1repup650/firepup650-PYPI Home-page: https://github.com/F1repup650/firepup650-PYPI
Author: Firepup650 Author: Firepup650
@ -11,6 +11,8 @@ Project-URL: replit, https://replit.com/@Firepup650/firepup650-PYPI-Package
Description: # Firepup650 Description: # Firepup650
Package containing various shorthand things I use, and a few imports I almost always use Package containing various shorthand things I use, and a few imports I almost always use
#### Change log: #### Change log:
###### v.1.0.1:
Added animated typing function, sleep shorthand
###### v.1.0.0: ###### v.1.0.0:
Initial Release! Initial Release!
Platform: UNKNOWN Platform: UNKNOWN

View file

@ -1,5 +1,5 @@
"""Firepup650's PYPI Package""" """Firepup650's PYPI Package"""
import os, sys import os, sys, termios, tty, time
import random as r import random as r
import fkeycapture as fkey import fkeycapture as fkey
def clear() -> None: def clear() -> None:
@ -78,4 +78,40 @@ def gp(keycount: int = 1, chars: list = ["1" ,"2"], bytes: bool = False) -> str
if not bytes: if not bytes:
return keys return keys
else: else:
return keys.encode() return keys.encode()
def printt(text: str, delay: float = 0.1, newline: bool = True) -> None:
"""# Function: printt
Print out animated text!
# Inputs:
text: str - Text to print (could technicaly be a list)
delay: float - How long to delay between characters, defaults to 0.1
newline: bool - Wether or not to add a newline at the end of the text, defaults to True
# Returns:
None
# Raises:
None"""
# Store the current terminal settings
original_terminal_settings = termios.tcgetattr(sys.stdin)
# Change terminal settings to prevent key interruptions
tty.setcbreak(sys.stdin)
for char in text:
print(char, end='', flush=True)
time.sleep(delay)
if newline:
print()
# Restore the original terminal settings
termios.tcsetattr(sys.stdin, termios.TCSADRAIN,original_terminal_settings)
def sleep(seconds: float = 0.5) -> None:
"""# Function: sleep
Calls `time.sleep(seconds)`
# Inputs:
seconds: float - How long to sleep for (in seconds), defaults to 0.5
# Returns:
None
# Raises:
None"""
time.sleep(seconds)