Skip to content

Commit d2a53a9

Browse files
✨ => new cool features added and some breaking changes
1 parent 4dcd9e5 commit d2a53a9

26 files changed

+1235
-572
lines changed

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
### Python template
42
# Byte-compiled / optimized / DLL files
53
__pycache__/
@@ -18,6 +16,7 @@ testing/*
1816
build/
1917
develop-eggs/
2018
dist/
19+
!vivid/router/dist
2120
downloads/
2221
eggs/
2322
.eggs/
@@ -158,4 +157,4 @@ poetry.lock
158157

159158
# Mkdocs
160159

161-
site/
160+
site/

.pre-commit-config.yaml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.3.0
4+
hooks:
5+
- id: check-yaml
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
args:
9+
- --markdown-linebreak-ext=md
10+
- id: check-toml
11+
12+
- repo: https://github.com/pre-commit/pygrep-hooks
13+
rev: v1.9.0
14+
hooks:
15+
- id: python-use-type-annotations
16+
- id: python-check-blanket-noqa
17+
18+
- repo: local
19+
hooks:
20+
- id: isort
21+
name: isort
22+
pass_filenames: false
23+
entry: poetry run isort .
24+
language: python
25+
stages:
26+
- commit
27+
28+
- repo: local
29+
hooks:
30+
- id: black
31+
name: black
32+
pass_filenames: false
33+
entry: poetry run black .
34+
language: python
35+
stages:
36+
- commit
37+
38+
- repo: local
39+
hooks:
40+
- id: ruff
41+
name: ruff
42+
pass_filenames: false
43+
entry: poetry run ruff .
44+
language: python
45+
stages:
46+
- commit
47+
48+
- repo: local
49+
hooks:
50+
- id: mypy
51+
name: mypy
52+
pass_filenames: false
53+
entry: poetry run mypy .
54+
language: python
55+
stages:
56+
- commit
57+
58+
# - repo: local
59+
# hooks:
60+
# - id: changelog
61+
# name: changelog
62+
# pass_filenames: false
63+
# entry: poetry run auto-changelog --template ./templates/custom.jinja2 --tag-prefix v --unreleased
64+
# language: system
65+
# stages:
66+
# - commit

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Changelog
2+
3+
## 1.0.0-alpha2 - 4 Feb, 2024
4+
### new features
5+
- SSG support (static site generation)
6+
### fixes
7+
- renamed router to app for more context
8+
- add logging to framework
9+
- made cli better
10+
### breaking changes
11+
- `router` is now `app`
12+
- `vivid new` is now `vivid init
13+
- `vivid serve` is removed
14+
### removals
15+
- `vivid serve` is removed
16+
### docs
17+
- added more documentation
18+
- renamed `router` to `app` in documentation
19+
### promises
20+
- added guides
21+
22+
## 1.0.0-alpha1 - 1 Feb, 2024
23+
### new features
24+
25+
- File system routing
26+
- Server data fetching support
27+
- Static file serving
28+
- ASGI support

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@ python3 -m pip install vivid
3030
To create a **Vivid** project you need to open a command line and type below command
3131

3232
```
33-
python -m vivid new project -p .
33+
python -m vivid init ...
3434
```
35-
3635
> [!NOTE]
37-
> **-p** is shorthand for **--path**
36+
> Don't forget to replace **...** with your project name
3837
3938
## walkthrough
4039

@@ -44,7 +43,7 @@ you need to export a load function which returns a response, below is given an e
4443
for example **index.py**
4544

4645
```python
47-
from vivid.router import Response
46+
from vivid.app import Response
4847

4948
async def load():
5049
    return Response(200,[], { "name": "John" })

docs/api_reference/app.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
::: vivid.app.App

docs/api_reference/router.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@
1616
To install **Vivid** library, open a command line then write things those are below
1717

1818
```sh
19-
python -m pip install vivid
19+
python -m pip install git+https://github.com/NaviTheCoderboi/vivid.git
2020
```
2121

2222
If the top command isn't working, try this one
2323

2424
```sh
25-
python3 -m pip install vivid
25+
python3 -m pip install git+https://github.com/NaviTheCoderboi/vivid.git
2626
```
2727

2828
## Start quickly by creating project
2929

3030
To create a **Vivid** project you need to open a command line and type below command
3131

3232
```
33-
python -m vivid new project -p .
33+
python -m vivid init ...
3434
```
3535

3636
!!! note "Note"
37-
**-p** is shorthand for **--path**
37+
Don't forget to replace **...** with your project name
3838

3939
## walkthrough
4040

@@ -44,7 +44,7 @@ you need to export a load function which returns a response, below is given an e
4444
for example **index.py**
4545

4646
```python
47-
from vivid.router import Response
47+
from vivid.app import Response
4848

4949
async def load():
5050
    return Response(200,[], { "name": "John" })

mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ extra:
99
social:
1010
- icon: material/github
1111
url: https://github.com/NaviTheCoderboi/vivid
12-
version: 1.0.0-alpha1
12+
version: 1.0.0-alpha2
1313

1414
theme:
1515
name: "material"
@@ -63,6 +63,6 @@ markdown_extensions:
6363
nav:
6464
- Api Reference:
6565
- Http: api_reference/http.md
66-
- Router: api_reference/router.md
66+
- App: api_reference/app.md
6767
- Guides:
6868
- Basic: guides/basic.md

0 commit comments

Comments
 (0)