Package: sakyum
SakyumAn extension of flask web framework that erase the complexity of structuring flask project blueprint, packages, and other annoying stuffs.InstallationInstall and update the latest release frompypi. Basically the library was uploaded usingsdist(Source Distribution) andbdist_wheel(Built Distribution), this software (library) as fromv0.0.9it is compatible and also tested withwindows OSand others as well, such aslinux,macOSand possibly some others too!.pip install --upgrade sakyumCreate flask project using sakyumAfter the installation paste the following command on your termianlpython -c "from sakyum import project; project('schoolsite')"This will create a project calledschoolsitenow cd into theschoolsitedirectory, if you dolswithin the directory you just enter you will see a module calledthunder.pyand some directories (some in the form of package)media,static,templatesand a directory with the same name of your base directory name, in our case it isschoolsite.Boot up the flask server by running the below commandpython thunder.py bootNow visit the local urlhttp://127.0.0.1:5000this will show you index page of your projectCreate flask app within your project (schoolsite)For you to start an app within your projectschoolsiteshutdown the flask development server by pressing ( CTRL+C ) and then run the following command, by giving the name you want your app to be, in our case we will call our appexampython thunder.py create_app -a examthis will create an app (a new package calledexam) within your project(schoolsite)Register an appOnce the app is created open a fileschoolsite/routes.pyand import yourexamblueprint which is in (exam/views.py), default name given to an app blueprint, is the app name so ourexamapp blueprint name isexam, after importing it, append (register) the app blueprint in a list calledreg_blueprintsin that same file ofschoolsite/routes.pyimporting blueprintfromexam.viewsimportexamregistering blueprintreg_blueprints=[blueprint.default,blueprint.errors,blueprint.auth,base,exam,]once you register the app, boot up the flask webserver again bypython thunder.py bootvisithttp://127.0.0.1:5000which is your project landing pagevisithttp://127.0.0.1:5000/examthis will take you to your app landing page (exam)visithttp://127.0.0.1:5000/adminthis will take you to admin page. From there you are ready to go.See more documentationshere!Sakyum default pageUseful linksDocumentation:https://sakyum.readthedocs.ioRepository:https://github.com/usmanmusa1920/sakyumDocker example:https://github.com/usmanmusa1920/sakyum/tree/master/example/sakyum-dockerPull requests are welcomeChange Log0.0.12 (23/june/2023)Twelveth ReleaseTesting for OS compatibility also again! again!! again!!!Eleventh ReleaseTesting for OS compatibility again! again!! again!!!Tenth ReleaseTesting for OS compatibility againNineth ReleaseFixing bugsFixing v0.0.8 bugs for OS compatibility, and also tested on windows OSEight ReleaseOS compatibilityMaking sakyum to be compatible with windows OS as well as other OSSeventh ReleaseThis release mostly is for adding more docs and examples.Sixth ReleaseAlembic is included as dependency (in the require module list).Fifth ReleaseIn fifith release, we handle how default user file system tricks is, things like when user change his profile picture.Fourth ReleaseIn this release we handle how we can customise the admin html page by inheriting (extends) it in our project templates/admin directory, and the admin page on how to bind models in the admin. Also I refactor other libraries that this package needs with their corresponding versions in the setup.py and requirements.txt files. In this release good documentations is well packed.Database migration is added usingalembicSome error pages, default page were added but still you can customise it in your project sub folder (the package with the same name of your project in your project directory) in a file calledroute.py. Also an admin directory within your project templates folder is added too!Possibly other well things are added which include auth system forusersand more.