Its_Hub library.
This is a library with Other Libraries! (;
U Can Use This Library For Use a Few Other Libraries. 4 Example:
- Faker
- Tkinter
- CV2
- Tkhtmlview
- sqlite3
- ...
My name is Farbod Parkhooi(Or you can call me Tik Ten)
This is my Github link: https://www.github.com/tik-ten/
Thanks for use.
For download this library:
>>> git clone https://github.com/Tik-Ten/Its_Hub.git
>>> cd Its_Hub
>>> pip install -r requirements.txt
>>> python setup.py <Your python libraries address>
>>> cd ..
>>> rmdir /s Its_Hub
example for python libraries address: "C:/Users/Farbod Parkhooi/AppData/Local/Programs/Python/Python311/Lib" You must remove the Its_Hub directory to install other updates
To remove this app:
>>> cd Its_Hub
>>> python remove.py <Your python libraries address>
example for python libraries address: "C:/Users/Farbod Parkhooi/AppData/Local/Programs/Python/Python311/Lib"
import Its_Hub
Its_Hub.__version__()
# Output:
Its_Hub Library version is 0.0.9- Faker
- Fake_profile
- Mini
- SQL
- Computer_Vision
- Voice
- QR
- Web
- OS
- Encryption_string
- Digital_message
- Hash
- Hash_file
- Links
- Donate
from Its_Hub import Its_Hub
hub = Its_Hub()For use Faker:
Its_Hub.Faker(target="") # "first_name" or "last_name" or "name" or "phone_number" or "address" or "profile" or "job" or "company"
# You can print that:
print(Its_Hub.Faker(target="name"))
# and you can save that in a value
name = Its_Hub.Faker(target="name") profile = hub.Fake_profile() # You can customize job, company, name, and ...
profile.Create_result(profile.Create_profile()) output:
profile = hub.Fake_profile()
Profile_list = profile.Create_profile()
print(Profile_list)You can use this function for num1 + num2 (:
result = hub.Mini.Plus(number=8, plus=10)
print(ans)You can count and plus with this function.
count_ans = hub.Mini.Count(0, 5)
print(count_ans)sql = hub.SQL("Users", "'Name', 'Email', 'Password'") # You must write Table_name and Table_Attributes and you can write the Database_address, and Database_name
sql.Create_database()sql = hub.SQL("Users", "'Name', 'Email', 'Password'") # You must write Table_name and Table_Attributes and you can write the Database_address, and Database_name
sql.Create_Table()sql = hub.SQL("Users", "'Name', 'Email', 'Password'") # You must write Table_name and Table_Attributes and you can write the Database_address, and Database_name
sql.Save_in_database("'Farbod Parkhooi', 'your@email.com', 'Example@2023'")sql = hub.SQL("Users", "'Name', 'Email', 'Password'") # You must write Table_name and Table_Attributes and you can write the Database_address, and Database_name
search_result = sql.Read_database("Email", "Name='Farbod Parkhooi'")
print(search_result)In this class, I use CV2 and CVZone to use a computer webcam.
cv = hub.Computer_Vision()
cv.Start_video(VideoCapture=0, Show=True, exit_button="q")cv = hub.Computer_Vision()
cv.Start_video(VideoCapture=0, Show=True, exit_button="q", Detect_Hands=True)cv = hub.Computer_Vision()
cv.Start_video(VideoCapture=0, Show=True, exit_button="q", Detect_Faces=True)cv = hub.Computer_Vision()
cv.Start_video(VideoCapture=0, Show=True, exit_button="q", Detect_Pose=True)voice = hub.Voice("You text here", speed=125, gender="M") # for gender you can use F too
voice.Say()
# Also you can save the generated voice
voice.Say(save_voice=True, File_name="voice.mp3")qr = hub.QR()
qr.Create_QR(Data="https://www.github.com/tik-ten/Its_Hub/", name="qrcode.png")hub.Web.Open_website(URL="https://simple.wikipedia.org/w/index.php?title=User%3AFarbod_Parkhooi%2FIts_Hub_Library")os = hub.OS()
os.Remove_file(File_address="test.txt")os = hub.OS()
os.Remove_dir(Dir_address="C:\Users\Farbod Parkhooi\Test_dir")os = hub.OS()
os.Create_file(File_name="text.txt")
# Also you can change the address of the file
os.Create_file(File_name="text.txt", File_address="C:\Users\Farbod Parkhooi\Test_dir")os = hub.OS()
code_address = os.Get_code_address()
print(code_address)os = hub.OS()
text = os.Read_file(File_address="", File_name="text.txt")
print(text)
# Output:
# Your file's textos = hub.OS()
result = os.Check_exist(File_address="", File_name="text.txt")
print(result)
# Output:
# True or Falseos = hub.OS()
size = os.Get_app_size(File_address="", File_name="text.txt")
print(size)Encryption = hub.Encryption_string(text="Hello, How are you today?", shift=5)
result = Encryption.Encode()
print(result)
# Output:
# mjqqt, mtb fwj dtz ytifd?Encryption = hub.Encryption_string(text="mjqqt, mtb fwj dtz ytifd?", shift=5)
result = Encryption.Decode()
print(result)
# Output:
# Hello, how are you today?hub = Its_Hub()
digital_msg = hub.Digital_message(title="This is title", text="This is text for message")
digital_msg.Show_info()hub = Its_Hub()
digital_msg = hub.Digital_message(title="This is title", text="This is text for message")
digital_msg.Show_warning()hub = Its_Hub()
digital_msg = hub.Digital_message(title="This is title", text="This is text for message")
digital_msg.Show_error()This class was created to hash the passwords for saving in the database.
Hash = Hub.Hash(text="Hello world", salt="<-- This_is_salt -->", Hash_level="High") # hash level can be Medium and Low too
Hashed = Hash.Encode()
print(Hashed)
# Also you can dont change the salt and Hash_level.
# default salt: 13e355e545r45r8ew83q90123e
# default Hash_level: Highoutput with default salt:
Hash_file = hub.Hash_file(file_address="C:\\Users\\Farbod Parkhooi\\", file_name="text.txt")
Hashed = Hash_file.Create()
print(Hashed)To donate to me you can fork this repo or star it! :)








