━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# ❗ 𝗜𝗠𝗣𝗢𝗥𝗧𝗔𝗡𝗧 𝗡𝗢𝗧𝗜𝗖𝗘
**Your use of this Software in any form constitutes your acceptance of this Agreement.**
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
---
>>pip install SyloraQ
>>>Run this so u can use the library.
```bash
pip install SyloraQ
```
### Note on imports and the 🛡️ symbol:
> If a function or class has the (🛡️) symbol:
>> Import it with `from SyloraQ.security import function_or_class`
> Otherwise:
>> Import with `from SyloraQ import *`
The nested symbols like 🛡️i or 🛡️i+ indicate layers of insideness (inside functions/classes of 🛡️ items), extending as needed.
### Note on imports and the 🌐 symbol:
> If a function or class has the (🌐) symbol:
>> Import it with `from SyloraQ.web import function_or_class`
The nested symbols like 🌐i or 🌐i+ indicate layers of insideness (inside functions/classes of 🛡️ items), extending as needed.
> **`wait(key="s", num=1)`**
>> Pauses execution for a specified amount of time. The unit is controlled by the `key` parameter, which can be 's' for seconds, 'm' for minutes, or 'h' for hours.
> **`ifnull(value, default)`**
>> Checks if the given `value` is missing or empty. Returns `default` if so, otherwise returns the original `value`.
> **`switch_case(key, cases, default=None)`**
>> Looks up the `key` in the `cases` dictionary. If found, returns the corresponding value. If the value is callable (like a function), executes it. Returns `default` if `key` not found.
> **`timer_function(func, seconds)`**
>> Executes the function `func` after waiting for `seconds`.
> **`iftrue(var, function)`**
>> Calls `function` only if `var` is `True`.
> **`iffalse(var, function)`**
>> Calls `function` only if `var` is `False`.
> **`replace(string, replacement, replacement_with)`**
>> Replaces occurrences of `replacement` in `string` with `replacement_with`.
> **`until(function, whattodo)`**
>> Repeatedly executes `whattodo()` until `function()` returns `True`.
> **`repeat(function, times)`**
>> Executes `function` a specified number of `times`.
> **`oncondit(condition, function_true, function_false)`**
>> Executes `function_true` if `condition` is `True`, otherwise executes `function_false`.
> **`repeat_forever(function)`**
>> Continuously executes `function` indefinitely.
> **`safe_run(func, *args, **kwargs)`**
>> Runs `func` safely by catching and printing exceptions if they occur.
> **`start_timer(seconds, callback)`**
>> Calls `callback` after waiting for `seconds`.
> **`generate_random_string(length=15)`**
>> Generates a random string of alphanumeric characters and symbols of specified `length`.
> **`get_ip_address()`**
>> Returns the local IP address of the machine.
> **`send_email(subject, body, to_email, mailname, mailpass)`**
>> Sends an email via Gmail SMTP. Requires Gmail username (`mailname`) and password (`mailpass`).
> **`generate_unique_id()`**
>> Generates and returns a unique ID using the `uuid` module.
> **`start_background_task(backtask)`**
>> Runs the function `backtask` in a separate thread to run it in the background.
> **`nocrash(func)`**
>> Decorator that wraps `func` to catch and log errors, preventing crashes.
> **`parallel(*functions)`**
>> Runs multiple `functions` concurrently in separate threads.
> **`gs(func)`**
>> Returns the source code of the function `func` as a string.
> **`Jctb(input_string)`**
>> Converts a string into a binary representation, where each character is encoded as a 10-bit binary number.
> **`Jbtc(binary_input)`**
>> Converts a binary string (produced by `Jctb`) back to the original string.
> **`encode_base64(data)`**
>> Encodes a string `data` into Base64.
> **`decode_base64(encoded_data)`**
>> Decodes a Base64 encoded string back to the original string.
> **`reverse_string(string)`**
>> Reverses the input `string`.
> **`calculate_factorial(number)`**
>> Recursively calculates the factorial of `number`.
> **`swap_values(a, b)`**
>> Swaps the values of `a` and `b` and returns the swapped values.
> **`find_maximum(numbers)`**
>> Finds and returns the maximum value in the list `numbers`.
> **`find_minimum(numbers)`**
>> Finds and returns the minimum value in the list `numbers`.
> **`sum_list(lst)`**
>> Returns the sum of elements in the list `lst`.
> **`reverse_list(lst)`**
>> Returns a reversed version of the list `lst`.
> **`is_prime(n)`**
>> Returns `True` if `n` is a prime number, otherwise returns `False`.
> **`split_into_chunks(text, chunk_size)`**
>> Splits a string `text` into chunks of size `chunk_size`.
> **`unique_elements(lst)`**
>> Returns a list of unique elements from the input list `lst`.
> **`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 string `text`.
> **`count_sentences(text)`**
>> Counts and returns the number of sentences in the input string `text`.
> **`add_commas(input_string)`**
>> Adds commas between characters in the input string.
> **`remove_spaces(text)`**
>> Removes all spaces from the input string `text`.
> **`calculate_square_root(number)`**
>> Approximates the square root of `number` using 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 at `file_path`.
> **`monitor_new_files(directory, callback)`**
>> Continuously monitors the directory for new files and calls `callback` whenever 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 calls `callback` when the file is modified.
> **`write_to_file(filename, content)`**
>> Writes the `content` to the specified `filename`.
> **`read_from_file(filename)`**
>> Reads and returns the content of the file specified by `filename`.
> **`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 using `psutil`.
> **`get_memory_usage()`**
>> Returns the current memory usage percentage using `psutil`.
> **`create_zip_file(source_dir, output_zip)`**
>> Creates a ZIP archive of the specified `source_dir`.
> **`extract_zip_file(zip_file, extract_dir)`**
>> Extracts a ZIP archive to the specified `extract_dir`.
> **`move_file(source, destination)`**
>> Moves a file from `source` to `destination`.
> **`copy_file(source, destination)`**
>> Copies a file from `source` to `destination`.
> **`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 given `ip` and `port`.
> **`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 to `save_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 the `CustomRequestHandler`.
> **`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 pinging `google.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 as `rep` in a new context (using `exec()`).
> **`contains(input_list, substring)`**
>> Checks if the given `substring` exists within any element of `input_list`.
> **`Jusbcam(Device_Name)`**
>> Scans connected USB devices and checks if `Device_Name` is present in the list of detected devices.
> 81. `claw()`
>> A customizable HTTP server with:
>> - Custom HTML & subdomains
>> - IP and port settings (default `0.0.0.0:8000`)
>> - Logging control
>> - Custom 404 page
>> - Auth token for API
>> - POST `/api/message` for sending messages
> 82. `ConsoleCam()`
>> Records and returns changes in the console output for a specific part.
> 83. `prn()`
>> A faster printing function than standard `print()`.
> 84. `Key(KeyName)`
>> Simulates keyboard actions:
>> - `.press()`, `.release()`, `.tap()`
>> - `.type_text(text)`
>> - `.press_combo(tuple_of_keys)`
> 85. `copy_to_clipboard(text)`
>> Copies `text` to system clipboard.
> 86. `count_occurrences(lst, element)`
>> Counts occurrences of `element` in `lst`.
> 87. `get_curr_time()`
>> Returns the current date and time in the format `YYYY-MM-DD HH:MM:SS`.
> 88. `is_palindrome(s)`
>> Checks if the string `s` is a palindrome (same forward and backward).
> 89. `get_min_max(list)`
>> Returns the minimum and maximum values from the list.
> 90. `is_digits(input)`
>> Checks if the `input` is a string consisting only of digits.
> 91. `create_dict(keys, values)`
>> Creates a dictionary by pairing elements from `keys` and `values`.
> 92. `square_number(input)`
>> Returns the square of the number `input`.
> 93. `get_file_size(file_path)`
>> Gets the size of the file at `file_path`.
> 94. `find_duplicates(lst)`
>> Finds and returns duplicate elements from the list `lst`.
> 95. `get_average(list)`
>> Calculates the average of the numbers in the list.
> 96. `divide(a, b)`
>> Divides `a` by `b` and handles division by zero.
> 97. `extract_numbers(s)`
>> Extracts all numbers from the string `s`.
> 98. `BinTrig`
>> A class with multiple methods to bind various Tkinter window and widget events to custom functions, such as mouse movements, key presses, window resize, focus changes, etc.
> 99. `ByteJar`
>> Sets/Deletes/Gets Cookies with a 3rd party lightweight program. [Download Link](https://www.mediafire.com/file/cwaa748it4x94jo/ByteJarinstaller.exe/file)
> 100. `letterglue(str="", *substr, str2="")`
>> Joins strings and substrings into one string.
> 101. `letterglue_creator(word)`
>> Generates code to convert each letter of a word into variables and joins them using `letterglue`.
> 102. `Baudio("filename=audio_data", mode="Write", duration=5, Warn=True)`
>> Records audio for a specified duration, saves to a `.Bau` file, returns it or plays it. Requires a lightweight program. Usage: `Baudio(filename="my_recording", mode="Write", duration=5, Warn=True)`
> 103. `Btuple`
>> A utility class with methods like:
>> - `.count(*words)` - counts total words
>> - `.get(index, *words)` - retrieves word at index
>> - `.exists(item, *words)` - checks existence
>> - `.first(*words)` - gets first word or error
>> - `.last(*words)` - gets last word or error
> 104. `isgreater(*nums)`
>> Compares two numbers; returns `True` if first is greater, else error if input invalid.
> 105. `runwfallback(func, fallback_func)`
>> Runs `func()`, if it fails runs `fallback_func()` instead.
> 106. `retry(func, retries=3, delay=1)`
>> Tries running `func()` multiple times with delays. Returns `None` if all attempts fail.
> 107. `fftime(func)`
>> Measures and prints the execution time of `func()`.
> 108. `debug(func)`
>> Logs function calls, arguments, and return values for debugging.
> 109. `paste_from_clipboard()`
>> Retrieves and returns text from the system clipboard.
> 110. `watch_file(filepath, callback)`
>> Monitors file changes and triggers `callback()` on modification.
> 111. `is_website_online(url)`
>> Checks if the `url` is reachable; returns `True` if online.
> 112. `shorten_url(long_url)`
>> Generates and returns a shortened URL.
> 113. `celsius_to_fahrenheit(c)`
>> Converts Celsius `c` to Fahrenheit.
> 114. `fahrenheit_to_celsius(f)`
>> Converts Fahrenheit `f` to Celsius.
> 115. `efv(string)`
>> Parses code string for variables, returns dictionary of variables. Example: `parser = efv("x=5,y=2"); print(parser['y'])` outputs `2`.
> 116. `Hpass(limit=30)`
>> Generates a strong password of specified length (`limit`).
> 117. `l(input)`
>> Converts input into a list.
> 118. `dl(input)`
>> Converts a list input into a string.
> 119. `mix(input)`
>> Returns a "mix" of the input (details depend on implementation).
> 120. `sugar(input)`
>> "Sugars" (super salts) the input (details depend on implementation).
> 121. `get_type(value)`
>> Returns the type and string representation of `value`.
> 122. `Cache` Class
>> A simple caching system to store and retrieve key-value pairs.
> 123. `cantint(egl, ftw, tw)`
>> Performs comparisons on values based on provided parameters and clears the `tw` list if certain conditions are met.
> 124. `flatten(obj)`
>> Flattens a nested list (or iterable) into a single iterable.
> 125. `memoize(func)`
>> Caches the result of a function to optimize performance.
> 126. `chunk(iterable, size)`
>> Breaks down a large iterable (e.g., list, string) into smaller chunks of a specified size.
> 127. `merge_dicts(*dicts)`
>> Merges multiple dictionaries into one.
> 128. `deep_equal(a, b)`
>> Checks if two objects (lists or dictionaries) are deeply equal.
> 129. `split_by(text, size)`
>> Splits a string into chunks of a given size.
> 130. `GoodBye2Spy` Class
>> A class that encapsulates several password and data processing techniques for security-related tasks.
> 131. `Passworded` (Method inside `GoodBye2Spy`)
>> Provides functionality for creating and verifying password hashes with key mixing and randomization.
> 132. `Shifting` (Method inside `GoodBye2Spy`)
>> Implements a hashing function that uses bitwise operations on the input data.
> 133. `Oneway` (Method inside `GoodBye2Spy`)
>> Creates a one-way hashed value using a combination of key mixing and a shifting hash technique.
> 134. `slc(code: str)`
>> Strips and parses the provided Python code to remove unnecessary line breaks and spaces.
> 135. `AI(text,questions=None,summarize_text=False,summary_length=3)`
>> It can answer questions or summarize the `text`.
> 136. `GAI` (Method inside `AI`)
>> It can answer and summarize text. (Better than `summarize` when it comes to QA.)
> 137. `summarize` (Method inside `AI`)
>> It can summarize text. (Better than `GAI` when it comes to summarizing.)
> 138. `requireADMIN(For windows only!)`
>> Shuts the program with an error when opened if not run as Administrator.
> 139. `__get_raw_from_web(url)`
>> Returns the raw text from the raw text `url` (**Module**).
> 140. `@private`
>> Wraps the function so it can only be used within the class where it's defined.
> 141. `OTKeySystem`
>> A class that can verify user without needing a database. *Has web version.*
> 142. `creator(timestamp=25)` (Method inside `OTKeySystem`)
>> Generates one-time usable, location and program reopen proof key.
> 143. `verifier(key,timestamp=25)` (Method inside `OTKeySystem`)
>> Verifies keys generated by `creator` without any database (`timestamp` must be the same!).
> 144. `remove(input,*chars)`
>> Removes all elements from `chars` list if they exist in the input text.
> 145. `get_screen_size()`
>> Returns screen size (width, height).
> 146. `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.
> 147. `remove_duplicates(lst)`
>> Removes all duplicates from the `lst` list if they exist.
> 148. `uncensor(input)`
>> Uncensors censored content from the `input` text such as `H311@` to `Hello` (accuracy approx. 85%).
> 149. `BendableLists`
>> A class for managing multiple named lists that can be created, extended, or queried dynamically.
> 150. `create(list_name)` (Method inside `BendableLists`)
>> Initializes a new empty list with the specified name, unless it already exists.
> 151. `add(list_name, *elements)` (Method inside `BendableLists`)
>> Adds one or more elements to the specified list if it exists.
> 152. `remove(list_name, element)` (Method inside `BendableLists`)
>> Removes a specific element from a named list, if both the list and element exist.
> 153. `get(list_name)` (Method inside `BendableLists`)
>> Retrieves the contents of a list by name; returns `None` if the list doesn't exist.
> 154. `Nexttime(func, func2)`
>> Executes `func` the first time it's called, then alternates with `func2` on subsequent calls using a toggled internal state key (`"runnext"`).
> 155. `Http`
>> A class that can get and post requests to the web.
> 156. `get` (Method inside `Http`)
>> Returns scraped data from url.
> 157. `post` (Method inside `Http`)
>> Posts a request to a url and returns the response.
> 158. `getos()`
>> Returns the OS where the script runs.
> 159. `str2int(input)`
>> Returns character positions in alphabet based on `input` such as `abc` to `123` or `acb` to `132`.
> 160. `int2str(input)`
>> Does the opposite of `str2int`.
> 161. `shiftinwin(shiftrate,text)`
>> Shifts `text` with the rate of `shiftrate` and returns it, e.g., `shiftinwin(5,Hii)` cycles characters.
> 162. `runwithin(code,call,params)`
>> Runs the `code` calling `class > function()` or `class.function()` with the `params`.
> 163. 🛡️ `Locker`
>> A class that can lock or unlock a string based on a key (numbers not supported).
> 164. 🛡️i `Lock` (Method inside `Locker`)
>> Locks the `data` based on `key` and returns it.
> 165. 🛡️i `Unlock` (Method inside `Locker`)
>> Unlocks the locked data with `key` and returns it.
> 166. `alphabet_shift(text, shiftrate)`
>> Shifts `text` by the amount of `shiftrate` and returns it, e.g., `"ABC",1` → `"BCD"`.
> 167. `wkint(script, expire=5)`
>> Waits until `expire` seconds expire. Use `never` as expire for no expiry.
> 168. `countdown(from_to_0)`
>> Counts down every second and prints until `from_to_0` reaches 0.
> 169. `inviShade`
>> A class that turns any input into a single invisible character and another that decodes it back to the full original message.
> 170. `encode` (Method inside `inviShade`)
>> Encodes input text to a single invisible char.
> 171. `decode` (Method inside `inviShade`)
>> Reverses encoding.
> 172. `boa(string, option, pin)`
>> Returns `option` from the `pin` in `string`.
>> Example: `boa("Hello//abc", b or before, "//")` outputs `Hello` because it comes before `//`. If `after`, outputs `abc`.
> 173. 🛡️ `Quasar`
>> A class that turns any input into a single invisible character and another that decodes it back to the full original message.
> 174. 🛡️i `encode` (Method inside `Quasar`)
>> Encrypts input.
> 175. 🛡️i `decode` (Method inside `Quasar`)
>> Reverses encrypting.
> 176. `@time_limited_cache(seconds)`
>> Like `memoize()` but caches results only for `seconds` period of time.
> 177. `GlowShell`
>> A utility class that provides styled printing, cursor control, and animated frame playback in the terminal.
> 178. `print(message, fg=None, bg=None, bold=False, underline=False, dim=False, bright=False, blink=False, end="\n")` (Method inside `GlowShell`)
>> Prints the `message` with given color and style settings. Automatically resets the style after printing.
> 179. `clear()` (Method inside `GlowShell`)
>> Clears the entire terminal screen and moves the cursor to the top-left corner.
> 180. `clear_line()` (Method inside `GlowShell`)
>> Clears the current line only, leaving the rest of the terminal untouched.
> 181. `move_cursor(row, col)` (Method inside `GlowShell`)
>> Moves the terminal cursor to the specified `row` and `column`.
> 182. `hide_cursor()` (Method inside `GlowShell`)
>> Hides the blinking terminal cursor until shown again.
> 183. `show_cursor()` (Method inside `GlowShell`)
>> Shows the terminal cursor if it was previously hidden.
> 184. `test()` (Method inside `GlowShell`)
>> Demonstrates usage of styles, colors, cursor movement, and clearing capabilities. Useful for checking terminal support.
> 185. `animate_frames(frames, ...)` (Method inside `GlowShell`)
>> This function displays a sequence of multi-line text frames (like ASCII art) in the terminal, one after the other, with optional looping and formatting like color, bold, delay, etc.
>>>> --------------------------------------------------------------------------------------------------------------------------------
>>>> | Key | Description | Values |
>>>> |-----------|--------------------------|---------------------------------------------------------------------------------------|
>>>> | `fg` | Foreground (text) color | `"black"`, `"red"`, `"green"`, `"yellow"`, `"blue"`, `"magenta"`, `"cyan"`, `"white"` |
>>>> | `bg` | Background color | Same as `fg` colors |
>>>> | `bold` | Bold text | `true` or `false` |
>>>> | `dim` | Dim text | `true` or `false` |
>>>> |`underline`| Underline text | `true` or `false` |
>>>> | `bright` | Bright color variation | `true` or `false` |
>>>> | `blink` | Blinking text | `true` or `false` |
>>>> | `delay` | Delay time for this frame| Any positive number like `0.3`, `1`, etc. (Seconds) |
>>>> --------------------------------------------------------------------------------------------------------------------------------
>>> frames = [
>>> "--/fg:green,bold:true,delay:1/--\nThis is a green bold frame.",
>>> "--/fg:yellow,dim:true,delay:0.5/--\nNow it's dim and yellow.",
>>> "--/fg:red,bg:white,blink:true,delay:0.3/--\nRed on white and blinking."
>>> ]
> 186. `@lazy_property`
>> A property decorator that computes a value once on first access and caches it for later use.
> 187. 🌐 `BrowSentinel(headless=True, port=9222)`
>> High-level browser controller class that manages a headless Chrome instance with remote debugging enabled on the specified port. Provides methods to control browsing, page navigation, interaction, and automation.
> 188. 🌐i `start()` (Method inside `BrowSentinel`)
>> Launches Chrome with remote debugging enabled, connects to the first available browser page, and enables key domains (`Page`, `DOM`, and `Network`) to prepare for interaction.
> 189. 🌐i `navigate(url)` (Method inside `BrowSentinel`)
>> Navigates the browser to the specified URL. Returns a response including frame and loader identifiers.
> 190. 🌐 `reload()` (Method inside `BrowSentinel`)
>> Reloads the current page.
> 191. 🌐 `back()` (Method inside `BrowSentinel`)
>> Navigates back in the browser history by retrieving the navigation history and navigating to the previous entry.
> 192. 🌐 `forward()` (Method inside `BrowSentinel`)
>> Navigates forward in the browser history similarly by using navigation history.
> 193. 🌐 `set_viewport(width, height, deviceScaleFactor=1)` (Method inside `BrowSentinel`)
>> Overrides the viewport size and device scale factor to emulate different screen sizes and pixel densities.
> 194. 🌐 `evaluate(script)` (Method inside `BrowSentinel`)
>> Executes JavaScript code within the current page context and returns the result value.
> 195. 🌐 `get_html()` (Method inside `BrowSentinel`)
>> Retrieves the full HTML markup of the current page.
> 196. 🌐 `get_text()` (Method inside `BrowSentinel`)
>> Retrieves the visible text content of the page (equivalent to `document.body.innerText`).
> 197. 🌐 `click(selector)` (Method inside `BrowSentinel`)
>> Simulates a mouse click on the first element matched by the given CSS selector.
> 198. 🌐 `type(selector, text)` (Method inside `BrowSentinel`)
>> Sets the value of the input element matched by the selector and dispatches an input event, simulating user typing.
> 199. 🌐 `wait_for(selector, timeout=5)` (Method inside `BrowSentinel`)
>> Waits asynchronously until an element matching the selector appears on the page or the timeout is reached.
> 200. 🌐 `screenshot(path="page.png")` (Method inside `BrowSentinel`)
>> Captures a screenshot of the current page and saves it as a PNG file at the specified path.
> 201. 🌐 `close()` (Method inside `BrowSentinel`)
>> Closes the browser session and terminates the Chrome process cleanly.
>> The `BrowSentinel` class provides a minimal yet robust interface for controlling a headless Chrome browser via Chrome DevTools Protocol. It enables navigation, DOM interaction, scripting, viewport control, and screenshot capture all without external dependencies beyond Python’s standard library and a local Chrome installation.
>> Typical workflow:
>>> 1. Instantiate the browser object: `Browser = BrowSentinel()`
>>> 2. Start the browser and connect: `browser.start()`
>>> 3. Navigate pages, interact with elements, evaluate (run JavaScript in the page), capture screenshots or extract page data
>>> 4. Close when done: `browser.close()`
>>> Try out this:
>>>
```python
t2s="""
function replaceTextWithSyloraQ() {
const walker = document.createTreeWalker(
document.body,
NodeFilter.SHOW_TEXT,
null,
false
);
let node;
while (node = walker.nextNode()) {
if (node.nodeValue.trim() !== "") {
node.nodeValue = "SyloraQ";
}
}
}
replaceTextWithSyloraQ();
"""
if __name__ == "__main__":
b = BrowSentinel()
print("Starting browser...")
b.start()
b.navigate("https://example.com")
b.screenshot()
inp=len(input("Please Check the file then delete it before pressing enter>"))
if inp-inp==0:
b.evaluate(t2s)
b.screenshot()
b.close
```
> 🌐 `api(port)` (Works with `@endpoint()`)
>> Creates an api server
> 🌐 `@endpoint(name)` (Works with `api()`)
>> Adds and endpoint to the api server.
>>> Try out this:
```python
import time
def run_api(port=8381):
@endpoint("hello")
def hello_endpoint(body, headers):
name = body.get("input") if isinstance(body, dict) else None
if headers.get("Token") == "YourToken":
return {"message": f"Hello, {name}!"}
else:
return {"error": "Sorry, invalid token"}
api(port=port)
print(f"API server running on port {port} with endpoint '/api/hello'")
try:
while True:time.sleep(10000000)
except KeyboardInterrupt:
print("Server stopped.")
run_api(8381)
```
>>> Then run on ur cmd:
```bash
curl -X POST http://localhost:8381/api/hello ^
-H "Content-Type: application/json" ^
-H "Token: my-secret-token" ^
-d "{\"input\":\"Alice\"}"
```
> `stick_overlay(tk_win, process_name="Notepad.exe", x_offset=20, y_offset=60, interval=30)`
>> Creates a dynamic overlay window that tracks the position of the main window of a given process by name, updating the overlay’s position in real-time.
> `similarity(sentence1, sentence2, drama_mode=False)`
>> Calculates a similarity score between two sentences.
> **`class Jsonify`**
>> A utility class for advanced JSON manipulation. Supports conversion from strings/files, deep access and modification, merging, validation, searching, and exporting.
>>
>>> `from_string(json_string)`
>>>> Parses a JSON string into a `Jsonify` object using `json.loads()`.
>>> `frs(string)`
>>>> Parses loose or malformed string in the form `"key1:val1,key2:val2"` into a `Jsonify` object.
>>> `from_file(filepath)`
>>>> Loads JSON from a file and returns a `Jsonify` instance.
>>> `to_string(pretty=False)`
>>>> Converts the internal JSON data back into a string. If `pretty=True`, outputs formatted JSON.
>>> `to_file(filepath, pretty=False)`
>>>> Saves the internal JSON to a file. Supports pretty formatting.
>>> `get(key, default=None)`
>>>> Gets value by dot notation key (`"a.b.c"` or `"a.0.b"` for lists). Returns `default` if not found.
>>> `set(key, value)`
>>>> Sets value by dot notation key. Creates nested structures if necessary.
>>> `remove(key)`
>>>> Removes value by dot notation key. Returns `True` if removed, else `False`.
>>> `merge(other)`
>>>> Deep-merges another `dict` or `Jsonify` into the current data. Keys are recursively updated.
>>> `search(pattern, search_keys=True, search_values=True)`
>>>> Regex-based search over keys and/or string values. Returns list of matching dot notation paths.
>>> `validate_keys(required_keys)`
>>>> Ensures all given dot-notation keys exist in data. Returns `True` if all exist.
>>> `copy()`
>>>> Returns a deep copy of the current `Jsonify` instance.
>>> `clear()`
>>>> Clears the internal data (dict or list). If another type, resets to empty dict.
> **`class Textify`**
>> A utility class for applying functions over characters, words, groups, or sentences in a text.
>>
>>> `for_every_char(do)`
>>>> Applies function `do(char)` to every character in the text.
>>> `for_every_word(do)`
>>>> Applies function `do(word)` to every word in the text (split by whitespace).
>>> `for_every_group(n, do)`
>>>> Applies function `do(group)` to each substring group of size `n`.
>>> `for_every_sentence(do)`
>>>> Applies function `do(sentence)` to each sentence (split using punctuation and space).
>>> `result()`
>>>> Returns the processed text.
> **`def exists(string, pin)`**
>> Checks if `pin` exists within `string`.
>>> Returns `True` if found, else `False`.
> 🌐 **`UrlValidate(url)`**
>> Validates a URL. (The url must be published on internet!)
> **`def Shut()`**
>> Suppresses all standard output, error, and logging temporarily.
>>> Returns a tuple of original output/logging states for restoration.
> **`def UnShut(origins)`**
>> Restores original stdout, stderr, print, and logging.
>>> `origins` should be the tuple returned by `Shut()`.
> **`class ZypherTrail`**
>> Encodes and decodes text using a vertical zigzag (rail fence-like) cipher.
>>> **`encode(string, max_row=5)`**
>>>> Encodes text in a zigzag pattern up to `max_row`. Returns a multi-line string.
>>> **`decode(encoded_str)`**
>>>> Decodes the zigzag-encoded string back to its original form.
> **`NLDurationParser(seconds: int, full=False)`**
>> Converts a number of seconds into a human-readable duration string, choosing the largest suitable unit (seconds, minutes, hours, days, or years).
>> When `full` is `True`, uses full unit names; otherwise, uses abbreviations.
> **`justify(words, max_width)`**
>> Formats a list of words into fully justified lines of a given width.
>> Distributes spaces evenly between words, padding the last line with spaces on the right.
> **`draw_tree(path, prefix="")`**
>> Recursively prints a visual tree of directories and files starting from a specified path.
>> Uses branch and indent symbols to represent file system hierarchy.
> **`@prefix(pfx)`**
>> A decorator that scans command-line arguments and calls the decorated function with arguments matching a specific prefix (with the prefix removed).
> **`SQS(path)`**
>> A configuration file manager supporting global keys and named sections.
>> Loads, reads, writes, deletes, toggles, and saves config values, parsing expressions and inline comments.
```sqs
#This is a comment!
# Global variables
debug = true
max_retries = 5
pi_value = 3.14159
# Section with variables
[network]
host = "localhost"
port = 8080
# Conditional assignment
if max_retries >= 3 then retry_mode = "aggressive"
# Toggle a boolean
toggle debug
# Arithmetic operation
max_retries += 2
# Copy value from one key to another
set retry_count to max_retries
# etc.
```
> **`read(key, default=None, section=None)` (Method inside `SQS`)**
>> Retrieves a stored value from the specified section or global scope, returning a default if key is missing.
> **`write(text)` (Method inside `SQS`)**
>> Parses and processes multiple lines of config expressions from a text block, updating internal state.
> **`delete(key, section=None)` (Method inside `SQS`)**
>> Removes a key from a given section or the global config if no section specified.
> **`has_key(key, section=None)` (Method inside `SQS`)**
>> Checks existence of a key in a section or globally.
> **`save()` (Method inside `SQS`)**
>> Writes current global keys and all sections with their keys back to the config file, preserving format.
> **`reload()` (Method inside `SQS`)**
>> Clears internal data and reloads configuration from the file.
> **`to_dict()` (Method inside `SQS`)**
>> Returns the entire configuration as a nested dictionary with globals and sections.
> **`PYCify`**
>> Utility class for compiling Python source files into bytecode and loading compiled modules dynamically.
> **`compile(source_path, pyc_path=None)` (Method inside `PYCify`)**
>> Reads a Python source file, compiles it into bytecode, writes the `.pyc` file with correct header info (magic number, timestamp).
> **`load(pyc_path, module_name)` (Method inside `PYCify`)**
>> Loads a compiled `.pyc` file as a Python module by name, enabling dynamic imports from bytecode.
> **`tts(text,gender)`**
>> Plays the audio of a `gender (male/female)` saying `text`.
>> This is a basic `text to speech` so dont expect very much from it. `;)`
> **`Cursor`**
>> Utility class for managing and editing multiline text with cursor navigation, selection, and undo/redo functionality.
> **`move(direction, steps=1)`** *(Method inside `Cursor`)*
>> Moves the cursor in the specified direction (`"u"` up, `"d"` down, `"l"` left, `"r"` right) by the given number of steps.
> **`move_to_start_of_line()`** *(Method inside `Cursor`)*
>> Positions the cursor at the start of the current line.
> **`move_to_end_of_line()`** *(Method inside `Cursor`)*
>> Positions the cursor at the end of the current line.
> **`goto_start()`** *(Method inside `Cursor`)*
>> Moves the cursor to the very beginning of the text.
> **`goto_end()`** *(Method inside `Cursor`)*
>> Moves the cursor to the very end of the text.
> **`goto_line(line_number)`** *(Method inside `Cursor`)*
>> Moves the cursor to the specified line, keeping the column position if possible.
> **`select_all()`** *(Method inside `Cursor`)*
>> Selects the entire text from start to end.
> **`hold()`** *(Method inside `Cursor`)*
>> Starts a text selection at the current cursor position.
> **`release()`** *(Method inside `Cursor`)*
>> Cancels any active text selection.
> **`undo()`** *(Method inside `Cursor`)*
>> Reverts the most recent text change.
> **`redo()`** *(Method inside `Cursor`)*
>> Reapplies an undone change.
> **`trim_trailing_spaces()`** *(Method inside `Cursor`)*
>> Removes trailing whitespace from every line in the text.
> **`replace_all(old, new)`** *(Method inside `Cursor`)*
>> Replaces all occurrences of `old` with `new` across all lines.
> **`get_position()`** *(Method inside `Cursor`)*
>> Returns the current cursor row and column as a tuple.
> **`get_selection_text()`** *(Method inside `Cursor`)*
>> Retrieves the text currently selected, or an empty string if no selection is active.
> **`copy()`** *(Method inside `Cursor`)*
>> Copies the selected text into the internal clipboard.
> **`cut()`** *(Method inside `Cursor`)*
>> Copies the selected text to the clipboard and deletes it from the text.
> **`paste()`** *(Method inside `Cursor`)*
>> Inserts the clipboard contents at the cursor position.
> **`keyboard`** *(Property of `Cursor`)*
>> Provides access to an internal `Keyboard` object offering typing and deletion operations.
> **`Keyboard.type(text)`** *(Method inside `Keyboard`)*
>> Types the provided text at the cursor position, replacing any active selection.
> **`Keyboard.backspace()`** *(Method inside `Keyboard`)*
>> Deletes the character before the cursor or removes the selection if active.
> **`Keyboard.delete()`** *(Method inside `Keyboard`)*
>> Deletes the character after the cursor.
> **`Keyboard.enter()`** *(Method inside `Keyboard`)*
>> Inserts a new line at the cursor position.
> **`Keyboard.delete_selection()`** *(Method inside `Keyboard`)*
>> Deletes the currently selected text region.
> **`HardCache`**
>> Utility class for compressing and storing text content in hidden files on the desktop, supporting retrieval and decompression.
> **`create()`** *(Method inside `HardCache`)*
>> Compresses the content and writes it to a hidden file on the desktop, setting attributes based on the operating system.
> **`read()`** *(Method inside `HardCache`)*
>> Reveals the cached file, decompresses its content, deletes the file, and returns the text.
> **`info()`** *(Static Method inside `HardCache`)*
>> Prints a brief description of the class purpose.
> 🛡️ **`CoLine`**
>> Utility class for encoding and decoding strings arranged in a grid by shifting lines or columns.
> 🛡️i **`encode(input_str, cols, shifttype, line_idx=None, col_idx=None)`** *(Static Method inside `CoLine`)*
>> Arranges text into a grid of `cols` columns and shifts either a line or a column depending on `shifttype`. Returns the transformed string.
> 🛡️i **`decode(input_str, cols, shifttype, line_idx=None, col_idx=None)`** *(Static Method inside `CoLine`)*
>> Reverses the transformation applied by `encode`, restoring the original grid arrangement.
> 🛡️ **`ParseShield`**
>> Utility class for hiding text by inserting invisible Unicode characters and decoding it back.
> 🛡️i **`encode(input_text, expansion_factor=5)`** *(Static Method inside `ParseShield`)*
>> Inserts random invisible characters after each character in the input, making the text visually unchanged (in console and some editors) but harder to parse.
> 🛡️i **`decode(input_text)`** *(Static Method inside `ParseShield`)*
>> Removes all invisible characters to restore the original text.
Raw data
{
"_id": null,
"home_page": "https://github.com/SyloraQ/SyloraQ",
"name": "SyloraQ",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "SyloraQ, syloraq, QOL, Quality of life",
"author": "SyloraQ",
"author_email": "syloraq.official@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/85/1a/7ee335e98dc2bb1ed5571080fdce8f43991ea0334e3849480edc73ebb1d6/syloraq-3.2.tar.gz",
"platform": null,
"description": "\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\r\n\r\n# \u2757 \ud835\udddc\ud835\udde0\ud835\udde3\ud835\udde2\ud835\udde5\ud835\udde7\ud835\uddd4\ud835\udde1\ud835\udde7 \ud835\udde1\ud835\udde2\ud835\udde7\ud835\udddc\ud835\uddd6\ud835\uddd8\r\n\r\n**Your use of this Software in any form constitutes your acceptance of this Agreement.**\r\n\r\n\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\r\n\r\n---\r\n\r\n>>pip install SyloraQ\r\n>>>Run this so u can use the library. \r\n\r\n```bash\r\npip install SyloraQ\r\n```\r\n\r\n### Note on imports and the \ud83d\udee1\ufe0f symbol:\r\n\r\n> If a function or class has the (\ud83d\udee1\ufe0f) symbol: \r\n>> Import it with `from SyloraQ.security import function_or_class` \r\n> Otherwise: \r\n>> Import with `from SyloraQ import *`\r\n\r\nThe nested symbols like \ud83d\udee1\ufe0fi or \ud83d\udee1\ufe0fi+ indicate layers of insideness (inside functions/classes of \ud83d\udee1\ufe0f items), extending as needed.\r\n\r\n### Note on imports and the \ud83c\udf10 symbol:\r\n\r\n> If a function or class has the (\ud83c\udf10) symbol: \r\n>> Import it with `from SyloraQ.web import function_or_class`\r\n\r\nThe nested symbols like \ud83c\udf10i or \ud83c\udf10i+ indicate layers of insideness (inside functions/classes of \ud83d\udee1\ufe0f items), extending as needed.\r\n\r\n> **`wait(key=\"s\", num=1)`** \r\n>> Pauses execution for a specified amount of time. The unit is controlled by the `key` parameter, which can be 's' for seconds, 'm' for minutes, or 'h' for hours.\r\n\r\n> **`ifnull(value, default)`** \r\n>> Checks if the given `value` is missing or empty. Returns `default` if so, otherwise returns the original `value`.\r\n\r\n> **`switch_case(key, cases, default=None)`** \r\n>> Looks up the `key` in the `cases` dictionary. If found, returns the corresponding value. If the value is callable (like a function), executes it. Returns `default` if `key` not found.\r\n\r\n> **`timer_function(func, seconds)`** \r\n>> Executes the function `func` after waiting for `seconds`.\r\n\r\n> **`iftrue(var, function)`** \r\n>> Calls `function` only if `var` is `True`.\r\n\r\n> **`iffalse(var, function)`** \r\n>> Calls `function` only if `var` is `False`.\r\n\r\n> **`replace(string, replacement, replacement_with)`** \r\n>> Replaces occurrences of `replacement` in `string` with `replacement_with`.\r\n\r\n> **`until(function, whattodo)`** \r\n>> Repeatedly executes `whattodo()` until `function()` returns `True`.\r\n\r\n> **`repeat(function, times)`** \r\n>> Executes `function` a specified number of `times`.\r\n\r\n> **`oncondit(condition, function_true, function_false)`** \r\n>> Executes `function_true` if `condition` is `True`, otherwise executes `function_false`.\r\n\r\n> **`repeat_forever(function)`** \r\n>> Continuously executes `function` indefinitely.\r\n\r\n> **`safe_run(func, *args, **kwargs)`** \r\n>> Runs `func` safely by catching and printing exceptions if they occur.\r\n\r\n> **`start_timer(seconds, callback)`** \r\n>> Calls `callback` after waiting for `seconds`.\r\n\r\n> **`generate_random_string(length=15)`** \r\n>> Generates a random string of alphanumeric characters and symbols of specified `length`.\r\n\r\n> **`get_ip_address()`** \r\n>> Returns the local IP address of the machine.\r\n\r\n> **`send_email(subject, body, to_email, mailname, mailpass)`** \r\n>> Sends an email via Gmail SMTP. Requires Gmail username (`mailname`) and password (`mailpass`).\r\n\r\n> **`generate_unique_id()`** \r\n>> Generates and returns a unique ID using the `uuid` module.\r\n\r\n> **`start_background_task(backtask)`** \r\n>> Runs the function `backtask` in a separate thread to run it in the background.\r\n\r\n> **`nocrash(func)`** \r\n>> Decorator that wraps `func` to catch and log errors, preventing crashes.\r\n\r\n> **`parallel(*functions)`** \r\n>> Runs multiple `functions` concurrently in separate threads.\r\n\r\n> **`gs(func)`** \r\n>> Returns the source code of the function `func` as a string.\r\n\r\n> **`Jctb(input_string)`** \r\n>> Converts a string into a binary representation, where each character is encoded as a 10-bit binary number.\r\n\r\n> **`Jbtc(binary_input)`** \r\n>> Converts a binary string (produced by `Jctb`) back to the original string.\r\n\r\n> **`encode_base64(data)`** \r\n>> Encodes a string `data` into Base64.\r\n\r\n> **`decode_base64(encoded_data)`** \r\n>> Decodes a Base64 encoded string back to the original string.\r\n\r\n> **`reverse_string(string)`** \r\n>> Reverses the input `string`.\r\n\r\n> **`calculate_factorial(number)`** \r\n>> Recursively calculates the factorial of `number`.\r\n\r\n> **`swap_values(a, b)`** \r\n>> Swaps the values of `a` and `b` and returns the swapped values.\r\n\r\n> **`find_maximum(numbers)`** \r\n>> Finds and returns the maximum value in the list `numbers`.\r\n\r\n> **`find_minimum(numbers)`** \r\n>> Finds and returns the minimum value in the list `numbers`.\r\n\r\n> **`sum_list(lst)`** \r\n>> Returns the sum of elements in the list `lst`.\r\n\r\n> **`reverse_list(lst)`** \r\n>> Returns a reversed version of the list `lst`.\r\n\r\n> **`is_prime(n)`** \r\n>> Returns `True` if `n` is a prime number, otherwise returns `False`.\r\n\r\n> **`split_into_chunks(text, chunk_size)`** \r\n>> Splits a string `text` into chunks of size `chunk_size`.\r\n\r\n> **`unique_elements(lst)`** \r\n>> Returns a list of unique elements from the input list `lst`.\r\n\r\n> **`calculate_average(numbers)`** \r\n>> Returns the average of a list of numbers.\r\n\r\n> **`calculate_median(numbers)`** \r\n>> Returns the median of a list of numbers.\r\n\r\n> **`count_words(text)`** \r\n>> Counts and returns the number of words in the input string `text`.\r\n\r\n> **`count_sentences(text)`** \r\n>> Counts and returns the number of sentences in the input string `text`.\r\n\r\n> **`add_commas(input_string)`** \r\n>> Adds commas between characters in the input string.\r\n\r\n> **`remove_spaces(text)`** \r\n>> Removes all spaces from the input string `text`.\r\n\r\n> **`calculate_square_root(number)`** \r\n>> Approximates the square root of `number` using the Newton-Raphson method.\r\n\r\n> **`find_files_by_extension(directory, extension)`** \r\n>> Returns a list of files in the directory that have the specified file extension.\r\n\r\n> **`get_curr_dir()`** \r\n>> Returns the current working directory.\r\n\r\n> **`check_if_file_exists(file_path)`** \r\n>> Checks if a file exists at `file_path`.\r\n\r\n> **`monitor_new_files(directory, callback)`** \r\n>> Continuously monitors the directory for new files and calls `callback` whenever new files are added.\r\n\r\n> **`get_system_uptime()`** \r\n>> Returns the system's uptime in seconds.\r\n\r\n> **`get_cpu_templinux()`** \r\n>> Retrieves the CPU temperature on a Linux system.\r\n\r\n> **`monitor_file_changes(file_path, callback)`** \r\n>> Monitors the file for changes and calls `callback` when the file is modified.\r\n\r\n> **`write_to_file(filename, content)`** \r\n>> Writes the `content` to the specified `filename`.\r\n\r\n> **`read_from_file(filename)`** \r\n>> Reads and returns the content of the file specified by `filename`.\r\n\r\n> **`parse_json(json_string)`** \r\n>> Parses a JSON string and returns the corresponding Python object.\r\n\r\n> **`create_file_if_not_exists(filename)`** \r\n>> Creates a file if it doesn't already exist.\r\n\r\n> **`create_directory(directory)`** \r\n>> Creates the specified directory if it doesn't exist.\r\n\r\n> **`get_cpu_usage()`** \r\n>> Returns the current CPU usage percentage using `psutil`.\r\n\r\n> **`get_memory_usage()`** \r\n>> Returns the current memory usage percentage using `psutil`.\r\n\r\n> **`create_zip_file(source_dir, output_zip)`** \r\n>> Creates a ZIP archive of the specified `source_dir`.\r\n\r\n> **`extract_zip_file(zip_file, extract_dir)`** \r\n>> Extracts a ZIP archive to the specified `extract_dir`.\r\n\r\n> **`move_file(source, destination)`** \r\n>> Moves a file from `source` to `destination`.\r\n\r\n> **`copy_file(source, destination)`** \r\n>> Copies a file from `source` to `destination`.\r\n\r\n> **`show_file_properties(file_path)`** \r\n>> Displays properties of a file (size and last modified time).\r\n\r\n> **`start_http_server(ip=\"0.0.0.0\", port=8000)`** \r\n>> Starts a simple HTTP server on the given `ip` and `port`.\r\n\r\n> **`stop_http_server()`** \r\n>> Stops the running HTTP server.\r\n\r\n> **`get_server_status(url=\"http://localhost:8000\")`** \r\n>> Checks if the server at the given URL is up and running.\r\n\r\n> **`set_server_timeout(timeout=10)`** \r\n>> Sets the timeout for server connections.\r\n\r\n> **`upload_file_to_server(file_path, url=\"http://localhost:8000/upload\")`** \r\n>> Uploads a file to a server at the specified URL.\r\n\r\n> **`download_file_from_server(file_url, save_path)`** \r\n>> Downloads a file from the server and saves it to `save_path`.\r\n\r\n> **`CustomRequestHandler`** \r\n>> A custom request handler for the HTTP server that responds to specific paths (\"/\" and \"/status\").\r\n\r\n> **`start_custom_http_server(ip=\"0.0.0.0\", port=8000)`** \r\n>> Starts a custom HTTP server using the `CustomRequestHandler`.\r\n\r\n> **`set_server_access_logs(log_file=\"server_access.log\")`** \r\n>> Configures logging to store server access logs.\r\n\r\n> **`get_server_logs(log_file=\"server_access.log\")`** \r\n>> Retrieves and prints the server access logs.\r\n\r\n> **`restart_http_server()`** \r\n>> Restarts the HTTP server.\r\n\r\n> **`check_internet_connection()`** \r\n>> Checks if the system has internet connectivity by pinging `google.com`.\r\n\r\n> **`create_web_server(directory, port=8000)`** \r\n>> Serves the contents of a directory over HTTP on the specified port.\r\n\r\n> **`create_custom_web_server(html, port=8000)`** \r\n>> Serves custom HTML content over HTTP on the specified port.\r\n\r\n> **`JynParser(rep)`** \r\n>> Executes a Python script passed as `rep` in a new context (using `exec()`).\r\n\r\n> **`contains(input_list, substring)`** \r\n>> Checks if the given `substring` exists within any element of `input_list`.\r\n\r\n> **`Jusbcam(Device_Name)`** \r\n>> Scans connected USB devices and checks if `Device_Name` is present in the list of detected devices.\r\n\r\n> 81. `claw()` \r\n>> A customizable HTTP server with: \r\n>> - Custom HTML & subdomains \r\n>> - IP and port settings (default `0.0.0.0:8000`) \r\n>> - Logging control \r\n>> - Custom 404 page \r\n>> - Auth token for API \r\n>> - POST `/api/message` for sending messages\r\n\r\n> 82. `ConsoleCam()` \r\n>> Records and returns changes in the console output for a specific part.\r\n\r\n> 83. `prn()` \r\n>> A faster printing function than standard `print()`.\r\n\r\n> 84. `Key(KeyName)` \r\n>> Simulates keyboard actions: \r\n>> - `.press()`, `.release()`, `.tap()` \r\n>> - `.type_text(text)` \r\n>> - `.press_combo(tuple_of_keys)`\r\n\r\n> 85. `copy_to_clipboard(text)` \r\n>> Copies `text` to system clipboard.\r\n\r\n> 86. `count_occurrences(lst, element)` \r\n>> Counts occurrences of `element` in `lst`.\r\n\r\n> 87. `get_curr_time()` \r\n>> Returns the current date and time in the format `YYYY-MM-DD HH:MM:SS`.\r\n\r\n> 88. `is_palindrome(s)` \r\n>> Checks if the string `s` is a palindrome (same forward and backward).\r\n\r\n> 89. `get_min_max(list)` \r\n>> Returns the minimum and maximum values from the list.\r\n\r\n> 90. `is_digits(input)` \r\n>> Checks if the `input` is a string consisting only of digits.\r\n\r\n> 91. `create_dict(keys, values)` \r\n>> Creates a dictionary by pairing elements from `keys` and `values`.\r\n\r\n> 92. `square_number(input)` \r\n>> Returns the square of the number `input`.\r\n\r\n> 93. `get_file_size(file_path)` \r\n>> Gets the size of the file at `file_path`.\r\n\r\n> 94. `find_duplicates(lst)` \r\n>> Finds and returns duplicate elements from the list `lst`.\r\n\r\n> 95. `get_average(list)` \r\n>> Calculates the average of the numbers in the list.\r\n\r\n> 96. `divide(a, b)` \r\n>> Divides `a` by `b` and handles division by zero.\r\n\r\n> 97. `extract_numbers(s)` \r\n>> Extracts all numbers from the string `s`.\r\n\r\n> 98. `BinTrig` \r\n>> A class with multiple methods to bind various Tkinter window and widget events to custom functions, such as mouse movements, key presses, window resize, focus changes, etc.\r\n\r\n> 99. `ByteJar` \r\n>> Sets/Deletes/Gets Cookies with a 3rd party lightweight program. [Download Link](https://www.mediafire.com/file/cwaa748it4x94jo/ByteJarinstaller.exe/file)\r\n\r\n> 100. `letterglue(str=\"\", *substr, str2=\"\")` \r\n>> Joins strings and substrings into one string.\r\n\r\n> 101. `letterglue_creator(word)` \r\n>> Generates code to convert each letter of a word into variables and joins them using `letterglue`.\r\n\r\n> 102. `Baudio(\"filename=audio_data\", mode=\"Write\", duration=5, Warn=True)` \r\n>> Records audio for a specified duration, saves to a `.Bau` file, returns it or plays it. Requires a lightweight program. Usage: `Baudio(filename=\"my_recording\", mode=\"Write\", duration=5, Warn=True)`\r\n\r\n> 103. `Btuple` \r\n>> A utility class with methods like: \r\n>> - `.count(*words)` - counts total words \r\n>> - `.get(index, *words)` - retrieves word at index \r\n>> - `.exists(item, *words)` - checks existence \r\n>> - `.first(*words)` - gets first word or error \r\n>> - `.last(*words)` - gets last word or error\r\n\r\n> 104. `isgreater(*nums)` \r\n>> Compares two numbers; returns `True` if first is greater, else error if input invalid.\r\n\r\n> 105. `runwfallback(func, fallback_func)` \r\n>> Runs `func()`, if it fails runs `fallback_func()` instead.\r\n\r\n> 106. `retry(func, retries=3, delay=1)` \r\n>> Tries running `func()` multiple times with delays. Returns `None` if all attempts fail.\r\n\r\n> 107. `fftime(func)` \r\n>> Measures and prints the execution time of `func()`.\r\n\r\n> 108. `debug(func)` \r\n>> Logs function calls, arguments, and return values for debugging.\r\n\r\n> 109. `paste_from_clipboard()` \r\n>> Retrieves and returns text from the system clipboard.\r\n\r\n> 110. `watch_file(filepath, callback)` \r\n>> Monitors file changes and triggers `callback()` on modification.\r\n\r\n> 111. `is_website_online(url)` \r\n>> Checks if the `url` is reachable; returns `True` if online.\r\n\r\n> 112. `shorten_url(long_url)` \r\n>> Generates and returns a shortened URL.\r\n\r\n> 113. `celsius_to_fahrenheit(c)` \r\n>> Converts Celsius `c` to Fahrenheit.\r\n\r\n> 114. `fahrenheit_to_celsius(f)` \r\n>> Converts Fahrenheit `f` to Celsius.\r\n\r\n> 115. `efv(string)` \r\n>> Parses code string for variables, returns dictionary of variables. Example: `parser = efv(\"x=5,y=2\"); print(parser['y'])` outputs `2`.\r\n\r\n> 116. `Hpass(limit=30)` \r\n>> Generates a strong password of specified length (`limit`).\r\n\r\n> 117. `l(input)` \r\n>> Converts input into a list.\r\n\r\n> 118. `dl(input)` \r\n>> Converts a list input into a string.\r\n\r\n> 119. `mix(input)` \r\n>> Returns a \"mix\" of the input (details depend on implementation).\r\n\r\n> 120. `sugar(input)` \r\n>> \"Sugars\" (super salts) the input (details depend on implementation).\r\n\r\n> 121. `get_type(value)` \r\n>> Returns the type and string representation of `value`.\r\n\r\n> 122. `Cache` Class \r\n>> A simple caching system to store and retrieve key-value pairs.\r\n\r\n> 123. `cantint(egl, ftw, tw)` \r\n>> Performs comparisons on values based on provided parameters and clears the `tw` list if certain conditions are met.\r\n\r\n> 124. `flatten(obj)` \r\n>> Flattens a nested list (or iterable) into a single iterable.\r\n\r\n> 125. `memoize(func)` \r\n>> Caches the result of a function to optimize performance.\r\n\r\n> 126. `chunk(iterable, size)` \r\n>> Breaks down a large iterable (e.g., list, string) into smaller chunks of a specified size.\r\n\r\n> 127. `merge_dicts(*dicts)` \r\n>> Merges multiple dictionaries into one.\r\n\r\n> 128. `deep_equal(a, b)` \r\n>> Checks if two objects (lists or dictionaries) are deeply equal.\r\n\r\n> 129. `split_by(text, size)` \r\n>> Splits a string into chunks of a given size.\r\n\r\n> 130. `GoodBye2Spy` Class \r\n>> A class that encapsulates several password and data processing techniques for security-related tasks.\r\n\r\n> 131. `Passworded` (Method inside `GoodBye2Spy`) \r\n>> Provides functionality for creating and verifying password hashes with key mixing and randomization.\r\n\r\n> 132. `Shifting` (Method inside `GoodBye2Spy`) \r\n>> Implements a hashing function that uses bitwise operations on the input data.\r\n\r\n> 133. `Oneway` (Method inside `GoodBye2Spy`) \r\n>> Creates a one-way hashed value using a combination of key mixing and a shifting hash technique.\r\n\r\n> 134. `slc(code: str)` \r\n>> Strips and parses the provided Python code to remove unnecessary line breaks and spaces.\r\n\r\n> 135. `AI(text,questions=None,summarize_text=False,summary_length=3)` \r\n>> It can answer questions or summarize the `text`.\r\n\r\n> 136. `GAI` (Method inside `AI`) \r\n>> It can answer and summarize text. (Better than `summarize` when it comes to QA.)\r\n\r\n> 137. `summarize` (Method inside `AI`) \r\n>> It can summarize text. (Better than `GAI` when it comes to summarizing.)\r\n\r\n> 138. `requireADMIN(For windows only!)` \r\n>> Shuts the program with an error when opened if not run as Administrator.\r\n\r\n> 139. `__get_raw_from_web(url)` \r\n>> Returns the raw text from the raw text `url` (**Module**).\r\n\r\n> 140. `@private` \r\n>> Wraps the function so it can only be used within the class where it's defined.\r\n\r\n> 141. `OTKeySystem` \r\n>> A class that can verify user without needing a database. *Has web version.*\r\n\r\n> 142. `creator(timestamp=25)` (Method inside `OTKeySystem`) \r\n>> Generates one-time usable, location and program reopen proof key.\r\n\r\n> 143. `verifier(key,timestamp=25)` (Method inside `OTKeySystem`) \r\n>> Verifies keys generated by `creator` without any database (`timestamp` must be the same!).\r\n\r\n> 144. `remove(input,*chars)` \r\n>> Removes all elements from `chars` list if they exist in the input text.\r\n\r\n> 145. `get_screen_size()` \r\n>> Returns screen size (width, height).\r\n\r\n> 146. `NCMLHS(data: str, shift_rate1=3, shift_rate2=5, rotate_rate1=5, rotate_rate2=7, bits=64)` \r\n>> Shifts, rotates, shifts, and rotates the data again.\r\n\r\n> 147. `remove_duplicates(lst)` \r\n>> Removes all duplicates from the `lst` list if they exist.\r\n\r\n> 148. `uncensor(input)` \r\n>> Uncensors censored content from the `input` text such as `H311@` to `Hello` (accuracy approx. 85%).\r\n\r\n> 149. `BendableLists` \r\n>> A class for managing multiple named lists that can be created, extended, or queried dynamically.\r\n\r\n> 150. `create(list_name)` (Method inside `BendableLists`) \r\n>> Initializes a new empty list with the specified name, unless it already exists.\r\n\r\n> 151. `add(list_name, *elements)` (Method inside `BendableLists`) \r\n>> Adds one or more elements to the specified list if it exists.\r\n\r\n> 152. `remove(list_name, element)` (Method inside `BendableLists`) \r\n>> Removes a specific element from a named list, if both the list and element exist.\r\n\r\n> 153. `get(list_name)` (Method inside `BendableLists`) \r\n>> Retrieves the contents of a list by name; returns `None` if the list doesn't exist.\r\n\r\n> 154. `Nexttime(func, func2)` \r\n>> Executes `func` the first time it's called, then alternates with `func2` on subsequent calls using a toggled internal state key (`\"runnext\"`).\r\n\r\n> 155. `Http` \r\n>> A class that can get and post requests to the web.\r\n\r\n> 156. `get` (Method inside `Http`) \r\n>> Returns scraped data from url.\r\n\r\n> 157. `post` (Method inside `Http`) \r\n>> Posts a request to a url and returns the response.\r\n\r\n> 158. `getos()` \r\n>> Returns the OS where the script runs.\r\n\r\n> 159. `str2int(input)` \r\n>> Returns character positions in alphabet based on `input` such as `abc` to `123` or `acb` to `132`.\r\n\r\n> 160. `int2str(input)` \r\n>> Does the opposite of `str2int`.\r\n\r\n> 161. `shiftinwin(shiftrate,text)` \r\n>> Shifts `text` with the rate of `shiftrate` and returns it, e.g., `shiftinwin(5,Hii)` cycles characters.\r\n\r\n> 162. `runwithin(code,call,params)` \r\n>> Runs the `code` calling `class > function()` or `class.function()` with the `params`.\r\n\r\n> 163. \ud83d\udee1\ufe0f `Locker` \r\n>> A class that can lock or unlock a string based on a key (numbers not supported).\r\n\r\n> 164. \ud83d\udee1\ufe0fi `Lock` (Method inside `Locker`) \r\n>> Locks the `data` based on `key` and returns it.\r\n\r\n> 165. \ud83d\udee1\ufe0fi `Unlock` (Method inside `Locker`) \r\n>> Unlocks the locked data with `key` and returns it.\r\n\r\n> 166. `alphabet_shift(text, shiftrate)` \r\n>> Shifts `text` by the amount of `shiftrate` and returns it, e.g., `\"ABC\",1` \u2192 `\"BCD\"`.\r\n\r\n> 167. `wkint(script, expire=5)` \r\n>> Waits until `expire` seconds expire. Use `never` as expire for no expiry.\r\n\r\n> 168. `countdown(from_to_0)` \r\n>> Counts down every second and prints until `from_to_0` reaches 0.\r\n\r\n> 169. `inviShade` \r\n>> A class that turns any input into a single invisible character and another that decodes it back to the full original message.\r\n\r\n> 170. `encode` (Method inside `inviShade`) \r\n>> Encodes input text to a single invisible char.\r\n\r\n> 171. `decode` (Method inside `inviShade`) \r\n>> Reverses encoding.\r\n\r\n> 172. `boa(string, option, pin)` \r\n>> Returns `option` from the `pin` in `string`. \r\n>> Example: `boa(\"Hello//abc\", b or before, \"//\")` outputs `Hello` because it comes before `//`. If `after`, outputs `abc`.\r\n\r\n> 173. \ud83d\udee1\ufe0f `Quasar` \r\n>> A class that turns any input into a single invisible character and another that decodes it back to the full original message.\r\n\r\n> 174. \ud83d\udee1\ufe0fi `encode` (Method inside `Quasar`) \r\n>> Encrypts input.\r\n\r\n> 175. \ud83d\udee1\ufe0fi `decode` (Method inside `Quasar`) \r\n>> Reverses encrypting.\r\n\r\n> 176. `@time_limited_cache(seconds)` \r\n>> Like `memoize()` but caches results only for `seconds` period of time.\r\n\r\n> 177. `GlowShell` \r\n>> A utility class that provides styled printing, cursor control, and animated frame playback in the terminal.\r\n\r\n> 178. `print(message, fg=None, bg=None, bold=False, underline=False, dim=False, bright=False, blink=False, end=\"\\n\")` (Method inside `GlowShell`) \r\n>> Prints the `message` with given color and style settings. Automatically resets the style after printing.\r\n\r\n> 179. `clear()` (Method inside `GlowShell`) \r\n>> Clears the entire terminal screen and moves the cursor to the top-left corner.\r\n\r\n> 180. `clear_line()` (Method inside `GlowShell`) \r\n>> Clears the current line only, leaving the rest of the terminal untouched.\r\n\r\n> 181. `move_cursor(row, col)` (Method inside `GlowShell`) \r\n>> Moves the terminal cursor to the specified `row` and `column`.\r\n\r\n> 182. `hide_cursor()` (Method inside `GlowShell`) \r\n>> Hides the blinking terminal cursor until shown again.\r\n\r\n> 183. `show_cursor()` (Method inside `GlowShell`) \r\n>> Shows the terminal cursor if it was previously hidden.\r\n\r\n> 184. `test()` (Method inside `GlowShell`) \r\n>> Demonstrates usage of styles, colors, cursor movement, and clearing capabilities. Useful for checking terminal support.\r\n\r\n> 185. `animate_frames(frames, ...)` (Method inside `GlowShell`) \r\n>> This function displays a sequence of multi-line text frames (like ASCII art) in the terminal, one after the other, with optional looping and formatting like color, bold, delay, etc.\r\n>>>> --------------------------------------------------------------------------------------------------------------------------------\r\n>>>> | Key | Description | Values |\r\n>>>> |-----------|--------------------------|---------------------------------------------------------------------------------------|\r\n>>>> | `fg` | Foreground (text) color | `\"black\"`, `\"red\"`, `\"green\"`, `\"yellow\"`, `\"blue\"`, `\"magenta\"`, `\"cyan\"`, `\"white\"` |\r\n>>>> | `bg` | Background color | Same as `fg` colors |\r\n>>>> | `bold` | Bold text | `true` or `false` |\r\n>>>> | `dim` | Dim text | `true` or `false` |\r\n>>>> |`underline`| Underline text | `true` or `false` |\r\n>>>> | `bright` | Bright color variation | `true` or `false` |\r\n>>>> | `blink` | Blinking text | `true` or `false` |\r\n>>>> | `delay` | Delay time for this frame| Any positive number like `0.3`, `1`, etc. (Seconds) |\r\n>>>> --------------------------------------------------------------------------------------------------------------------------------\r\n>>> frames = [\r\n>>> \"--/fg:green,bold:true,delay:1/--\\nThis is a green bold frame.\",\r\n>>> \"--/fg:yellow,dim:true,delay:0.5/--\\nNow it's dim and yellow.\",\r\n>>> \"--/fg:red,bg:white,blink:true,delay:0.3/--\\nRed on white and blinking.\"\r\n>>> ]\r\n\r\n> 186. `@lazy_property` \r\n>> A property decorator that computes a value once on first access and caches it for later use.\r\n\r\n> 187. \ud83c\udf10 `BrowSentinel(headless=True, port=9222)` \r\n>> High-level browser controller class that manages a headless Chrome instance with remote debugging enabled on the specified port. Provides methods to control browsing, page navigation, interaction, and automation.\r\n\r\n> 188. \ud83c\udf10i `start()` (Method inside `BrowSentinel`) \r\n>> Launches Chrome with remote debugging enabled, connects to the first available browser page, and enables key domains (`Page`, `DOM`, and `Network`) to prepare for interaction.\r\n\r\n> 189. \ud83c\udf10i `navigate(url)` (Method inside `BrowSentinel`) \r\n>> Navigates the browser to the specified URL. Returns a response including frame and loader identifiers.\r\n\r\n> 190. \ud83c\udf10 `reload()` (Method inside `BrowSentinel`) \r\n>> Reloads the current page.\r\n\r\n> 191. \ud83c\udf10 `back()` (Method inside `BrowSentinel`) \r\n>> Navigates back in the browser history by retrieving the navigation history and navigating to the previous entry.\r\n\r\n> 192. \ud83c\udf10 `forward()` (Method inside `BrowSentinel`) \r\n>> Navigates forward in the browser history similarly by using navigation history.\r\n\r\n> 193. \ud83c\udf10 `set_viewport(width, height, deviceScaleFactor=1)` (Method inside `BrowSentinel`) \r\n>> Overrides the viewport size and device scale factor to emulate different screen sizes and pixel densities.\r\n\r\n> 194. \ud83c\udf10 `evaluate(script)` (Method inside `BrowSentinel`) \r\n>> Executes JavaScript code within the current page context and returns the result value.\r\n\r\n> 195. \ud83c\udf10 `get_html()` (Method inside `BrowSentinel`) \r\n>> Retrieves the full HTML markup of the current page.\r\n\r\n> 196. \ud83c\udf10 `get_text()` (Method inside `BrowSentinel`) \r\n>> Retrieves the visible text content of the page (equivalent to `document.body.innerText`).\r\n\r\n> 197. \ud83c\udf10 `click(selector)` (Method inside `BrowSentinel`) \r\n>> Simulates a mouse click on the first element matched by the given CSS selector.\r\n\r\n> 198. \ud83c\udf10 `type(selector, text)` (Method inside `BrowSentinel`) \r\n>> Sets the value of the input element matched by the selector and dispatches an input event, simulating user typing.\r\n\r\n> 199. \ud83c\udf10 `wait_for(selector, timeout=5)` (Method inside `BrowSentinel`) \r\n>> Waits asynchronously until an element matching the selector appears on the page or the timeout is reached.\r\n\r\n> 200. \ud83c\udf10 `screenshot(path=\"page.png\")` (Method inside `BrowSentinel`) \r\n>> Captures a screenshot of the current page and saves it as a PNG file at the specified path.\r\n\r\n> 201. \ud83c\udf10 `close()` (Method inside `BrowSentinel`) \r\n>> Closes the browser session and terminates the Chrome process cleanly.\r\n\r\n>> The `BrowSentinel` class provides a minimal yet robust interface for controlling a headless Chrome browser via Chrome DevTools Protocol. It enables navigation, DOM interaction, scripting, viewport control, and screenshot capture all without external dependencies beyond Python\u2019s standard library and a local Chrome installation.\r\n\r\n>> Typical workflow:\r\n\r\n>>> 1. Instantiate the browser object: `Browser = BrowSentinel()`\r\n>>> 2. Start the browser and connect: `browser.start()`\r\n>>> 3. Navigate pages, interact with elements, evaluate (run JavaScript in the page), capture screenshots or extract page data\r\n>>> 4. Close when done: `browser.close()`\r\n\r\n>>> Try out this:\r\n>>>\r\n ```python\r\n t2s=\"\"\"\r\n function replaceTextWithSyloraQ() {\r\n const walker = document.createTreeWalker(\r\n document.body,\r\n NodeFilter.SHOW_TEXT,\r\n null,\r\n false\r\n );\r\n\r\n let node;\r\n while (node = walker.nextNode()) {\r\n if (node.nodeValue.trim() !== \"\") {\r\n node.nodeValue = \"SyloraQ\";\r\n }\r\n }\r\n }\r\n\r\n replaceTextWithSyloraQ();\r\n \"\"\"\r\n\r\n if __name__ == \"__main__\":\r\n b = BrowSentinel()\r\n print(\"Starting browser...\")\r\n b.start()\r\n b.navigate(\"https://example.com\")\r\n \r\n \r\n b.screenshot()\r\n inp=len(input(\"Please Check the file then delete it before pressing enter>\"))\r\n if inp-inp==0:\r\n b.evaluate(t2s)\r\n b.screenshot()\r\n b.close\r\n ```\r\n\r\n> \ud83c\udf10 `api(port)` (Works with `@endpoint()`) \r\n>> Creates an api server\r\n\r\n> \ud83c\udf10 `@endpoint(name)` (Works with `api()`) \r\n>> Adds and endpoint to the api server.\r\n>>> Try out this:\r\n ```python\r\n import time\r\n def run_api(port=8381):\r\n @endpoint(\"hello\")\r\n def hello_endpoint(body, headers):\r\n name = body.get(\"input\") if isinstance(body, dict) else None\r\n if headers.get(\"Token\") == \"YourToken\":\r\n return {\"message\": f\"Hello, {name}!\"}\r\n else:\r\n return {\"error\": \"Sorry, invalid token\"}\r\n\r\n api(port=port)\r\n\r\n print(f\"API server running on port {port} with endpoint '/api/hello'\")\r\n try:\r\n while True:time.sleep(10000000)\r\n except KeyboardInterrupt:\r\n print(\"Server stopped.\")\r\n\r\n run_api(8381)\r\n ```\r\n>>> Then run on ur cmd:\r\n ```bash\r\n curl -X POST http://localhost:8381/api/hello ^\r\n -H \"Content-Type: application/json\" ^\r\n -H \"Token: my-secret-token\" ^\r\n -d \"{\\\"input\\\":\\\"Alice\\\"}\"\r\n ```\r\n\r\n> `stick_overlay(tk_win, process_name=\"Notepad.exe\", x_offset=20, y_offset=60, interval=30)` \r\n>> Creates a dynamic overlay window that tracks the position of the main window of a given process by name, updating the overlay\u2019s position in real-time.\r\n\r\n> `similarity(sentence1, sentence2, drama_mode=False)` \r\n>> Calculates a similarity score between two sentences.\r\n\r\n> **`class Jsonify`** \r\n>> A utility class for advanced JSON manipulation. Supports conversion from strings/files, deep access and modification, merging, validation, searching, and exporting. \r\n>>\r\n>>> `from_string(json_string)` \r\n>>>> Parses a JSON string into a `Jsonify` object using `json.loads()`.\r\n\r\n>>> `frs(string)` \r\n>>>> Parses loose or malformed string in the form `\"key1:val1,key2:val2\"` into a `Jsonify` object.\r\n\r\n>>> `from_file(filepath)` \r\n>>>> Loads JSON from a file and returns a `Jsonify` instance.\r\n\r\n>>> `to_string(pretty=False)` \r\n>>>> Converts the internal JSON data back into a string. If `pretty=True`, outputs formatted JSON.\r\n\r\n>>> `to_file(filepath, pretty=False)` \r\n>>>> Saves the internal JSON to a file. Supports pretty formatting.\r\n\r\n>>> `get(key, default=None)` \r\n>>>> Gets value by dot notation key (`\"a.b.c\"` or `\"a.0.b\"` for lists). Returns `default` if not found.\r\n\r\n>>> `set(key, value)` \r\n>>>> Sets value by dot notation key. Creates nested structures if necessary.\r\n\r\n>>> `remove(key)` \r\n>>>> Removes value by dot notation key. Returns `True` if removed, else `False`.\r\n\r\n>>> `merge(other)` \r\n>>>> Deep-merges another `dict` or `Jsonify` into the current data. Keys are recursively updated.\r\n\r\n>>> `search(pattern, search_keys=True, search_values=True)` \r\n>>>> Regex-based search over keys and/or string values. Returns list of matching dot notation paths.\r\n\r\n>>> `validate_keys(required_keys)` \r\n>>>> Ensures all given dot-notation keys exist in data. Returns `True` if all exist.\r\n\r\n>>> `copy()` \r\n>>>> Returns a deep copy of the current `Jsonify` instance.\r\n\r\n>>> `clear()` \r\n>>>> Clears the internal data (dict or list). If another type, resets to empty dict.\r\n\r\n> **`class Textify`** \r\n>> A utility class for applying functions over characters, words, groups, or sentences in a text.\r\n>>\r\n>>> `for_every_char(do)` \r\n>>>> Applies function `do(char)` to every character in the text.\r\n\r\n>>> `for_every_word(do)` \r\n>>>> Applies function `do(word)` to every word in the text (split by whitespace).\r\n\r\n>>> `for_every_group(n, do)` \r\n>>>> Applies function `do(group)` to each substring group of size `n`.\r\n\r\n>>> `for_every_sentence(do)` \r\n>>>> Applies function `do(sentence)` to each sentence (split using punctuation and space).\r\n\r\n>>> `result()` \r\n>>>> Returns the processed text.\r\n\r\n> **`def exists(string, pin)`** \r\n>> Checks if `pin` exists within `string`. \r\n>>> Returns `True` if found, else `False`.\r\n\r\n> \ud83c\udf10 **`UrlValidate(url)`** \r\n>> Validates a URL. (The url must be published on internet!)\r\n\r\n> **`def Shut()`** \r\n>> Suppresses all standard output, error, and logging temporarily. \r\n>>> Returns a tuple of original output/logging states for restoration.\r\n\r\n> **`def UnShut(origins)`** \r\n>> Restores original stdout, stderr, print, and logging. \r\n>>> `origins` should be the tuple returned by `Shut()`.\r\n\r\n> **`class ZypherTrail`** \r\n>> Encodes and decodes text using a vertical zigzag (rail fence-like) cipher.\r\n\r\n>>> **`encode(string, max_row=5)`** \r\n>>>> Encodes text in a zigzag pattern up to `max_row`. Returns a multi-line string.\r\n\r\n>>> **`decode(encoded_str)`** \r\n>>>> Decodes the zigzag-encoded string back to its original form.\r\n\r\n> **`NLDurationParser(seconds: int, full=False)`**\r\n>> Converts a number of seconds into a human-readable duration string, choosing the largest suitable unit (seconds, minutes, hours, days, or years).\r\n>> When `full` is `True`, uses full unit names; otherwise, uses abbreviations.\r\n\r\n> **`justify(words, max_width)`**\r\n>> Formats a list of words into fully justified lines of a given width.\r\n>> Distributes spaces evenly between words, padding the last line with spaces on the right.\r\n\r\n> **`draw_tree(path, prefix=\"\")`**\r\n>> Recursively prints a visual tree of directories and files starting from a specified path.\r\n>> Uses branch and indent symbols to represent file system hierarchy.\r\n\r\n> **`@prefix(pfx)`**\r\n>> A decorator that scans command-line arguments and calls the decorated function with arguments matching a specific prefix (with the prefix removed).\r\n\r\n> **`SQS(path)`**\r\n>> A configuration file manager supporting global keys and named sections.\r\n>> Loads, reads, writes, deletes, toggles, and saves config values, parsing expressions and inline comments.\r\n```sqs\r\n#This is a comment!\r\n\r\n# Global variables\r\ndebug = true\r\nmax_retries = 5\r\npi_value = 3.14159\r\n\r\n# Section with variables\r\n[network]\r\nhost = \"localhost\"\r\nport = 8080\r\n\r\n# Conditional assignment\r\nif max_retries >= 3 then retry_mode = \"aggressive\"\r\n\r\n# Toggle a boolean\r\ntoggle debug\r\n\r\n# Arithmetic operation\r\nmax_retries += 2\r\n\r\n# Copy value from one key to another\r\nset retry_count to max_retries\r\n\r\n# etc.\r\n```\r\n\r\n> **`read(key, default=None, section=None)` (Method inside `SQS`)**\r\n>> Retrieves a stored value from the specified section or global scope, returning a default if key is missing.\r\n\r\n> **`write(text)` (Method inside `SQS`)**\r\n>> Parses and processes multiple lines of config expressions from a text block, updating internal state.\r\n\r\n> **`delete(key, section=None)` (Method inside `SQS`)**\r\n>> Removes a key from a given section or the global config if no section specified.\r\n\r\n> **`has_key(key, section=None)` (Method inside `SQS`)**\r\n>> Checks existence of a key in a section or globally.\r\n\r\n> **`save()` (Method inside `SQS`)**\r\n>> Writes current global keys and all sections with their keys back to the config file, preserving format.\r\n\r\n> **`reload()` (Method inside `SQS`)**\r\n>> Clears internal data and reloads configuration from the file.\r\n\r\n> \u00a0**`to_dict()` (Method inside `SQS`)**\r\n>> Returns the entire configuration as a nested dictionary with globals and sections.\r\n\r\n> \u00a0**`PYCify`**\r\n>> Utility class for compiling Python source files into bytecode and loading compiled modules dynamically.\r\n\r\n> **`compile(source_path, pyc_path=None)` (Method inside `PYCify`)**\r\n>> Reads a Python source file, compiles it into bytecode, writes the `.pyc` file with correct header info (magic number, timestamp).\r\n\r\n> **`load(pyc_path, module_name)` (Method inside `PYCify`)**\r\n>> Loads a compiled `.pyc` file as a Python module by name, enabling dynamic imports from bytecode.\r\n\r\n> **`tts(text,gender)`**\r\n>> Plays the audio of a `gender (male/female)` saying `text`.\r\n>> This is a basic `text to speech` so dont expect very much from it. `;)`\r\n\r\n> **`Cursor`**\r\n>> Utility class for managing and editing multiline text with cursor navigation, selection, and undo/redo functionality.\r\n\r\n> **`move(direction, steps=1)`** *(Method inside `Cursor`)*\r\n>> Moves the cursor in the specified direction (`\"u\"` up, `\"d\"` down, `\"l\"` left, `\"r\"` right) by the given number of steps.\r\n\r\n> **`move_to_start_of_line()`** *(Method inside `Cursor`)*\r\n>> Positions the cursor at the start of the current line.\r\n\r\n> **`move_to_end_of_line()`** *(Method inside `Cursor`)*\r\n>> Positions the cursor at the end of the current line.\r\n\r\n> **`goto_start()`** *(Method inside `Cursor`)*\r\n>> Moves the cursor to the very beginning of the text.\r\n\r\n> **`goto_end()`** *(Method inside `Cursor`)*\r\n>> Moves the cursor to the very end of the text.\r\n\r\n> **`goto_line(line_number)`** *(Method inside `Cursor`)*\r\n>> Moves the cursor to the specified line, keeping the column position if possible.\r\n\r\n> **`select_all()`** *(Method inside `Cursor`)*\r\n>> Selects the entire text from start to end.\r\n\r\n> **`hold()`** *(Method inside `Cursor`)*\r\n>> Starts a text selection at the current cursor position.\r\n\r\n> **`release()`** *(Method inside `Cursor`)*\r\n>> Cancels any active text selection.\r\n\r\n> **`undo()`** *(Method inside `Cursor`)*\r\n>> Reverts the most recent text change.\r\n\r\n> **`redo()`** *(Method inside `Cursor`)*\r\n>> Reapplies an undone change.\r\n\r\n> **`trim_trailing_spaces()`** *(Method inside `Cursor`)*\r\n>> Removes trailing whitespace from every line in the text.\r\n\r\n> **`replace_all(old, new)`** *(Method inside `Cursor`)*\r\n>> Replaces all occurrences of `old` with `new` across all lines.\r\n\r\n> **`get_position()`** *(Method inside `Cursor`)*\r\n>> Returns the current cursor row and column as a tuple.\r\n\r\n> **`get_selection_text()`** *(Method inside `Cursor`)*\r\n>> Retrieves the text currently selected, or an empty string if no selection is active.\r\n\r\n> **`copy()`** *(Method inside `Cursor`)*\r\n>> Copies the selected text into the internal clipboard.\r\n\r\n> **`cut()`** *(Method inside `Cursor`)*\r\n>> Copies the selected text to the clipboard and deletes it from the text.\r\n\r\n> **`paste()`** *(Method inside `Cursor`)*\r\n>> Inserts the clipboard contents at the cursor position.\r\n\r\n> **`keyboard`** *(Property of `Cursor`)*\r\n>> Provides access to an internal `Keyboard` object offering typing and deletion operations.\r\n\r\n> **`Keyboard.type(text)`** *(Method inside `Keyboard`)*\r\n>> Types the provided text at the cursor position, replacing any active selection.\r\n\r\n> **`Keyboard.backspace()`** *(Method inside `Keyboard`)*\r\n>> Deletes the character before the cursor or removes the selection if active.\r\n\r\n> **`Keyboard.delete()`** *(Method inside `Keyboard`)*\r\n>> Deletes the character after the cursor.\r\n\r\n> **`Keyboard.enter()`** *(Method inside `Keyboard`)*\r\n>> Inserts a new line at the cursor position.\r\n\r\n> **`Keyboard.delete_selection()`** *(Method inside `Keyboard`)*\r\n>> Deletes the currently selected text region.\r\n\r\n> **`HardCache`**\r\n>> Utility class for compressing and storing text content in hidden files on the desktop, supporting retrieval and decompression.\r\n\r\n> **`create()`** *(Method inside `HardCache`)*\r\n>> Compresses the content and writes it to a hidden file on the desktop, setting attributes based on the operating system.\r\n\r\n> **`read()`** *(Method inside `HardCache`)*\r\n>> Reveals the cached file, decompresses its content, deletes the file, and returns the text.\r\n\r\n> **`info()`** *(Static Method inside `HardCache`)*\r\n>> Prints a brief description of the class purpose.\r\n\r\n> \ud83d\udee1\ufe0f **`CoLine`**\r\n>> Utility class for encoding and decoding strings arranged in a grid by shifting lines or columns.\r\n\r\n> \ud83d\udee1\ufe0fi **`encode(input_str, cols, shifttype, line_idx=None, col_idx=None)`** *(Static Method inside `CoLine`)*\r\n>> Arranges text into a grid of `cols` columns and shifts either a line or a column depending on `shifttype`. Returns the transformed string.\r\n\r\n> \ud83d\udee1\ufe0fi **`decode(input_str, cols, shifttype, line_idx=None, col_idx=None)`** *(Static Method inside `CoLine`)*\r\n>> Reverses the transformation applied by `encode`, restoring the original grid arrangement.\r\n\r\n> \ud83d\udee1\ufe0f **`ParseShield`**\r\n>> Utility class for hiding text by inserting invisible Unicode characters and decoding it back.\r\n\r\n> \ud83d\udee1\ufe0fi **`encode(input_text, expansion_factor=5)`** *(Static Method inside `ParseShield`)*\r\n>> Inserts random invisible characters after each character in the input, making the text visually unchanged (in console and some editors) but harder to parse.\r\n\r\n> \ud83d\udee1\ufe0fi **`decode(input_text)`** *(Static Method inside `ParseShield`)*\r\n>> Removes all invisible characters to restore the original text.\r\n",
"bugtrack_url": null,
"license": "SyloraQ Software Agreement",
"summary": "SyloraQ Python Module One Step Ahead",
"version": "3.2",
"project_urls": {
"Homepage": "https://github.com/SyloraQ/SyloraQ"
},
"split_keywords": [
"syloraq",
" syloraq",
" qol",
" quality of life"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d747dc963a512b44d4ee9e76f6c412fbb891b65bba7cf26915a1d78f4dd639fa",
"md5": "80af9866c10304fdd1c084780b702de4",
"sha256": "197f6edc003cd7fb9d1fd2042ca93d1a55b064061679ccd392bda7472d98911a"
},
"downloads": -1,
"filename": "syloraq-3.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "80af9866c10304fdd1c084780b702de4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 64877,
"upload_time": "2025-07-13T21:32:10",
"upload_time_iso_8601": "2025-07-13T21:32:10.595771Z",
"url": "https://files.pythonhosted.org/packages/d7/47/dc963a512b44d4ee9e76f6c412fbb891b65bba7cf26915a1d78f4dd639fa/syloraq-3.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "851a7ee335e98dc2bb1ed5571080fdce8f43991ea0334e3849480edc73ebb1d6",
"md5": "d2e2b229e2b7432064b36ec5913163c0",
"sha256": "9ec49461c6cd3300e2fa0b134ed7b3878570372639fd6a57e174c18c4dab9ec0"
},
"downloads": -1,
"filename": "syloraq-3.2.tar.gz",
"has_sig": false,
"md5_digest": "d2e2b229e2b7432064b36ec5913163c0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 89789,
"upload_time": "2025-07-13T21:32:12",
"upload_time_iso_8601": "2025-07-13T21:32:12.066913Z",
"url": "https://files.pythonhosted.org/packages/85/1a/7ee335e98dc2bb1ed5571080fdce8f43991ea0334e3849480edc73ebb1d6/syloraq-3.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-13 21:32:12",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "SyloraQ",
"github_project": "SyloraQ",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "syloraq"
}