Skip to main content

web 扩展

Project description

扩展 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

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

co6co.sanic_ext-0.0.6.tar.gz (20.3 kB view details)

Uploaded Source

File details

Details for the file co6co.sanic_ext-0.0.6.tar.gz.

File metadata

  • Download URL: co6co.sanic_ext-0.0.6.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.4

File hashes

Hashes for co6co.sanic_ext-0.0.6.tar.gz
Algorithm Hash digest
SHA256 7cc73b8367bf4b27b32934581554069b5c1c4b9c649b08a6f3b771ae1bdb55a0
MD5 c9b2864ff38f253420813636beca701b
BLAKE2b-256 7ac5d8f9ef1ea0213fae4656c1e4a61ca34aebc7f2f988d36111041e03b21b1b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page