Name | rx7 JSON |
Version |
4.0.0
JSON |
| download |
home_page | |
Summary | Useful functions and methods are all gathered in one module |
upload_time | 2023-07-13 20:29:30 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.10 |
license | LGPL |
keywords |
shortcut
collection
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
![PyPI - License](https://img.shields.io/badge/downloads-32k%2Fmonth-brightgreen?style=plastic) ![PyPI - License](https://img.shields.io/pypi/l/rx7?color=orange&style=plastic) ![PyPI - License](https://img.shields.io/badge/status-stable-success?style=plastic)
--------------------------------------------------------
"rx7" is a library help you code faster and shorter
--------------------------------------------------------
### \- Most Usefull function and mexthods are collected.
### \- Special features
### \- Simple and easy to understad API
<hr />
### Installation
pip install rx7
### Upgrade
pip install --upgrade rx7
<br />
# Here is the brief documentaion:
### *(Complete documentation with details will be added soon in the Wiki section)*
<h2>List of Variables:</h2>
| **Variable** | **Description** |
|--------------|---------------------------------------------------------|
| argv | sys.argv (return list of given arguments from terminal) |
| ABC | Parent for classes which have abstractmethods |
| exit | Equivalent sys.exit (returning exit code to terminal) |
| environ | Returns environment variables in a dictionary format |
<br>
List of Functions:
------------------
| **Function** | **Description** |
|----------------------------------|--------------------------------------------------------------------------------------------------|
| p() | print() function. |
| repeat(function,n) | Repeat F_Name function for n times. |
| rev(v) (REMOVED 2.4.0) | Reverse v and returns it. (Everything like str,list,int) |
| read(file) | Return content of the file. |
| write(file,mode,text) | Write things you want in file content. (Read Doc String) |
| wait(n)sleep(n) | Stop code executing for n seconds |
| cls()clear() | It Clears the Terminal |
| progressbar() (*removed in v3.1) | In-App Progressbar. (Read Doc String) |
| cons_integer(Frst,Lst) | Return string from Frst to Lst (Read Doc String) (v1.7) |
| force(tpl,*var) | Return tpl with adding var(s) to it. |
| erase(tpl,*var) | Return tpl with removing var(s) from it. |
| replace(tpl,ind,var) | Replace tpl[ind] with var |
| insert(tpl,ind,var) | Set tpl[ind] to var. (Note that tpl[ind] will be tpl[ind+1]) |
| pop(tpl,index) | Remove member with index of 'index' from a tuple |
| wait_for(button) | Waits for user to press specific button. |
| call_later(func,args,delay) | Call func(args) after delay time. |
| convert_bytes(num) | convert bytes to (KB,MB,GB,TB) |
| Input(prompt,default) | Prompt an input message with default answer (value) (ONLY ON WINDOWS) |
| default_input() | Same as `default_input` |
| restart_app() | Restart running python program |
| active_window_title() | Return Active Window Title |
| open_image(path) | Open image with default image viewer (Mac OS is not supported) |
| download(url) | To download files with memory saver and progressbar |
| extract(file,path,pwd) | Extract Zip file with password to path |
| screenshot(name) | Take a screenshot and save it. |
| func_info(function) | Print information of function |
| Check_Type | Decorator that raise TypeError if function argument type is wrong (Read Help) |
| Progressbar() | Generator of progressbar() which you can use it to do some stuff between your delays (Read Help) |
| pixel_color(X,Y) | Return RGB color of pixel[X,Y] |
| getpass(prompt) | Prompt for a password, with echo turned off. |
| import_module(path) | Return given path (file with any extension) as a Module |
<br>
<h2>List of Classes:</h2>
<h3> Class Random: <em>Random Variable Generator Class.</em></h3>
| **Function** | **Description** |
|--------------------------|------------------------------------------------|
| choose(iter,k,duplicate) | Choose k random items from iterable or string. |
| integer(Frst,Lst) | Choose integer in range [Frst,Lst] |
| O1(decimal_nom=17) | Return x in interval [0,1) |
| number(Frst,Lst) | Return x in interval [Frst,Lst] |
| shuffle(iterable) | Return shuffled version of iterable |
<br>
<h3> Class System: <em>Some system actions and information.</em></h3>
| **Function** | **Description** |
|-------------------------|-------------------------------------------------------------------------|
| accname() | return account username you have logged in. |
| pid() | Get pid number of terminal and return it. |
| disk_usage(path) | ######## |
| chdir | Change directory of terminal. |
| SHUT_DOWN() | Shut Down the PC. |
| RESTART() | Restart the PC. |
| terminal_size() | Return terminal size in tuple (columns,lines). |
| cwd() | Return Carrent Working Directory. |
| ip_global() | Returns Global IP. |
| ip_local() | Returns Local IP. |
| ram_total() | Returns total ram of the system. |
| ram_used() | Returns Used Space of the ram of the system. |
| ram_free() | Returns Available (Free) space of system ram. |
| boot_time() | Return system boot time in seconds since the epoch. |
| device_name() | Returns Device Name |
| ip_website(url) | Returns url ip address |
| win10_notification() | Display windows 10 notification (READ DOCSTRING) (ONLY WIN10 SUPPORTED) |
| cpu_count(logical=True) | Return the number of logical/physical CPUs in the system |
| pyshell_execute_bit() | To determine whether Python shell is executing in 32bit or 64bit |
| pids() | Return a list of current running PIDs |
| pid_exists(pid) | Return True if pid exists else False |
| cpu_percent() | Return the current CPU utilization as a percentage |
| os_name() | Returns OS name of machine |
<br>
<h3> Class Files: (Static<strong style="font-size: 14px;"> methods) </strong><em style="font-size: 14px;">Actions and information about files.</em></h3>
| **Function** | **Description** |
|----------------------------------------------|-------------------------------------------------------------------------------|
| size(path) | Return size of the file in byte(s). Also work on |
| delete(path) | Use this to delete a file (Not folder). |
| rename(path) | Rename files with this function. |
| abspath(path) | Return absolute path of given path. |
| exists(path) | Return Boolean. If exists True, else: False |
| mdftime(path) | Get last modify time of the file. |
| acstime(path) | Get last access time of the file. |
| move(src,dst) | Move file from src to dst. (Read Doc String of copy func) |
| copy(src,dst,metadata=True) | Copy file (with metadata) from src to dst. (Also work on folders) |
| hide(path) | Hide given path. (It can be file or directory.) |
| read_only(path,mode=True) | Make file or folder read-only. (Read Doc String) |
| read(path) | Return content of the path |
| write(path,text='',...) | Same as write function. |
| isdir(path) | Return True for directory and False for others. |
| isfile(path) | Return True for file and False for others. |
| is_hidden(path) | Check whether path is hidden or not |
| is_readonly(path) | Check whether path is readonly or not |
| search_file(pattern,path,mode) | search for pattern in path (Read function doc string) |
| search_content(path,word) | Search for word in all files in path, return list of files that contain word |
| mkdir(path) | Make directory (More than one if its possible!) |
| generate_tree(dir_path) | Returns a visual tree of dir_path |
| get_drives() | (Windows only) Get currently available drives |
| basename(path) | Returns the final component of a pathname |
| dirname(path) | Returns the directory component of a pathname |
| join_paths(path) | Joins multiple paths together and returns it |
| MEMBERS (Family) | |
| MEMBERS.all_exactdir | List of all things those are in exact directory |
| MEMBERS.files_exactdir | List of files which are in exact directory |
| MEMBERS.dirs_exactdir | List of dirs which are in exact directory |
| MEMBERS.files_all | List of files which are in exact directory and all sub-directories |
| MEMBERS.files_all_sep | List of files which are in exact directory and all sub-directories seprated by their directories |
| MEMBERS.dirs_all | List of directories (Exact dir and all sub-dirs) |
| MEMBERS.all_all_sep | List of everything thing in path (exact dir & sub-dirs) |
<br>
<h3> Class Style: <em>Changing text Color,BG & Style. (Read Doc String)</em></h3>
| **Function** | **Description** |
|-----------------------------------------------|-------------------------------------------------------------|
| print\(\*values, color, BG, style, end, sep\) | Print txt with selected color,BG,style\.\(Read Doc String\) |
| switch\(color,BG,style\) | Change Terminal Attributes Until another Call\. |
| switch\_default\(\) | Restore Terminal Attributes\. |
| reset | =switch\_default |
| log\_ \(Family\) | 5 Different Style\.print with ready color and style |
<br>
<h3> Class Record: <em>Record time of a certain actions. (Read Doc String)</em></h3>
| **Function** | **Description** |
|-------------------------------------|----------------------------------------------------------------------------|
| __init__() | Set Start Time. |
| self.stop(self) | Stops Recording (You can not lap anymore) |
| self.lap(self, save=True, round=15) | Rreturn time between start time. if save==True: add that time to self.laps |
| self.laps | A list that contains all laps you have done |
| self.reset(self, start=False) | Empty self.laps, if start is True: set start time to now |
| self.last_lap(save=True) | Return elapsed time from last lap (save it in self.laps if save is true) |
| timeit(code,setup, times,globals_) | Run the 'code' for 'times' times and return time it needs (all, not once) |
| timer(f) | Decorator for functions to print out how much each call takes |
<br>
<h3> Class Decorator: <em>Useful decorators you might want to use</em></h3>
| **Function** | **Description** |
|----------------|----------------------------------------------------------------------------------------------------|
| Check_Type | Decorator that raise TypeError if function argument type is wrong (Read Help) |
| overload | Make your function accept different kind of argument and structure with defining it more than once |
| attach_to_all | Attach Decorator.decorator_all to all functions of a class (Class decorator) |
| abstractmethod | A decorator indicating abstract methods. |
<br />
<h3> Class Terminal: <em>functions related to working with terminal</em></h3>
| **Function** | **Description** |
|:------------------- |:----------------------------------------------------------- |
| run(command) | executes `command` live in terminal |
| getoutput(commands) | runs the `command` in the background and returns the output |
| size() | Returns the size of terminal in tuple (columns,rows) |
<br>
<h3> Class IO: <em>Useful methods when working with user input</em></h3>
| **Function** | **Description** |
|------------------------------|--------------------------------------------------------------------------|
| wait_for_input(prompt) | Asks for user input, until they enter something else than whitespaces |
| selective_input() | Check repository wiki for full documentation |
| yesno_input(prompt, default) | wait for user to enter one of (`yes`,`no`, `y`, `n`). (Case insensitive) |
| Input(prompt, default_value) | (Windows only) Types default value before getting user's input |
| getpass(prompt) | Gets users input without showing their input (`getpass.getpass()`) |
<br>
<h3> Class Internet: <em>Methods for working with network and internet related stuffs</em></h3>
| **Function** | **Description** |
|-----------------------|-------------------------------------------------------------------------------------------------|
| is_connected(website) | Check for internet connection with trying to connect to `website` |
| connection_checker | Decorator to check if internet is connected before calling the function |
| ip_local() | Returns local ip |
| ip_global() | Returns global ip |
| ip_global(website) | returns ip of the given website |
| url_exists(url) | Checks if a url exists (with requests module) (needs http[s]) |
| url_links(URL) | Get all links that are used in a specific URL (All "a" tags from html source) (Needs 'http[s]') |
| find_urls(text) | returns list of all urls in a string using regex |
| is_url(URL) | checks if the string has the expression of a real url |
| open_browser(url) | opens given url in the new tab of default browser |
<br>
#### Recommendations:
- Using `import rx7 as rx`
<br />
Commands in Terminal:
--------------------------------
$ python -m rx7 --wiki (To open wiki page in browser)
$ python -m rx7 --colors (To show help for style class)
$ python -m rx7 --help (To open help menu)
<br />
Releases and Changelog:
---------
Take a look at [here](https://github.com/Ramin-RX7/RX7-Lib/blob/master/CHANGELOG.md) for the changelog
Raw data
{
"_id": null,
"home_page": "",
"name": "rx7",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "",
"keywords": "shortcut,collection",
"author": "",
"author_email": "Ramin-RX7 <rawmin.rx@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/03/cf/6886834891c5db76bd91aebdc7ed265660fc294b9f3603b2e43fa6b82f32/rx7-4.0.0.tar.gz",
"platform": null,
"description": "![PyPI - License](https://img.shields.io/badge/downloads-32k%2Fmonth-brightgreen?style=plastic) ![PyPI - License](https://img.shields.io/pypi/l/rx7?color=orange&style=plastic) ![PyPI - License](https://img.shields.io/badge/status-stable-success?style=plastic)\r\n--------------------------------------------------------\r\n\r\n\"rx7\" is a library help you code faster and shorter\r\n--------------------------------------------------------\r\n\r\n### \\- Most Usefull function and mexthods are collected.\r\n\r\n### \\- Special features\r\n\r\n### \\- Simple and easy to understad API\r\n\r\n<hr />\r\n\r\n### Installation\r\n pip install rx7\r\n### Upgrade\r\n pip install --upgrade rx7\r\n\r\n\r\n<br />\r\n\r\n\r\n# Here is the brief documentaion:\r\n### *(Complete documentation with details will be added soon in the Wiki section)*\r\n\r\n\r\n<h2>List of Variables:</h2>\r\n\r\n| **Variable** | **Description** |\r\n|--------------|---------------------------------------------------------|\r\n| argv | sys.argv (return list of given arguments from terminal) |\r\n| ABC | Parent for classes which have abstractmethods |\r\n| exit | Equivalent sys.exit (returning exit code to terminal) |\r\n| environ | Returns environment variables in a dictionary format |\r\n\r\n\r\n<br>\r\n\r\n\r\nList of Functions:\r\n------------------\r\n| **Function** | **Description** |\r\n|----------------------------------|--------------------------------------------------------------------------------------------------|\r\n| p() | print() function. |\r\n| repeat(function,n) | Repeat F_Name function for n times. |\r\n| rev(v) (REMOVED 2.4.0) | Reverse v and returns it. (Everything like str,list,int) |\r\n| read(file) | Return content of the file. |\r\n| write(file,mode,text) | Write things you want in file content. (Read Doc String) |\r\n| wait(n)sleep(n) | Stop code executing for n seconds |\r\n| cls()clear() | It Clears the Terminal |\r\n| progressbar() (*removed in v3.1) | In-App Progressbar. (Read Doc String) |\r\n| cons_integer(Frst,Lst) | Return string from Frst to Lst (Read Doc String) (v1.7) |\r\n| force(tpl,*var) | Return tpl with adding var(s) to it. |\r\n| erase(tpl,*var) | Return tpl with removing var(s) from it. |\r\n| replace(tpl,ind,var) | Replace tpl[ind] with var |\r\n| insert(tpl,ind,var) | Set tpl[ind] to var. (Note that tpl[ind] will be tpl[ind+1]) |\r\n| pop(tpl,index) | Remove member with index of 'index' from a tuple |\r\n| wait_for(button) | Waits for user to press specific button. |\r\n| call_later(func,args,delay) | Call func(args) after delay time. |\r\n| convert_bytes(num) | convert bytes to (KB,MB,GB,TB) |\r\n| Input(prompt,default) | Prompt an input message with default answer (value) (ONLY ON WINDOWS) |\r\n| default_input() | Same as `default_input` |\r\n| restart_app() | Restart running python program |\r\n| active_window_title() | Return Active Window Title |\r\n| open_image(path) | Open image with default image viewer (Mac OS is not supported) |\r\n| download(url) | To download files with memory saver and progressbar |\r\n| extract(file,path,pwd) | Extract Zip file with password to path |\r\n| screenshot(name) | Take a screenshot and save it. |\r\n| func_info(function) | Print information of function |\r\n| Check_Type | Decorator that raise TypeError if function argument type is wrong (Read Help) |\r\n| Progressbar() | Generator of progressbar() which you can use it to do some stuff between your delays (Read Help) |\r\n| pixel_color(X,Y) | Return RGB color of pixel[X,Y] |\r\n| getpass(prompt) | Prompt for a password, with echo turned off. |\r\n| import_module(path) | Return given path (file with any extension) as a Module |\r\n\r\n\r\n<br>\r\n\r\n\r\n<h2>List of Classes:</h2>\r\n\r\n<h3> Class Random: <em>Random Variable Generator Class.</em></h3>\r\n\r\n| **Function** | **Description** |\r\n|--------------------------|------------------------------------------------|\r\n| choose(iter,k,duplicate) | Choose k random items from iterable or string. |\r\n| integer(Frst,Lst) | Choose integer in range [Frst,Lst] |\r\n| O1(decimal_nom=17) | Return x in interval [0,1) |\r\n| number(Frst,Lst) | Return x in interval [Frst,Lst] |\r\n| shuffle(iterable) | Return shuffled version of iterable |\r\n\r\n<br>\r\n\r\n\r\n<h3> Class System: <em>Some system actions and information.</em></h3>\r\n\r\n| **Function** | **Description** |\r\n|-------------------------|-------------------------------------------------------------------------|\r\n| accname() | return account username you have logged in. |\r\n| pid() | Get pid number of terminal and return it. |\r\n| disk_usage(path) | ######## |\r\n| chdir | Change directory of terminal. |\r\n| SHUT_DOWN() | Shut Down the PC. |\r\n| RESTART() | Restart the PC. |\r\n| terminal_size() | Return terminal size in tuple (columns,lines). |\r\n| cwd() | Return Carrent Working Directory. |\r\n| ip_global() | Returns Global IP. |\r\n| ip_local() | Returns Local IP. |\r\n| ram_total() | Returns total ram of the system. |\r\n| ram_used() | Returns Used Space of the ram of the system. |\r\n| ram_free() | Returns Available (Free) space of system ram. |\r\n| boot_time() | Return system boot time in seconds since the epoch. |\r\n| device_name() | Returns Device Name |\r\n| ip_website(url) | Returns url ip address |\r\n| win10_notification() | Display windows 10 notification (READ DOCSTRING) (ONLY WIN10 SUPPORTED) |\r\n| cpu_count(logical=True) | Return the number of logical/physical CPUs in the system |\r\n| pyshell_execute_bit() | To determine whether Python shell is executing in 32bit or 64bit |\r\n| pids() | Return a list of current running PIDs |\r\n| pid_exists(pid) | Return True if pid exists else False |\r\n| cpu_percent() | Return the current CPU utilization as a percentage |\r\n| os_name() | Returns OS name of machine |\r\n\r\n\r\n\r\n<br>\r\n\r\n\r\n<h3> Class Files: (Static<strong style=\"font-size: 14px;\"> methods) </strong><em style=\"font-size: 14px;\">Actions and information about files.</em></h3>\r\n\r\n| **Function** | **Description** |\r\n|----------------------------------------------|-------------------------------------------------------------------------------|\r\n| size(path) | Return size of the file in byte(s). Also work on |\r\n| delete(path) | Use this to delete a file (Not folder). |\r\n| rename(path) | Rename files with this function. |\r\n| abspath(path) | Return absolute path of given path. |\r\n| exists(path) | Return Boolean. If exists True, else: False |\r\n| mdftime(path) | Get last modify time of the file. |\r\n| acstime(path) | Get last access time of the file. |\r\n| move(src,dst) | Move file from src to dst. (Read Doc String of copy func) |\r\n| copy(src,dst,metadata=True) | Copy file (with metadata) from src to dst. (Also work on folders) |\r\n| hide(path) | Hide given path. (It can be file or directory.) |\r\n| read_only(path,mode=True) | Make file or folder read-only. (Read Doc String) |\r\n| read(path) | Return content of the path |\r\n| write(path,text='',...) | Same as write function. |\r\n| isdir(path) | Return True for directory and False for others. |\r\n| isfile(path) | Return True for file and False for others. |\r\n| is_hidden(path) | Check whether path is hidden or not |\r\n| is_readonly(path) | Check whether path is readonly or not |\r\n| search_file(pattern,path,mode) | search for pattern in path (Read function doc string) |\r\n| search_content(path,word) | Search for word in all files in path, return list of files that contain word |\r\n| mkdir(path) | Make directory (More than one if its possible!) |\r\n| generate_tree(dir_path) | Returns a visual tree of dir_path |\r\n| get_drives() | (Windows only) Get currently available drives |\r\n| basename(path) | Returns the final component of a pathname |\r\n| dirname(path) | Returns the directory component of a pathname |\r\n| join_paths(path) | Joins multiple paths together and returns it |\r\n| MEMBERS (Family) | |\r\n| MEMBERS.all_exactdir | List of all things those are in exact directory |\r\n| MEMBERS.files_exactdir | List of files which are in exact directory |\r\n| MEMBERS.dirs_exactdir | List of dirs which are in exact directory |\r\n| MEMBERS.files_all | List of files which are in exact directory and all sub-directories |\r\n| MEMBERS.files_all_sep | List of files which are in exact directory and all sub-directories seprated by their directories |\r\n| MEMBERS.dirs_all | List of directories (Exact dir and all sub-dirs) |\r\n| MEMBERS.all_all_sep | List of everything thing in path (exact dir & sub-dirs) |\r\n\r\n\r\n<br>\r\n\r\n\r\n<h3> Class Style: <em>Changing text Color,BG & Style. (Read Doc String)</em></h3>\r\n\r\n| **Function** | **Description** |\r\n|-----------------------------------------------|-------------------------------------------------------------|\r\n| print\\(\\*values, color, BG, style, end, sep\\) | Print txt with selected color,BG,style\\.\\(Read Doc String\\) |\r\n| switch\\(color,BG,style\\) | Change Terminal Attributes Until another Call\\. |\r\n| switch\\_default\\(\\) | Restore Terminal Attributes\\. |\r\n| reset | =switch\\_default |\r\n| log\\_ \\(Family\\) | 5 Different Style\\.print with ready color and style |\r\n\r\n\r\n<br>\r\n\r\n\r\n<h3> Class Record: <em>Record time of a certain actions. (Read Doc String)</em></h3>\r\n\r\n| **Function** | **Description** |\r\n|-------------------------------------|----------------------------------------------------------------------------|\r\n| __init__() | Set Start Time. |\r\n| self.stop(self) | Stops Recording (You can not lap anymore) |\r\n| self.lap(self, save=True, round=15) | Rreturn time between start time. if save==True: add that time to self.laps |\r\n| self.laps | A list that contains all laps you have done |\r\n| self.reset(self, start=False) | Empty self.laps, if start is True: set start time to now |\r\n| self.last_lap(save=True) | Return elapsed time from last lap (save it in self.laps if save is true) |\r\n| timeit(code,setup, times,globals_) | Run the 'code' for 'times' times and return time it needs (all, not once) |\r\n| timer(f) | Decorator for functions to print out how much each call takes |\r\n\r\n\r\n<br>\r\n\r\n\r\n<h3> Class Decorator: <em>Useful decorators you might want to use</em></h3>\r\n\r\n| **Function** | **Description** |\r\n|----------------|----------------------------------------------------------------------------------------------------|\r\n| Check_Type | Decorator that raise TypeError if function argument type is wrong (Read Help) |\r\n| overload | Make your function accept different kind of argument and structure with defining it more than once |\r\n| attach_to_all | Attach Decorator.decorator_all to all functions of a class (Class decorator) |\r\n| abstractmethod | A decorator indicating abstract methods. |\r\n<br />\r\n\r\n\r\n<h3> Class Terminal: <em>functions related to working with terminal</em></h3>\r\n\r\n| **Function** | **Description** |\r\n|:------------------- |:----------------------------------------------------------- |\r\n| run(command) | executes `command` live in terminal |\r\n| getoutput(commands) | runs the `command` in the background and returns the output |\r\n| size() | Returns the size of terminal in tuple (columns,rows) |\r\n<br>\r\n\r\n\r\n<h3> Class IO: <em>Useful methods when working with user input</em></h3>\r\n\r\n| **Function** | **Description** |\r\n|------------------------------|--------------------------------------------------------------------------|\r\n| wait_for_input(prompt) | Asks for user input, until they enter something else than whitespaces |\r\n| selective_input() | Check repository wiki for full documentation |\r\n| yesno_input(prompt, default) | wait for user to enter one of (`yes`,`no`, `y`, `n`). (Case insensitive) |\r\n| Input(prompt, default_value) | (Windows only) Types default value before getting user's input |\r\n| getpass(prompt) | Gets users input without showing their input (`getpass.getpass()`) |\r\n<br>\r\n\r\n\r\n<h3> Class Internet: <em>Methods for working with network and internet related stuffs</em></h3>\r\n\r\n| **Function** | **Description** |\r\n|-----------------------|-------------------------------------------------------------------------------------------------|\r\n| is_connected(website) | Check for internet connection with trying to connect to `website` |\r\n| connection_checker | Decorator to check if internet is connected before calling the function |\r\n| ip_local() | Returns local ip |\r\n| ip_global() | Returns global ip |\r\n| ip_global(website) | returns ip of the given website |\r\n| url_exists(url) | Checks if a url exists (with requests module) (needs http[s]) |\r\n| url_links(URL) | Get all links that are used in a specific URL (All \"a\" tags from html source) (Needs 'http[s]') |\r\n| find_urls(text) | returns list of all urls in a string using regex |\r\n| is_url(URL) | checks if the string has the expression of a real url |\r\n| open_browser(url) | opens given url in the new tab of default browser |\r\n<br>\r\n\r\n\r\n\r\n#### Recommendations:\r\n\r\n - Using `import rx7 as rx`\r\n\r\n<br />\r\n\r\n\r\nCommands in Terminal:\r\n--------------------------------\r\n $ python -m rx7 --wiki (To open wiki page in browser)\r\n $ python -m rx7 --colors (To show help for style class)\r\n $ python -m rx7 --help (To open help menu)\r\n\r\n<br />\r\n\r\n\r\nReleases and Changelog:\r\n---------\r\nTake a look at [here](https://github.com/Ramin-RX7/RX7-Lib/blob/master/CHANGELOG.md) for the changelog\r\n",
"bugtrack_url": null,
"license": "LGPL",
"summary": "Useful functions and methods are all gathered in one module",
"version": "4.0.0",
"project_urls": {
"Bug Tracker": "https://github.com/Ramin-RX7/RX7-Lib/issues",
"Homepage": "https://github.com/Ramin-RX7/RX7-Lib",
"changelog": "https://github.com/Ramin-RX7/RX7-Lib/blob/master/CHANGELOG.md",
"documentation": "https://github.com/Ramin-RX7/RX7-Lib/wiki",
"repository": "https://github.com/Ramin-RX7/RX7-Lib"
},
"split_keywords": [
"shortcut",
"collection"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "03cf6886834891c5db76bd91aebdc7ed265660fc294b9f3603b2e43fa6b82f32",
"md5": "38fd6e5fa1034723fda87e6c021bd69c",
"sha256": "5f93f896ff66663b459736c0c250337c9f54b4f8fc97855f8330f56d0b12bc45"
},
"downloads": -1,
"filename": "rx7-4.0.0.tar.gz",
"has_sig": false,
"md5_digest": "38fd6e5fa1034723fda87e6c021bd69c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 43149,
"upload_time": "2023-07-13T20:29:30",
"upload_time_iso_8601": "2023-07-13T20:29:30.419703Z",
"url": "https://files.pythonhosted.org/packages/03/cf/6886834891c5db76bd91aebdc7ed265660fc294b9f3603b2e43fa6b82f32/rx7-4.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-13 20:29:30",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Ramin-RX7",
"github_project": "RX7-Lib",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "rx7"
}