Skip to content

Commit

Permalink
Release PyAppDevKit.
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxUsersLinuxMint committed Jun 9, 2024
1 parent 5930ec6 commit 4e10fa2
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 0 deletions.
29 changes: 29 additions & 0 deletions InfoLib/pyappdevkit_info.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/python3
""" Copyright© 2023-2024 LinuxUsersLinuxMint
PyAppDevKit Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır.
PyAppDevKit All Rights Reserved under the GPL(General Public License).
Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/PyAppDevKit
A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/PyAppDevKit"""

PYTHON_LIB_NAME="PyAppDevKit"
PYTHON_LIB_LICENCE="GPL2"
PYTHON_LIB_IMPLEMENTED_CONTRACTS="LinuxUsersLinuxMint Privacy and Security Agreement , LinuxUsersLinuxMint Web (Site) Agreement"
PYTHON_LIB_IMPLEMENTED_CONTRACTS_WEB_SITE="https://linuxuserslinuxmint.github.io/Contracts/privacyandsecutryagreement/en/privacyandsecutryagreement.html , https://linuxuserslinuxmint.github.io/Contracts/linuxuserslinuxmintwebsiteagreement/en/linuxuserslinuxmintwebsiteagreement.html"
PYTHON_LIB_VER="1.0"
PYTHON_LIB_SUPPORT_PLATFORM="Windows/Linux/macOS/otherOS"
PYTHON_LIB_RELEASE_DATE="6/9/2024, Time: 17:54"
PYTHON_LIB_LAST_UPDATE_DATE="XX/XX/XXXX, Time: XX:XX / XX:XX XX"
PYTHON_LIB_AUTHOR="LinuxUsersLinuxMint"
PYTHON_LIB_AUTHOR_WEB_SITE="https://linuxuserslinuxmint.github.io"

def LibAbout():
print("Python Library Name:", format(PYTHON_LIB_NAME))
print("Python Library Version:", format(PYTHON_LIB_VER))
print("Python Library Support OS:", format(PYTHON_LIB_SUPPORT_PLATFORM))
print("Python Library Licence Name:", format(PYTHON_LIB_LICENCE))
print("Python Library Implemented Contracts:", format(PYTHON_LIB_IMPLEMENTED_CONTRACTS))
print("Python Library Implemented Contracts Web Site:", format(PYTHON_LIB_IMPLEMENTED_CONTRACTS_WEB_SITE))
print("Python Library Author Name:", format(PYTHON_LIB_AUTHOR))
print("Python Library Author Web Site:", format(PYTHON_LIB_AUTHOR_WEB_SITE))
print("Python Library Release Date:", format(PYTHON_LIB_RELEASE_DATE))
print("Python Library Last Update Date:", format(PYTHON_LIB_LAST_UPDATE_DATE))
74 changes: 74 additions & 0 deletions LibFunc/pyappdevkit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
#!/usr/bin/python3
""" Copyright© 2023-2024 LinuxUsersLinuxMint
PyAppDevKit Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır.
PyAppDevKit All Rights Reserved under the GPL(General Public License).
Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/PyAppDevKit
A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/PyAppDevKit"""

import os, time, platform
from PyAppDevKit.InfoLib.pyappdevkit_info import *

def error_msg(error_dialog):
print(error_dialog)

def exit_program_dialog_time(exit_dialog_msg,userTime):
print(exit_dialog_msg)
userTime = int(userTime)
time.sleep(userTime)
if platform.system() == "Windows":
os.system("exit")
else:
exit()

def exit_program_time(userTime):
time.sleep(userTime)
userTime = int(userTime)
if platform.system() == "Windows":
os.system("exit")
else:
exit()

def exit_program_dialog(exit_dialog_msg):
print(exit_dialog_msg)
if platform.system() == "Windows":
os.system("exit")
else:
exit()

""" Example Dialog (ExitSelectDialog): "Select the method to exit the program (0: Dialogue and Time entry, 1: Time entry only, 2: Dialogue entry only, 3: Normal exit (old style)): "
Example Dialog (userTimeDialog): "After how many seconds should the program be closed?: "
Example Dialog (exitDialog): "Exit program..."
Example Dialog (errormsgDialog): "Invalid Command!" """

def all_exit(ExitSelectDialog,userTimeDialog,exitDialog,errormsgDialog):
exit_select = int(input(ExitSelectDialog))
exit_select = int(exit_select)
if exit_select == 0:
userTime = input(userTimeDialog)
exit_program_dialog_time(exitDialog, userTime)
elif exit_select == 1:
userTime = input(userTimeDialog)
exit_program_time(userTime)
elif exit_select == 2:
exit_program_dialog(exitDialog)
elif exit_select == 3:
exit()
else:
print(errormsgDialog)

def program_welcome_msg(welcome_msg,cfg):
print(welcome_msg)
if cfg == 1:
LibAbout()
elif cfg == 0:
pass

def program_info(programnamedialog,program_name,programversiondialog,program_version,programsupportosdialog,program_support_os,programlicencedialog,program_licence,programauthordialog,program_author,programauthorwebsitedialog,program_author_web_site,programreleasedatedialog,program_rs_date,programlastupdatedatedialog,program_last_update_date):
print("{0} {1}". format(programnamedialog,program_name))
print("{0} {1}". format(programversiondialog,program_version))
print("{0} {1}". format(programsupportosdialog,program_support_os))
print("{0} {1}". format(programlicencedialog,program_licence))
print("{0} {1}". format(programauthordialog,program_author))
print("{0} {1}". format(programauthorwebsitedialog,program_author_web_site))
print("{0} {1}". format(programreleasedatedialog,program_rs_date))
print("{0} {1}". format(programlastupdatedatedialog,program_last_update_date))
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# PyAppDevKit (Python App Developer Kit)

TR (Turkish / Türkçe):

* "Basic_Maths" kütüphanesinin "4.1" sürümündeki geliştiriciler için oluşturulan fonksiyonlar artık "PyAppDevKit" adı altında sunulucaktır.
* Python geliştiricileri için yazılım/uygulama geliştirmeyi kolaylaştırmayı hedefleyen bir geliştirme kitidir.
* Sürekli güncel kalır bu sayede sürekli yeni özellikler eklenir ve hata varsa bunlar çözülür.
* En iyi kullanıcı deneyiminiz için "PyAppDevKit" kütüphanesinin her zaman en son sürümünü kullanınız.

EN (English / İngilizce):

* Functions created for developers in the "4.1" version of the "Basic_Maths" library will now be offered under the name "PyAppDevKit".
* It is a development kit that aims to make software/application development easier for Python developers.
* It remains constantly updated, so new features are constantly added and if there are errors, they are resolved.
* For your best user experience, always use the latest version of the "PyAppDevKit" library.

0 comments on commit 4e10fa2

Please sign in to comment.