タグ

Pythonとproxyに関するraimon49のブックマーク (3)

  • Python+SSHな自動化・デプロイメントツールFabricを活用するTips

    こんにちは。CTOの馬場です。 みんな大好きFabricのTipsです。 Welcome to Fabric! -- Fabric documentation よくデプロイツールとして紹介されますが、 自動化のためのPython+SSH+コマンド実行フレームワークとして柔軟に使えて超便利です。 基的には 手元でのコマンド実行 SSHごしのリモートサーバでのコマンド実行 SSHごしのリモートサーバでsudoしてコマンド実行 ができるツールなのですが、使い方の例を紹介します。 間違いなどあればお近くのハートビーツ社員か @netmarkjp に教えていただけると嬉しいです。 Python 2.7.10 + Fabric 1.10.2 + Paramiko 1.15.2で動作確認しました。 複数のサーバに対して同じユーザ・パスワードでログインする ユーザ名やパスワードを一括指定できます。 鍵認

    Python+SSHな自動化・デプロイメントツールFabricを活用するTips
    raimon49
    raimon49 2015/08/06
    env.gatewayで踏み台経由
  • MapProxy

    WMS sources (1.0.0–1.3.0)WMTS/TMS sourcesMapserver and Mapnik configurationsany TileCache, Google Maps or Bing compatible sourceArcGIS REST servers and compact cache file cache tiles in the filesystem, MBTiles/SQLite, ArcGIS Compact Cache, S3, Redis, Riak, or CouchDBreproject WMS and tile sources to other SRSstores identical tiles just once (e.g. ocean tiles)embed watermark in tilesmerge multiple

    raimon49
    raimon49 2014/03/23
    >MapProxy is also a full compliant WMS server and supports any WMS client (desktop and web).
  • urllib, urllib2を使ってGET/POST - YAMAGUCHI::weblog

    注意(追記:2013.03.22) もうこの情報は古いので、いまはHTTP系の処理はrequestsを使ったほうがいいです。 Requests: HTTP for Humans — Requests 1.1.0 documentation 動機 Web API使ってるとでてくる使い回しをメモ。 方法 まずはオーソドックスに GET import urllib url = 'http://d.hatena.ne.jp/ymotongpoo' params = urllib.urlencode({'hoge':1, 'fuga':2}) f = urllib.urlopen(url + '?' + params) # paramsはhoge=1&fuga=2の形になっている print f.read() POST import urllib url = 'http://d.hatena.ne.

    urllib, urllib2を使ってGET/POST - YAMAGUCHI::weblog
    raimon49
    raimon49 2011/04/07
    プロキシ経由, 認証のレシピ
  • 1