用 Pyodide 构建 SPA

原文: PyCoder's Weekly - Issue #532

pycoder

  • 220706 Zoom.Quiet(大妈) 用时 13 分钟 完成快译
  • 220706 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄.

Would you like to explore the functional programming side of Python? What are the advantages of this approach, and what tools are built into the language? This week on the show, author Bruce Eckel talks about functional programming in Python.

(是也乎:

Bruce

老戏骨 Bibliography - MindView Exceptional Learning Experiences 写了一系列 Think in 的高手; PS: 只是 Think in Python 一直拖欠没发表...

)

Pyodide leverages WASM to run Python in the browser. In this tutorial, you’ll learn how to build a Single Page Application using Python and Pyodide including how to manipulate the DOM and manage state.

(是也乎:

淦...这就已经有嵌入在 browser 中的 py 应用了...

amirtds/netflix-analysis-spa at part-1

https://netflix-analysis-spa.onrender.com

)

By using the music21 and avro libraries you can create musical scores programmatically. This article runs you through the libraries you need and how to compose your own music.

(是也乎:

arvo

成调不成曲...

)


探讨/吐糟

Discussions

(是也乎:

什么认证最值得? 银行存款过亿?

)


文章/教程/嗯哼

Articles, Tutorials and Talks

In this video course, you’ll build a Python site connectivity checker for the command line. While building this app, you’ll integrate knowledge related to making HTTP requests with standard-library tools, creating command-line interfaces, and managing concurrency with asyncio and aiohttp.

(是也乎:

Connectivity

用 bash 也可以快速完成一个...

)

In this tutorial, you’ll take a deep dive into the theory and practice of queues in programming. Along the way, you’ll get to know the different types of queues, implement them, and then learn about the higher-level queues in Python’s standard library. Be prepared to do a lot of coding.

(是也乎:

Queues

)

Most Python projects require quite some tooling to be installed on your laptop before you can build them. Why isn’t it just as easy as npm install? Learn how pyprojectx can add reproducible, plug-and-play builds to your Python projects.

(是也乎:

.toml ...

)

“Design patterns are not just a way to structure code. They also communicate the problem addressed and how the code or component is intended to be used.” This article describes several patterns often found in machine learning code.

From the basics of getting the current date and time, to becoming a master of time zones and date formatting, this article shows you what you need to know about dates and times in Python.

(是也乎:

Learn Strftime

时间太重要, 以至我们将之折腾到自己都混乱了...

)

The Cloud may be worth considering for your next Python project, but it can be complex to configure. This article shows you how to run a basic Django app on the Google Cloud Platform.

(是也乎:

GCP 虽好, 可惜不存在...

)

An overview of some of the most commonly used Python libraries that provide an easy and intuitive way to transform images. Includes info on Pillow, OpenCV, SimpleITK, and more.

(是也乎:

多数都是老朋友, 就 SimpleITK 比较面生

)

Reindexing DataFrames in Pandas can lead to undesirable degradation of columnar types; StaticFrame offers alternatives that solve this problem.

Using a 160k recipe library and some basic food preferences, you can build a recipe recommendation system with Python, embeddings and FAISS.

(是也乎:

... if simple is good - why complicate?

扎心了...

DUARTE

作者的网站非常 极简...

)


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

探索无依赖的最小 web 框架可以是什么样儿...

)

(是也乎:

叕一个调度器, 不过, 倾向人性化, 而不是性能化, 无法将定期任务控制到 ms 级

)

(是也乎:

叕一个 AST 相关工具

)


📆🐍 活动/大会

Events, MeetUp 真的是全球线下活动组织中心


DAMA

❤️ Happy Pythonic ;-(大妈私人无责任播报)

ACM-O

(是也乎:

谈崩了, 之前通过 ACM 会员可以每年 $25 享受 O'REILLY 在线图书馆服务...现在没了

)


PS:

PPS:

不觉中蟒周刊快译已经到了第11个年头

开始有小伙伴加入承担 pythonisa 周刊的翻译, 从来没提醒过, 可就这么默默坚持下来了...

问为什么:

[皱眉]每周新闻资讯 怎么能错过 
看看有什么新东西 
当有新的发现时:
    what f**k 还能这样玩? 还有这东西?
    每周开彩蛋[吃瓜]

无法同意更多... 很多社区贡献看起来辛苦, 其实受益最多的, 就是主动承担者也.


好文笔,感叹号年度配额: 1/3

投稿/反馈邮箱:

askdama@googlegroups.com

(邮件列表地址, 当成正常邮件发送邮件就好, 不用注册, 不用翻越...)


ZoomQuiet/大妈

就是四处 是也乎,( ̄▽ ̄) 的那个大妈:

私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
历史吐糟: Chaos42 (订阅号 PythoniCamp)

as 创始组织者:
    PyChina (订阅号: PyChinaOrg)
    本地社区: 
        GDG珠海 (订阅号: GDG-ZhuHai)
        TFUG珠海 (订阅号: ZH_TFUG)


Comments


大妈的多重宇宙 - YouTube

全新自媒体系列...科学幻想,读书,说故事...
点击注册~> 获得 100$ 体验券: DigitalOcean Referral Badge

订阅 substack 体验古早写作:
Zoom.Quiet’s Chaos42 | Substack


关注公众号, 持续获得相关各种嗯哼:
zoomquiet


蟒营®编程思维提高班Python版

**2021.01.11** 因大妈再次创业暂停定期开设, 转换为预约触发:
  • + 任何问题, 随时邮件提问可也:
    askdama@googlegroups.com
-->