Menu

Tree [a193c7] main /
 History

HTTPS access


File Date Author Commit
 build 2021-06-21 Siddhesh Agarwal Siddhesh Agarwal [f62764] Add files via upload
 src 2021-06-21 Siddhesh Agarwal Siddhesh Agarwal [56766c] Add files via upload
 test 2021-06-21 Siddhesh Agarwal Siddhesh Agarwal [213594] Update tests.py
 Changelog.md 2021-06-21 Siddhesh Agarwal Siddhesh Agarwal [6aad3e] Rename changelog.md to Changelog.md
 LICENSE 2021-06-16 pranavr2003 pranavr2003 [ea0ee4] Update LICENSE
 MANIFEST.in 2021-06-21 Siddhesh Agarwal Siddhesh Agarwal [9adb8c] Update MANIFEST.in
 README.md 2021-06-21 pranavr2003 pranavr2003 [a193c7] Update README.md
 logo.jpg 2021-06-19 pranavr2003 pranavr2003 [01b6b2] updated logo
 pyproject.toml 2021-06-21 Siddhesh Agarwal Siddhesh Agarwal [a99a18] Update pyproject.toml
 setup.py 2021-06-21 Siddhesh Agarwal Siddhesh Agarwal [4770c1] Update setup.py

Read Me

sierra

sierra logo

A lightweight Python framework for building and Integrating Web Applications.
Sierra is a Python3 library for building and integrating web applications with HTML and CSS using simple enough syntax. You can develop your web applications with Python, taking advantage of its functionalities and integrating them to the fullest.


Documentation

Check out the Official documentation of Sierra

Check out a comprehensive example of its use


Installation

Method 1: pip install

type the below command in terminal:

pip install sierra

Method 2: Download ZIP file

To download the zip file: click on the download button and then click on the Download ZIP button. The zip file will get downloaded in the downloads folder.

To unzip the zip file: open the zipped folder, then drag the file or folder from the zipped folder to a new location. To unzip all the contents of the zipped folder, press and hold (or right-click) the folder, select Extract All. Development can be done in sierra-main/sierra and not in sierra-main/``src/sierra
Check out doc.py for a better view on how to start off

Method 3: Clone repository

To clone the repository, type:

gh repo clone BrainStormYourWayIn/sierra
or
git clone https://github.com/BrainStormYourWayIn/sierra.git

in your terminal/shell.


Sierra

from sierra import *

title('This is how you enter the title of your web application')
head('I love Sierra!', type='h1', color='rgb(31, 48, 92)')
openBody(background_color='green', opacity=0.8)
a = tTags(div_class='newClass')
b = tTags(p=True)
a.start_div()
b.css(font_family='Times New Roman', color='purple')
b.start_p('This is a paragraph under div "newClass!" CSS can be added with .css!', close=True)
closeTags('div')

abc = 'stuff!'
c = ['This', 'is', 'easy', abc]

addBullets(points=c, ul=False, type='i')

openTags('XMLTag')
b.start_p('This is an  XML tag', True)
writeCSS('XMLTag', {"font-size": "15px", "background-color": "rgb(240, 237, 228)"})
b.start_p('You can enter custom CSS styling arguments like this, or use cTags() to make it easy!', True)
closeTags('XMLTag')

autoPrettify()

Outputs in index.html and style.css:

<!DOCTYPE html>
<html lang="en">
 <meta charset="utf-8"/>
 <head>
  <title> This is how you enter the title of your web application </title>
  <link href="style.css" rel="stylesheet"/>
  <h1>I love Sierra!</h1>
 </head>
 <body>
  <div class="newClass">
   <p>
    This is a paragraph under div "newClass!" CSS can be added with .css!
   </p>
  </div>
  <ol start="1" type="i">
   <li>This</li>
   <li>is</li>
   <li>easy</li>
   <li>stuff!</li>
  </ol>
  <xmltag>
   <p>
    This is an  XML tag
   </p>
   <p>
    You can enter custom CSS styling arguments like this, or use cTags() to make it easy!
   </p>
  </xmltag>
 </body>
</html>
h1 {
    color: rgb(31, 48, 92);
    font-family: Arial;
    text-align: left;
    font-size: False;
    background-color: False;
    padding: False;
    height: False;
    width: False;
    line-break: False;
    line-height: False;
    border: False;
    margin: False;
}
body {
    background: False;
    background-color: green;
    background-image: False;
    opacity: 0.8;
    background-size: cover;
    background-attachment: fixed;
    background-position: False;
    background-repeat: False;
}
p {
    color: purple;
    font-family: Times New Roman;
    font-weight: False;
    text-align: False;
    font-size: False;
    background-color: False;
    background: False;
    margin-top: False;
    margin-bottom: False;
    margin-left: False;
    margin-right: False;
    border: False;
    display: block;
    padding: False;
    height: False;
    width: False;
    line-break: False;
    line-height: False;
    overflow: False;
    margin: False;
    box-shadow: False;
}
XMLTag {
    font-size: 15px;
    background-color: rgb(240, 237, 228);
}

See the official documentation of Sierra for more!


License

Copyright 2021 BrainStormYourWayIn

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Pandas (pandas)

Copyright (c) 2008-2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Copyright (c) 2011-2020, Open source contributors.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.