Skip to content

Tik-Ten/Its_Hub-Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

120 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Version: 0.2.7

Intro

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.

How to install

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

How to remove

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"

Check

import Its_Hub
Its_Hub.__version__()
# Output:
Its_Hub Library version is 0.0.9

Our products

How to use ... class

Use Libraries

For use Its_Hub you can use This:
from Its_Hub import Its_Hub
hub = Its_Hub()

Faker

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") 

Fake_profile

Show a digital fake profile

profile = hub.Fake_profile() # You can customize job, company, name, and ...
profile.Create_result(profile.Create_profile()) 

output:

Create list of a fake profile

profile = hub.Fake_profile()
Profile_list = profile.Create_profile()
print(Profile_list)

Mini

Plus

You can use this function for num1 + num2 (:

result = hub.Mini.Plus(number=8, plus=10)
print(ans)

Count

You can count and plus with this function.

count_ans = hub.Mini.Count(0, 5)
print(count_ans)

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_database()

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.Create_Table()

Save_in_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.Save_in_database("'Farbod Parkhooi', 'your@email.com', 'Example@2023'")

Read_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
search_result = sql.Read_database("Email", "Name='Farbod Parkhooi'")
print(search_result)

Computer_Vision

In this class, I use CV2 and CVZone to use a computer webcam.

Start_Video

cv = hub.Computer_Vision()
cv.Start_video(VideoCapture=0, Show=True, exit_button="q")

Detect Hand

cv = hub.Computer_Vision()
cv.Start_video(VideoCapture=0, Show=True, exit_button="q", Detect_Hands=True)

output:

Detect Faces

cv = hub.Computer_Vision()
cv.Start_video(VideoCapture=0, Show=True, exit_button="q", Detect_Faces=True)

output:

Detect Pose

cv = hub.Computer_Vision() 
cv.Start_video(VideoCapture=0, Show=True, exit_button="q", Detect_Pose=True)

Voice

Say

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

Create_QR

qr = hub.QR()
qr.Create_QR(Data="https://www.github.com/tik-ten/Its_Hub/", name="qrcode.png")

output:

Web

Open_website

hub.Web.Open_website(URL="https://simple.wikipedia.org/w/index.php?title=User%3AFarbod_Parkhooi%2FIts_Hub_Library")

OS

Remove_file

os = hub.OS()
os.Remove_file(File_address="test.txt")

Remove_dir

os = hub.OS()
os.Remove_dir(Dir_address="C:\Users\Farbod Parkhooi\Test_dir")

Create_file

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")

Get_code_address

os = hub.OS()
code_address = os.Get_code_address()
print(code_address)

Read_file

os = hub.OS()
text = os.Read_file(File_address="", File_name="text.txt")
print(text)

# Output:
# Your file's text

Check_exist

os = hub.OS()
result = os.Check_exist(File_address="", File_name="text.txt")
print(result)

# Output:
# True or False

Get_file_size

os = hub.OS()
size = os.Get_app_size(File_address="", File_name="text.txt")
print(size)

Encryption_string

Encode

Encryption = hub.Encryption_string(text="Hello, How are you today?", shift=5)
result = Encryption.Encode()
print(result)
# Output:
# mjqqt, mtb fwj dtz ytifd?

Decode

Encryption = hub.Encryption_string(text="mjqqt, mtb fwj dtz ytifd?", shift=5)
result = Encryption.Decode()
print(result)
# Output:
# Hello, how are you today?

Digital_message

Show_info

hub = Its_Hub()
digital_msg = hub.Digital_message(title="This is title", text="This is text for message")
digital_msg.Show_info()

output:

Show_warning

hub = Its_Hub()
digital_msg = hub.Digital_message(title="This is title", text="This is text for message")
digital_msg.Show_warning()

output:

Show_error

hub = Its_Hub()
digital_msg = hub.Digital_message(title="This is title", text="This is text for message")
digital_msg.Show_error()

output:

Hash

This class was created to hash the passwords for saving in the database.

Encode

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: High

output:


output with default salt:

Hash_file

Create

Hash_file = hub.Hash_file(file_address="C:\\Users\\Farbod Parkhooi\\", file_name="text.txt")
Hashed = Hash_file.Create()
print(Hashed)

Links

Donate

To donate to me you can fork this repo or star it! :)

About

Its_Hub is a library for USE other libraries! (;

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages