semvec/pypi-packages huggingface dataset:
tysite 0.0.4
package to create test websites
Requires Python: >=3.6

# tysite 
### python package to make test websites
# usage:
```python
from tysite import website
@website
def main(route):
    if route=='/':
        return '<h1>first page</h1>'
    elif route=='/admin':
        return '<h1>admin page</h1>'
    else:
        return '<h1>404</h1><h3>file not found</h3>'
main(host='127.0.0.1', port=9000)#default
```
# using html template
```python
from tysite import website
from tysite.temp import new_template
@website
def main(route):
    if route == '/':
        return new_template('home.html')
    else:
        return new_template('404.html')
main(host='127.0.0.1', port=9000)#default
```
# from cmd
```
$ tysite run filename.py
```
# running a test site
```
$ tysite testsite
```
### what's new
*fixed some bugs<br/>
*added calling package from command line<br/>
tysite can only test site can't publish<br/>
*maybe in the future*