KZKY memo

自分用メモ.

2015-07-05から1日間の記事一覧

python: pandas 基本

基本 Rからnumpyに入った人にとってDataFrameがないのは痛い. pythonのlibraryにpandasというのがあって,それでDataFrame-likeなオブジェクトを扱える. データ構造 -------------------------------------------------- Dimensions Name Description ----…

python: Supervisord 基本

Supervisord ClouderaManagerのこれを使用してHadoop Serviceを起動している. subprocessesの管理もできるので分散システムに関しては向いている. 日本語の記事がかなりまとまっているので基本はそれを参考 調べるときは本家を見る Configはini形式 環境 U…

Celery 基本

前提 OS: ubuntu14.04 インストール sudo apt-get install rabbitmq-server python-celery python-celery-doc 基本 celeryはmessage passing framework message brokerを必要とする Broker 選べる RabbitMQ Redis SQLAlchemy, Django Database (not recommen…

Flask-Auth 基本

Pluginの列挙 DIY Flask-Login Flask-Auth FlaskSecurity DIY http://blog.miguelgrinberg.com/post/restful-authentication-with-flask Flask-Login https://blog.openshift.com/use-flask-login-to-add-user-authentication-to-your-python-application/ …

Flask-SocketIO 基本

Installation pip install flask-socketio まずはこちらをやる 短いから WebSocket 基本 Communication protocol in HTML5 Permanent connection Bi-directional communication Either client or server can initiate communication Flask-Socketsとの違い F…

Flask-SQLAlchemy 基本

SQLAlchemyの基本 ORM: Object Relational Mapper DMP: Data Mapper Pattern; classes mapped to a database Quick Start https://pythonhosted.org/Flask-SQLAlchemy/quickstart.html で事たりる hello_sqlalchemy_mysql.py from flask import Flask from f…

Flask基本

Installation 環境 Ubuntu14.04 pip install $ pip install Flask $ python hello.py * Running on http://localhost:5000/ Getting Started Super Basics from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello World…