Skip to content

Stake2/Python

Repository files navigation

Python

Python 3.8.10 Contributors

All of my Python projects, modules, scripts, and utilities.
Made by me, Stake2.

License

Using MIT License

COC

Read Code of Conduct

Contribute

How to Contribute

Translating

Installing

$ pip install -r requirements.txt
  • Add the Modules folder to your PATH or copy its contents into your Python modules folder

  • To list all modules avaliable to run (MS = Module Selector)

$ py MS.py -help
  • To run a specific module
$ py MS.py -[Lowercased module name]
$ py MS.py -m [Module name typed in any case, with spaces or underlines]
$ py MS.py -module [Module name typed in any case, with spaces or underlines]
  • You can also run the MS script without any arguments and it will list the available modules for you to select one
$ MS.py

# Output example:

Modules:
[1] - Block_Websites
[2] - Christmas
[3] - Code
[4] - Database
[5] - Diary
[6] - Diary_Slim
[7] - Food_Time
[8] - Friends
[9] - GamePlayer
[10] - PHP
[11] - Project_Zomboid
[12] - Python
[13] - Social_Networks
[14] - SproutGigs
[15] - Stories
[16] - Tasks
[17] - Watch_History
[18] - Years

Select a module from the list to execute it: |

Connection of Python files to PHP files and Websites

The "Update_Websites" class of the "Code.py" module helps the user generate a website (generate its HTML contents).
It does that by opening a local server (XAMPP), asking the user to select a website or create a list of websites to update.
And opening each one of the websites using the /generate route of the PHP Index file, in each supported language (currently General, English, and Portuguese).
Then it opens a "Github" shortcut that opens the ConEmu console program in the Websites folder, for the user to execute git operations to push the website changes and generated HTML files to the Websites Repository.

The "Watch_History.py" Python module generates the JSON database files which are read by the "Watched.php" HTML tab generator written in PHP.
In order to generate the "Watched things" and "Past registries" tabs on the Watch History website.
And also generate the "Watched things" tabs on all year websites.

The "GamePlayer.py" Python module generates the JSON database files which are read by the "Played.php" HTML tab generator written in PHP.
In order to generate the "Game sessions played" and "Past registries" tabs on the Play History website.
And also generate the "Game sessions played" tabs on all year websites.

The "Tasks.py" Python module generates the JSON database files which are read by the "Tasks.php" HTML tab generator written in PHP.
In order to generate the "Completed tasks" tab on the Tasks website.
And also generate the "Completed tasks" tabs on all year websites.

The "Years.py" Python module generates the year summary files read by the "Summary.php" HTML tab generator written in PHP.
In order to generate the "Summary" tabs on all year websites website.

PHP: Connection of PHP files to Python modules

Translating

Check the Code of Conduct.
You can now translate my modules, translate them by adding the ISO 639-1 language code to the "Texts.json" of the module you want to translate.

Soon I will make a module on the root folder called "Translator_Helper.py", to help you translate my modules to your language.
Allowing you to choose your native language or the language you know, to translate to, choose a module to translate, and show all of the English texts for you to translate.
For you to translate my modules, you need to know English first, to understand the English texts of the modules and translate them.

You can find more explanation about how to translate and how the "Language" class works in the Translating file.
Each module also has a "Descriptions.json" file on its root folder, I ask you to translate the descriptions of the module you are translating.

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages