SyloraQ Python Module One Step Ahead
Project description
pip install SyloraQ
// QChangeLog:'Claw is massively updated.' //
-
wait(key="s", num=1): Pauses execution for a specified amount of time. The unit is controlled by thekeyparameter, which can be 's' for seconds, 'm' for minutes, or 'h' for hours. -
ifnull(value, default): This function checks if the givenvalueis missing or empty. If it is, the function returns the provideddefaultvalue. Otherwise, it returns the original value. -
switch_case(key, cases, default=None): This function looks up thekeyin the given dictionary of cases. If thekeyexists, it returns the corresponding value. If the value is a callable (like a function), it is executed. If thekeyis not found, it returns thedefaultvalue. -
timer_function(func, seconds): Executes the functionfuncafter waiting for a specified number of seconds. -
iftrue(var, function): IfvarisTrue, it calls the functionfunction. -
iffalse(var, function): IfvarisFalse, it calls the functionfunction. -
replace(string, replacement, replacement_with): Replaces occurrences ofreplacementin the string withreplacement_with. -
until(function, whattodo): Repeatedly executeswhattodo()untilfunction()evaluates toTrue. -
repeat(function, times): Executes the functionfunctiona specified number of times. -
oncondit(condition, function_true, function_false): Executesfunction_trueifconditionisTrue, else it executesfunction_false. -
repeat_forever(function): Continuously executesfunctionindefinitely. -
safe_run(func, *args, **kwargs): Safely runs a functionfunc, catching and printing any exceptions that may occur. -
start_timer(seconds, callback): Callscallbackafter waiting forsecondsseconds. -
generate_random_string(length=15): Generates a random string of alphanumeric characters and symbols of the specifiedlength. -
get_ip_address(): Returns the local IP address of the machine. -
send_email(subject, body, to_email, mailname, mailpass): Sends an email using Gmail's SMTP server. Requires a Gmail account's username and password. -
generate_unique_id(): Generates and returns a unique ID usinguuid. -
start_background_task(backtask): Starts a functionbacktaskin a separate thread, allowing it to run in the background. -
nocrash(func): A decorator that wraps a functionfuncto ensure it doesn't crash. If an error occurs, it is caught and logged. -
parallel(*functions): Executes multiple functions in parallel by running them in separate threads. -
gs(func): Returns the source code of the functionfuncas a string. -
Jctb(input_string): Converts a string into its binary representation, where each character is represented by a 10-bit binary value. -
Jbtc(binary_input): Converts a binary string (produced byJctb) back to its original string. -
encode_base64(data): Encodes a stringdatainto its Base64 representation. -
decode_base64(encoded_data): Decodes a Base64 encoded string back to its original string. -
reverse_string(string): Reverses the input string. -
calculate_factorial(number): Recursively calculates the factorial of a number. -
generate_random_string(length=15): (Defined twice, see above.) -
swap_values(a, b): Swaps the values ofaandband returns the swapped values. -
replace(string, old, new): (Defined twice, see above.) -
find_maximum(numbers): Finds and returns the maximum value in a list of numbers. -
find_minimum(numbers): Finds and returns the minimum value in a list of numbers. -
sum_list(lst): Returns the sum of elements in the listlst. -
reverse_list(lst): Returns the reverse of the listlst. -
is_prime(n): ReturnsTrueifnis a prime number, otherwise returnsFalse. -
split_into_chunks(text, chunk_size): Splits a stringtextinto chunks of sizechunk_size. -
unique_elements(lst): Returns a list of unique elements from the input listlst. -
calculate_average(numbers): Returns the average of a list of numbers. -
calculate_median(numbers): Returns the median of a list of numbers. -
count_words(text): Counts and returns the number of words in the input stringtext. -
count_sentences(text): Counts and returns the number of sentences in the input stringtext. -
add_commas(input_string): Adds commas between characters in the input string. -
remove_spaces(text): Removes all spaces from the input stringtext. -
calculate_square_root(number): Approximates the square root ofnumberusing the Newton-Raphson method. -
find_files_by_extension(directory, extension): Returns a list of files in the directory that have the specified file extension. -
get_curr_dir(): Returns the current working directory. -
check_if_file_exists(file_path): Checks if a file exists atfile_path. -
monitor_new_files(directory, callback): Continuously monitors the directory for new files and callscallbackwhenever new files are added. -
get_system_uptime(): Returns the system's uptime in seconds. -
get_cpu_templinux(): Retrieves the CPU temperature on a Linux system. -
monitor_file_changes(file_path, callback): Monitors the file for changes and callscallbackwhen the file is modified. -
write_to_file(filename, content): Writes thecontentto the specifiedfilename. -
read_from_file(filename): Reads and returns the content of the file specified byfilename. -
parse_json(json_string): Parses a JSON string and returns the corresponding Python object. -
create_file_if_not_exists(filename): Creates a file if it doesn't already exist. -
create_directory(directory): Creates the specified directory if it doesn't exist. -
get_cpu_usage(): Returns the current CPU usage percentage usingpsutil. -
get_memory_usage(): Returns the current memory usage percentage usingpsutil. -
create_zip_file(source_dir, output_zip): Creates a ZIP archive of the specifiedsource_dir. -
extract_zip_file(zip_file, extract_dir): Extracts a ZIP archive to the specifiedextract_dir. -
move_file(source, destination): Moves a file fromsourcetodestination. -
copy_file(source, destination): Copies a file fromsourcetodestination. -
show_file_properties(file_path): Displays properties of a file (size and last modified time). -
start_http_server(ip="0.0.0.0", port=8000): Starts a simple HTTP server on the givenipandport. -
stop_http_server(): Stops the running HTTP server. -
get_server_status(url="http://localhost:8000"): Checks if the server at the given URL is up and running. -
set_server_timeout(timeout=10): Sets the timeout for server connections. -
upload_file_to_server(file_path, url="http://localhost:8000/upload"): Uploads a file to a server at the specified URL. -
download_file_from_server(file_url, save_path): Downloads a file from the server and saves it tosave_path. -
CustomRequestHandler: A custom request handler for the HTTP server that responds to specific paths ("/" and "/status"). -
start_custom_http_server(ip="0.0.0.0", port=8000): Starts a custom HTTP server using theCustomRequestHandler. -
set_server_access_logs(log_file="server_access.log"): Configures logging to store server access logs. -
get_server_logs(log_file="server_access.log"): Retrieves and prints the server access logs. -
restart_http_server(): Restarts the HTTP server. -
check_internet_connection(): Checks if the system has internet connectivity by pinginggoogle.com. -
create_web_server(directory, port=8000): Serves the contents of a directory over HTTP on the specified port. -
create_custom_web_server(html, port=8000): Serves custom HTML content over HTTP on the specified port. -
JynParser(rep): Executes a Python script passed asrepin a new context (usingexec()). -
contains(input_list, substring): Checks if the givensubstringexists within any element ofinput_list. -
Jusbcam(Device_Name): Scans connected USB devices and checks ifDevice_Nameis present in the list of detected devices. -
claw(): Claw allows you to create a custom HTTP server with extensive control over its settings. Here are the things you can customize: HTML Code – Modify the webpage content as needed. IP Address – Choose which IP the server runs on. Port – Set the specific port for the server. Subdomains – Configure custom subdomains. Return Server Logs – Enable or disable server log reporting. -
ConsoleCam(): Lets you record and return the new changes in the console for a specific part. -
prn(): A faster printing function that mimics theprint()function, but with quicker execution. -
Key(Key goes in here)
-press(): Simulates pressing the assigned key. -release(): Simulates releasing the assigned key. -tap(): Simulates pressing and releasing the assigned key. -type_text(Text goes in here instead): Simulates typing the assigned text. -press_combo(tuple of keys goes in here): Simulates pressing the assigned keys. -
copy_to_clipboard(text): Copies the giventextto the clipboard. -
count_occurrences(lst, element): Counts the occurrences ofelementin the listlst. -
get_curr_time(): Returns the current date and time in the formatYYYY-MM-DD HH:MM:SS. -
is_palindrome(s): Checks if the stringsis a palindrome (same forward and backward). -
get_min_max(list): Returns the minimum and maximum values from the list. -
is_digits(input): Checks if theinputis a string consisting only of digits. -
create_dict(keys, values): Creates a dictionary by pairing elements fromkeysandvalues. -
square_number(input): Returns the square of the numberinput. -
get_file_size(file_path): Gets the size of the file atfile_path. -
find_duplicates(lst): Finds and returns duplicate elements from the listlst. -
get_average(list): Calculates the average of the numbers in the list. -
divide(a, b): Dividesabyband handles division by zero. -
extract_numbers(s): Extracts all numbers from the strings. -
BinTrig:-
exit(root,trig): This method binds the window's close event to a custom function (
trig). It's triggered when the user attempts to close the window. -
mouse_in(root,trig): It triggers a given function when the mouse enters the window area (
<Enter>event). -
mouse_out(root,trig): Similar to
mouse_in, but triggers the function when the mouse leaves the window area (<Leave>event). -
fullscreen(root,trig): This method checks whether the window is in fullscreen mode by comparing its size with the screen resolution. If the window is fullscreen, the specified function (
trig) is called. -
minimized(root,trig): This method checks if the window is minimized (iconic) or withdrawn, triggering the specified function if the condition is true.
-
width_height(root,widmin,heimin,trig): This method checks if the window's width or height exceeds specified minimum values (
widminandheimin). If so, it triggers the given function. -
key_press(root,key,trig): It binds a key press event (
<KeyPress-{key}>) to a specific function (trig), where{key}is the key to be pressed. -
focus_gain(root,trig): This triggers the given function when the window or widget gains focus.
-
focus_loss(root,trig): This triggers the given function when the window or widget loses focus.
-
window_move(root,trig): It binds the window's movement event to trigger a custom function whenever the window is moved.
-
resize(root,trig): Similar to
window_move, but this event is triggered whenever the window is resized. -
close_shortcut(root,trig): Binds the
Alt+F4shortcut key to close the window and trigger the specified function. -
mouse_button_press(root,button,trig): This triggers a function when a specified mouse button is pressed (
<Button-{button}>). -
mouse_button_release(root,button,trig): Similar to
mouse_button_press, but it triggers when the specified mouse button is released. -
double_click(root,trig): This triggers a function when the user double-clicks the left mouse button (
<Double-1>). -
mouse_motion(root,trig): It binds the mouse motion event (
<Motion>) to trigger a function whenever the mouse moves over the window. -
window_minimized(root,trig): Checks if the window is minimized (iconic state) and triggers the specified function if true.
-
window_maximized(root,trig): This triggers the given function if the window is maximized.
-
window_restored(root,trig): This triggers when the window is restored to its normal state (not minimized or maximized).
-
mouse_wheel_scroll(root,trig): It triggers a function when the user scrolls the mouse wheel over the window.
-
text_change(root,trig): This triggers the given function when text is changed in a widget, such as when a key is released in a text input field.
-
focus_on_widget(widget,trig): This binds the focus-in event to trigger a function when the widget gains focus.
-
focus_off_widget(widget,trig): This binds the focus-out event to trigger a function when the widget loses focus.
-
-
ByteJar: Sets/Deletes/Gets Cookie with a 3rd party lightweight program: Click to download -
letterglue(str="", *substr, str2=""): Joins strings and substrings into one. -
letterglue_creator(word): Generates code to convert each letter of a word into variables and joins them usingletterglue. -
Baudio("filename=audio_data", mode="Write", duration=5, Warn=True): Records audio for a specified duration and saves it to a.Baufile, returns it or plays the audio if saved. Requires a lightweight program: Click to download Usage:Baudio(filename="my_recording", mode="Write", duration=5, Warn=True) -
Btuple:
Btuple.count(*words): Returns the total number of words provided.Btuple.get(index, *words): Retrieves the word at the specified index from the collection.Btuple.exists(item, *words): Checks if the specified item exists in the collection of words.Btuple.first(*words): Returns the first word in the collection, or an error message if empty.Btuple.last(*words): Returns the last word in the collection, or an error message if empty.
-
isgreater(*nums): Compares two numbers and returnsTrueif the first is greater than the second. Displays an error if the input is invalid. -
runwfallback(func, fallback_func): Executesfunc()and, if it fails, runsfallback_func()instead. -
retry(func, retries=3, delay=1): Tries runningfunc()multiple times, pausing between attempts. ReturnsNoneif all attempts fail. -
fftime(func): Measures and prints the execution time offunc(). -
debug(func): Logs the function call, arguments, and return value for debugging. -
paste_from_clipboard(): Retrieves and returns text stored in the system clipboard. -
watch_file(filepath, callback): Monitorsfilepathfor changes and triggerscallback()when modified. -
is_website_online(url): Checks if the givenurlis reachable and returnsTrueif the site is online. -
shorten_url(long_url): Generates and returns a shortened version oflong_url. -
celsius_to_fahrenheit(c): Converts temperaturecfrom Celsius to Fahrenheit. -
fahrenheit_to_celsius(f): Converts temperatureffrom Fahrenheit to Celsius. -
efv(string): efv = (exec for variables) : Parsesstringin the code. U can use it likeparser = efv("x=5,y=2");print(parser['y'])Out:2and if parser['x'] it'd return 5 -
Hpass(limit=30): Generates a strong, hard-level password with a length specified bylimit. -
l(input): Returns a list of the input. -
dl(input): Returns the string of the list input. -
mix(input): Returns the mix of the input. -
sugar(input): Sugars(Super Salts)the input. -
get_type(value): Returns the type and string representation of the provided value. -
CacheClass: A simple caching system to store and retrieve key-value pairs. -
cantint(egl, ftw, tw): Performs comparisons on values based on the provided parameters and clears thetwlist if certain conditions are met. -
flatten(obj): Flattens a nested list (or iterable) into a single iterable. -
memoize(func): Caches the result of a function to optimize performance. -
chunk(iterable, size): Breaks down a large iterable (e.g., list, string) into smaller chunks of a specified size. -
merge_dicts(*dicts): Merges multiple dictionaries into one. -
deep_equal(a, b): Checks if two objects (lists or dictionaries) are deeply equal. -
split_by(text, size): Splits a string into chunks of a given size. -
GoodBye2SpyClass: A class that encapsulates several password and data processing techniques for security-related tasks. -
Passworded(Method insideGoodBye2Spy): Provides functionality for creating and verifying password hashes with key mixing and randomization. -
Shifting(Method insideGoodBye2Spy): Implements a hashing function that uses bitwise operations on the input data. -
Oneway(Method insideGoodBye2Spy): Creates a one-way hashed value using a combination of key mixing and a shifting hash technique. -
slc(code: str): Strips and parses the provided Python code to remove unnecessary line breaks and spaces. -
AI(text,questions=None,summarize_text=False,summary_length=3): It can answer questions or summarize thetext. -
GAI(Method insideAI): It can answer and summarize text.(Better thansummarizewhen it comes to QA.) -
summarize(Method insideAI): It can summarize text.(Better thanGAIwhen it comes to summarizing.) -
requireADMIN(For windows only!): Shuts the program with a error when opened if not runned as Administrator. -
__get_raw_from_web(url): Returns the raw text in the raw texturl(Module). -
@private: Wraps the function and the wrapped function can only used within the class its used. -
OTKeySystem: A class that can verify user without needing a database. Has web version. -
creator(timestamp=25)(Method insideOTKeySystem): Generates one time usable,location and program reopen proof key. -
verifier(key,timestamp=25)(Method insideOTKeySyntem): Can verify key generated bycreatorwithout any database(timestampmust be the same!). -
remove(input,*chars): Removes all elements fromcharslist if existed in input text. -
get_screen_size(): Returns screen size (width,height). -
NCMLHS(data: str, shift_rate1=3, shift_rate2=5, rotate_rate1=5, rotate_rate2=7, bits=64): Shifts rotates shifts and rotates the data again. -
remove_duplicates(lst): Removes all duplicates fromlstlist if exists. -
uncensor(input): Uncensors the censored content from theinputtext such asH311@toHello(It can snipe the right answer with the accuracy of 85%). -
BendableLists: A class for managing multiple named lists that can be created, extended, or queried dynamically. -
create(list_name)(Method insideBendableLists): Initializes a new empty list with the specified name, unless it already exists. -
add(list_name, *elements)(Method insideBendableLists): Adds one or more elements to the specified list if it exists. -
remove(list_name, element)(Method insideBendableLists): Removes a specific element from a named list, if both the list and element exist. -
get(list_name)(Method insideBendableLists): Retrieves the contents of a list by name; returnsNoneif the list doesn't exist. -
Nexttime(func, func2): Executesfuncthe first time it's called, then alternates withfunc2on subsequent calls using a toggled internal state key ("runnext"). -
Http: A class that can get and post requests to web. -
get(Method insideHttp): Returns scraped data from url. -
post(Method insideHttp): Posts a request to a url and returns the response. -
getos(): Returns the os where the script runs. -
str2int(input): Returns char locations in alphabet based oninputsuch asabcto123oracbto132. -
int2str(input): Does the opposite ofstr2int. -
shiftinwin(shiftrate,text): Shiftstextwith the rate ofshiftrateand returns it such as shiftinwin(5,Hii) >>> Hii > iiH > iHi > Hii > iiH. -
runwithin(code,call,params): Runs thecodecallingclass > function() or class.function()with theparamsplaced in such as runwithin(code,func(params go in here when executed dont add params here!) or class.func(params go in here when executed dont add params here!),params). -
Locker: A class that can lock or unlock a string based on key.(Numbers isn't supported) -
Lock(Method insideLocker): Locks thedatabased onkeyand returns it. -
Unlock(Method insideLocker): Unlocks theLdatawithKeyand returns it. -
alphabet_shift(text, shiftrate): Shiftstextby the amouth ofshiftrateand returns it such as alphabet_shift("ABC",1) >>> A to B > B to C > C to D >> BCD -
wkint(script, expire=5): Qaits untilexpireexpire.Use never as expire for no expire -
countdown(from_to_0): Countdowns every second and prints it untilfrom_to_0reaches 0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file syloraq-1.5.tar.gz.
File metadata
- Download URL: syloraq-1.5.tar.gz
- Upload date:
- Size: 40.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df9c83762c76ff8dda23ff6dbf3a0ecb947e63f3f44b6f49d76aa0ef8d9d73b9
|
|
| MD5 |
a4dc37ebee28a87a02f50e8a01304a59
|
|
| BLAKE2b-256 |
02766bb679942e7fe41788e6ecbf28ee48560d408c3a22a45fddd11d8bd1f241
|
File details
Details for the file syloraq-1.5-py3-none-any.whl.
File metadata
- Download URL: syloraq-1.5-py3-none-any.whl
- Upload date:
- Size: 32.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02457099055a1efabf407cb7b32063ec948d33dfa38660b5b5c1a631f8e6c45a
|
|
| MD5 |
67e1b1508549b4fb622801ca210b46c8
|
|
| BLAKE2b-256 |
9cbae9fbaf3774dc5e577ffb46210f908fc377f107a93c9c4e6e5dc3024463ec
|