Example for discussion: https://discuss.streamlit.io/t/how-to-evolve-complex-state-e-g-annotate-data/
Install the requirements.
fastapi==0.42.0
streamlit==0.49.0
uvicorn==0.9.1
Run the server.
| # An Example of how to parse command line arguments in streamlit. | |
| # This is free and unencumbered software released into the public domain. | |
| import os | |
| import sys | |
| import random | |
| import argparse | |
| import streamlit as st | |
| parser = argparse.ArgumentParser(description='This app lists animals') |
| 1)RethinkDB Serverをインストールする。 | |
| 以下のコマンドを実行していけばインストール可能。 | |
| $ source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list | |
| $ wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add - | |
| $ sudo apt-get update | |
| $ sudo apt-get install rethinkdb | |
| 起動してみる。 | |
| $ rethinkdb |
| var fs = require("fs"); | |
| var path = require("path"); | |
| var app = require("app"); | |
| var dialog = require('dialog'); | |
| var BrowserWindow = require('browser-window'); | |
| var ipc = require("ipc"); | |
| function ApplicationContext(title, defaultRoute, filter) { | |
| this.title = title; | |
| this.filter = filter; |
本稿ではNim言語 (旧称: Nimrod) の構文を紹介します。
Nim言語の概要やインストール方法については、ブログ記事があるのでそちらをご参照下さい。
=======
Wensheng Wang, 10/1/11
Source: http://blog.wensheng.org/2011/10/performance-of-flask-tornado-gevent-and.html
When choosing a web framework, I pretty much have eyes set on Tornado. But I heard good things about Flask and Gevent. So I tested the performance of each and combinations of the three. I chose something just a little more advanced than a "Hello World" program to write - one that use templates. Here are the codes: