Skip to main content

build full-stacked webapps including AI at the speedlight

Project description

Sweetheart

allow building of full-stacked webapps including AI at the speedlight

Introduction

Since Ubuntu20.04 can be installed as a usual softwares within Windows10, it provides an incredible way for any organization to develop, administrate and deploy powerfull responsive webapps on its own local network including AI keeping high capabilities of integration with the already existing tools like databases, ms-excel, sap...

The sweet(heart) script provides a simple and efficient approach to do it in a python/html/css centric way leading you to the best components and best coding practices. Due to the current place of the python language regarding to data handling, calculations and AI, this makes sweetheart a fast and ideal toolkit for evoluting towards the Industry4.0 precepts .

Sweetheart is shared under the CeCILL-C FREE SOFTWARE LICENSE AGREEMENT.

A supercharged heart for the non-expert hands

Sweetheart help you to get coding full power from scratch:

  • easy to learn, easy to use
  • full documentation provided
  • built-in reponsive user interfaces
  • quick and clean prototyping
  • quick and clean deployement
  • ready for maintenable great code quality
  • ready for datacenters, big-data and AI
  • ready for inovation and creativity

The highest quality components that can be adopted by newbies

Included features for starting your projects:

  • backend language: Python3
  • provided database server: MongoDB
  • provided asynchronous webserver: Uvicorn
  • optionnal webserver for static contents: CherryPy
  • provided asgi framework that shines: Starlette
  • optionnal asgi framework for big projects: FastApi
  • responsive user interfaces: Html
  • provided web libs for going fast: Knacss, W3css
  • provided web libs for high-level featuring: Bootstrap4, Vue.js
  • optionnal frontend language: Typescript

And all other nice things you wish using apt, pip and npm: sweetheart comes with the above mentionned package to support you saving time. Your are not forced to use these components, but these are what you should highly consider at first for starting new projects.

Code examples

your first standalone webpage controller written in Python

import sweet

def welcome():
    """render a welcome message"""
    return sweet.html()

sweet.quickstart(welcome)

your first sweet Html webpage including a bit of KNACss

% rebase("sweet.HTML")

<div class="txtcenter">
    <h1>Welcome!</h1>
    <p>get coding full power at the speedlight</p>
</div>

The sweetheart developpement chart

Next table allow to evaluate coding and costs efforts at the statement of sweetheart today.

Matters Coding effort Costs effort
Build responsive webapp with default libs FAST FREE
Build responsive webapp with bootstrap4 MIDDLE FREE
Run MongoDB/webserver on local network FAST FREE
Run MongoDB/webserver as internet services MIDDLE MODERATE
Improve code quality and reinforce security EXPERT CHEAP
Implement AI capabilities MIDDLE MODERATE
Implement SAP gateway MIDDLE MODERATE
Erect and run a dedicated datacenter EXPERT HIGH

Install sweetheart

On Windows10 you have first to open the Windows Store for installing Ubuntu 20.04 LTS and the Windows Terminal.

Generally speaking sweetheart runs on Ubuntu 20.04 LTS. It will works on other Linux OS but it requires in this case some manual tasks for installing usefull dependencies.

Afterwards opening an Ubuntu terminal, the 3 following lines will install all what is needed:

sudo apt install python3-pip
pip3 install sweetheart
python3 -m sweet --init

Note that all resources are now located within the '/opt/sweetheart' directory. Have a look on it now could help you in the next steps for quicker understanding.

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

sweetheart-0.1.0.dev8.tar.gz (13.5 kB view hashes)

Uploaded Source

Built Distribution

sweetheart-0.1.0.dev8-py3-none-any.whl (26.6 kB view hashes)

Uploaded Python 3

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