semvec/pypi-packages huggingface dataset:
autodiff-aabj 1.0.1
A simple autodiff library.
Requires Python: >=3.6

# cs107-FinalProject (Group 16)
[![Build Status](https://app.travis-ci.com/cs107-sweet-16/cs107-FinalProject.svg?token=zpQuHJuMvMYnq6JxSWdy&branch=main)](https://app.travis-ci.com/cs107-sweet-16/cs107-FinalProject)
[![codecov](https://codecov.io/gh/cs107-sweet-16/cs107-FinalProject/branch/main/graph/badge.svg?token=UKD2RTYMY0)](https://codecov.io/gh/cs107-sweet-16/cs107-FinalProject)

Team members:
Bhawesh	Kumar	bhawesh_kumar@hsph.harvard.edu

Jingxing	Fang	jfang1@fas.harvard.edu

Albert	Ge	age@fas.harvard.edu

Anna	Wuest	awuest@hsph.harvard.edu
aldServer 0.0.2
aldServer - a template server
Requires Python: >=3

## aldServer - a template server

Inspired by Flask and Jinja. Super easy to use!

#### Installation
```bash
pip3 install aldSever
```

#### Simple Code Example
```python 
# imports
from aldServerimport createServer, Route, Debug
from aldServerimport RESPONSE, CONTENT_TYPE, CHARSET

# server debugging (false by default)
Debug.debug = True 

# crete route obj
route = Route()

# create static folder 
route.static_folder('/static')

# create simple route
@route.create_route('/api/v2/json', CONTENT_TYPE.JSON, RESPONSE.OK, CHARSET.UTF8)
def json_test():
    return "{'json': 'is the best'}"

# simple templating, passing arguments
@route.create_route('/me', CONTENT_TYPE.TEXT_HTML, RESPONSE.OK, CHARSET.UTF8)
def template_test():
    return route.render_template('/me.html', name="aldison")
    ''' - me.html file:
       <h3>Hello my name is {{%name%}},</h3>
       <h4>and this server is made with aldServer.</h4> 
    '''
    ''' - me.html file after rendering
       <h3>Hello my name is aldison,</h3>
       <h4>and this server is made with aldServer.</h4> 
    '''

# create the server
server = createServer(hostname="localhost", port=3333)
# run the creted server
server.run()
```

#### Template Supports

- Different loops:

```python
#1 -  to_dos - is given as a parameter
{%for to_do in to_dos%}
    <li>{{to_do}}</li>
{%endloop%}

#2
{%for i in range(5)%}
    <li>{{i}}</li>
{%endloop%}

#3
{%for i, x in enumerate(range(5))%}
    <li>{{i}} - {{x}}</li>
{%endloop%}

#4
{%for i in range(5)%}
    {{ i }} x 7 = {{i * 7}} <br>
{%endloop%}

#5
{%for item in ["hello", "world"]}
    <li>{{item}}</li>
{%endloop%}
```

- Printing variables 
```python 
<h3>Hello my name is {{%name%}},</h3>
<h4>and this server is made with aldServer.</h4> 
```