4 Commits
Author SHA1 Message Date
Илья Глазунов 831eee5d01 bump version to 0.7.1
CI/CD Pipeline / lint (push) Successful in 0s
CI/CD Pipeline / test (push) Has been skipped
CI/CD Pipeline / build-and-release (push) Has been skipped
CI/CD Pipeline / notify (push) Successful in 0s
Lint Code / lint (push) Successful in 42s
Build and Release / build (push) Successful in 31s
Build and Release / release (push) Successful in 5s
Run Tests / test (3.12) (push) Successful in 1m0s
Run Tests / test (3.13) (push) Successful in 59s
2025-12-03 02:21:23 +03:00
Илья Глазунов 2f49ee576f test for routing module
Lint Code / lint (push) Failing after 11s
CI/CD Pipeline / lint (push) Successful in 0s
CI/CD Pipeline / test (push) Successful in 0s
CI/CD Pipeline / build-and-release (push) Has been skipped
CI/CD Pipeline / notify (push) Successful in 0s
Run Tests / test (3.12) (push) Failing after 2s
Run Tests / test (3.13) (push) Failing after 1s
2025-12-03 02:20:42 +03:00
Илья Глазунов 2d445462c2 fix in routing
Lint Code / lint (push) Successful in 39s
CI/CD Pipeline / lint (push) Successful in 0s
Run Tests / test (3.12) (push) Successful in 53s
Run Tests / test (3.13) (push) Successful in 51s
CI/CD Pipeline / test (push) Successful in 1s
CI/CD Pipeline / build-and-release (push) Has been skipped
CI/CD Pipeline / notify (push) Successful in 1s
2025-12-03 02:14:05 +03:00
Илья Глазунов 1b462bd5f0 bump version in __init__.py and some changes in .gitignore
Lint Code / lint (push) Successful in 40s
CI/CD Pipeline / lint (push) Successful in 0s
Run Tests / test (3.12) (push) Successful in 54s
Run Tests / test (3.13) (push) Successful in 52s
CI/CD Pipeline / test (push) Successful in 0s
CI/CD Pipeline / build-and-release (push) Has been skipped
CI/CD Pipeline / notify (push) Successful in 0s
2025-12-03 00:30:18 +03:00
6 changed files with 1369 additions and 3 deletions
+4 -1
View File
@@ -10,4 +10,7 @@ logs/*
static/*
.DS_Store
.coverage
.coverage
docs/
dist/
+32
View File
@@ -0,0 +1,32 @@
# PyServe configuration for serving documentation
# Usage: pyserve -c config.docs.yaml
http:
static_dir: ./docs
templates_dir: ./templates
server:
host: 0.0.0.0
port: 8000
backlog: 5
default_root: false
ssl:
enabled: false
logging:
level: INFO
console_output: true
extensions:
- type: routing
config:
regex_locations:
"~*\\.(css)$":
root: "./docs"
cache_control: "public, max-age=3600"
"__default__":
root: "./docs"
index_file: "index.html"
cache_control: "no-cache"
+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "pyserve"
version = "0.7.0"
version = "0.7.1"
description = "Simple HTTP Web server written in Python"
authors = [
{name = "Илья Глазунов",email = "i.glazunov@sapiens.solutions"}
+1 -1
View File
@@ -2,7 +2,7 @@
PyServe - HTTP web server written on Python
"""
__version__ = "0.6.0"
__version__ = "0.7.0"
__author__ = "Ilya Glazunov"
from .server import PyServeServer
+4
View File
@@ -123,6 +123,10 @@ class RequestHandler:
file_path = root / index_file
else:
file_path = root / path
# If path is a directory, look for index file
if file_path.is_dir():
index_file = config.get("index_file", "index.html")
file_path = file_path / index_file
try:
file_path = file_path.resolve()
File diff suppressed because it is too large Load Diff