Skip to main content

扩展 sanic

(sanic Demo)[https://www.osgeo.cn/sanic/sanic/examples.html/]

(task)[https://python.hotexamples.com/zh/examples/sanic/Sanic/add_task/python-sanic-add_task-method-examples.html]

历史记录

0.0.1 初始版本
0.0.2.
0.0.3 优化 baseView 2024-07-26
0.0.4
    baseView: save_file
0.0.5
    优化 result 模块
0.0.6
    增加 sanics.App 类 及 ViewManage
0.0.7
    BaseView : Content-Disposition,zip,head
    get_file_partial 方法
0.0.8 2025-01-08
    修复json中文bug
0.0.9 2025-03-05
    依赖  co6co.web-session
0.0.10 2025-03-24-3-28
    1. 新增 choose
    2. 优化: startApp 方法
    3. 增加主进程与子进程通信
0.0.11 2025-04-07
    1. response_head
0.0.12 2025-04-17
    1. 新增: getconfig for win package
0.0.13 2025-05-28
    1. bug
0.0.14 2026-04-03
    1. 优化: 优化 Worker 类
0.0.15 2026-05-29
    1. 去除 EventDispatcherProcess 的通信方式
    2. 新增: 增加 BaseClsView 类
0.0.16
	1. 移除model 模块
	2. 移除JSON_util
0.1.0
0.1.1
 增加view 中 iter_files 方法

webSocket 测试地址 http://www.blue-zero.com/WebSocket/ http://coolaf.com/tool/chattest

这两个遇到个问题,sanic 一执行 websocket 地址 python 就报异常框(需 c++调试)的框 后经过一个个模块删除后发现是: 在文件夹中有 multidict-6.0.2 模块,pip list 显示确是 6.0.4,直接移除 multidict 发现正常

类属性与对象属性

class A:
    def __init__(self) -> None:
       self.a="12"
       pass

class B(A):
    b:str="abc"
    @classmethod
    def geA(cls) -> str:
        print(cls.a)
        return cls.a

a=A()
print(a.a)

b=B()
b.a="456"
print(b.a,B.a,"b.geA:", b.geA(),"B.geA:",B.geA())

a=A()
print(a.a,A.a)

Release files for co6co.sanic-ext 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for co6co.sanic-ext 0.1.1
File Size Uploaded
co6co_sanic_ext-0.1.1.tar.gz 25.2 kB Details

Release files / co6co_sanic_ext-0.1.1.tar.gz

Download URL co6co_sanic_ext-0.1.1.tar.gz
Size 25.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9669716e64c35e6708007f511cf4b06adde2e003d19102379d42734fe059b6f6
BLAKE2b-256 checksum
How to use checksums
c73bde54398521f51e047f91da2807b4586a7ff95c9161760515dfff3a27c717
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.4

Release history Release notifications | RSS feed

0.1.3

1 release file

0.1.2

1 release file

This release

0.1.1 This release

1 release file

0.1.0

1 release file

0.0.15

1 release file

0.0.14

1 release file

0.0.13

1 release file

0.0.12

1 release file

0.0.11

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page