Skip to main content

Tools for optimizing your experience with Google services

Project description

Welcome to the Monolit 2.0.0 !!!

Starting with version 2.0.0, the approach to running JavaScript projects locally was completely changed. Versions 1.n.n__ focused on using pure HTML, CSS, and JavaScript. On the one hand, this could be seen as a plus—novices don't need to understand complex front-end technologies. On the other hand, this feature prevented the library's API from being used for commercial project development, as by early 2026, every company, from startups to big tech corporations, uses a wide range of JavaScript libraries for quick and easy front-end development.

But as mentioned earlier, this is no longer a problem. Almost the entire library code has been rewritten and adapted for standard JavaScript technologies such as React, Vue, and Angular. The essence of these frameworks is that they take the developer's source code and, through complex transformations (transpilation, compilation, etc.), place the compressed code into a group of files. Typically, these files are placed in the build folder, which can also contain a static folder for storing static CSS and JS files. Monolit then works with this compiled folder, not the developer's source code.

And in this part, the approach remains virtually unchanged. The library still requires specific paths (and now multiple paths will be required), and then, via the Flask API, the root file index.html will be returned to the URL localhost:3000/ (which can now be changed if desired). Subsequently, requests for the root HTML file will include all other files, including images, fonts, and static CSS and JS files.

How to install Monolit 2.0.0

The library can be installed using Python’s built-in package manager, pip. Simply type "pip install monolit_local_app" in your terminal, and all necessary packages will be automatically downloaded to your computer.

How to use Monolit 2.0.0

The library's usage hasn't changed dramatically. However, starting with version 2.0.0, the developer will be required to take slightly more responsibility for the process of including compiled files from the build folder. Previously, it was only necessary to specify the path to the folder containing the index.html file. Now, the developer must enter:

  1. Full path to the folder build (compiled js project's folders)
  2. Full path to the file index.html (often found in the root directory build)
  3. Full path to the folder static (also often found in the root directory build)

You can run a JavaScript project from a local server in the following ways:

  1. With function run:
import monolit_local_app as ml

if __name__ == "__main__":
    ml.run(
        "C:\\Users\\User\\Desktop\\Js\\react-app\\build",
        "C:\\Users\\User\\Desktop\\Js\\react-app\\build\\index.html",
        "C:\\Users\\User\\Desktop\\Js\\react-app\\build\\static"
        # ...
        # You can see all aruments list in function's doc-string
    )

The run function will simply start the server host at the given (default local) address.

  1. With class LocalServer (OOP wrapper for run):
import monolit_local_app as ml

class App(ml.LocalServer):
    def process_request(self, request):
        return ml.jsonify({"code": 200})
                                       
    def process_path(self, path):
        return {
            "home": "index.html",
            "www": "index.html"
        }.get(path)
    
if __name__ == "__main__":
    App(
        "C:\\Users\\User\\Desktop\\Js\\react-app\\build",
        "C:\\Users\\User\\Desktop\\Js\\react-app\\build\\index.html",
        "C:\\Users\\User\\Desktop\\Js\\react-app\\build\\static",
    )()
#    ^
#    call object 'App' -> call function '__call__' -> call function 'run'

When objects inheriting from LocalServer are called, their attributes will be passed as arguments to the run function mentioned earlier.

The problems in Monolit 2.0.0

The main issue related to the 'preprocessing' parameter was fixed in version 2.0.2. Many bugs were also fixed and the JSON data exchange mechanism was optimized.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

googledevkit-1.0.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

googledevkit-1.0.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file googledevkit-1.0.0.tar.gz.

File metadata

  • Download URL: googledevkit-1.0.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for googledevkit-1.0.0.tar.gz
Algorithm Hash digest
SHA256 342ec5e89e8292e464abf855aeda23f1cfef24f3579a714370dd646bb9db469e
MD5 a9e694458390baefa1fc47b82916120f
BLAKE2b-256 1632c80a7603946b28e3711160574b5a8ae0feed02ab2902a058aee48dd00fdc

See more details on using hashes here.

File details

Details for the file googledevkit-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: googledevkit-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for googledevkit-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e52dca8c181b66e1df3cac43089deb2f7ca272f8869ece59ae5debdc565d410
MD5 dbd3e9321d6a62a6463f3e88065877b2
BLAKE2b-256 795595fbde0728f99d007c35bf685c6b646ab8622c2ea51b96971d8c2effc6cf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page