Skip to main content

VST Utils for fast create web-application

Project description

Small lib for easy generates web-applications.

Quickstart

  1. Install package: pip install vstutils

  2. Create package ‘prj’ with minimal __init__.py and __main__.py

  3. Paste to __init__.py:

    from vstutils.environment import prepare_environment, cmd_execution
    
    __version__ = '1.0.0'
    
    settings = {
        "VST_PROJECT": 'prj',
        "VST_ROOT_URLCONF": 'vstutils.urls',
        "VST_WSGI": 'vstutils.wsgi',
        "VST_PROJECT_GUI_NAME": "Example Project"
    }
    
    prepare_environment(**settings)
  4. Paste to __main__.py:

    from vstutils.environment import cmd_execution, sys
    sys.path.append('./')
    import prj
    
    cmd_execution()
  5. Run python prj runserver 0.0.0.0:8081 –insecure

  6. Enjoy!

See example in test_src/test_proj.

License

Apache Software License

Release history Release notifications | RSS feed

Download files

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

Source Distribution

vstutils-1.1.6.tar.gz (4.2 MB view hashes)

Uploaded Source

Supported by

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