Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
【PyCon2019】 Python製シェルXonshの紹介
vaaaaanquish
September 17, 2019
Technology
6
7k
【PyCon2019】 Python製シェルXonshの紹介
PyCon2019登壇資料です。
https://pycon.jp/2019/sessions
vaaaaanquish
September 17, 2019
Tweet
Share
More Decks by vaaaaanquish
See All by vaaaaanquish
CADDi AI LabにおけるマネージドなMLOps
vaaaaanquish
2
1.4k
RustとCADDi AI LabとML
vaaaaanquish
0
18
機械学習OSSの変遷と未来
vaaaaanquish
1
1.6k
文字列(ダジャレを言いシャレ)
vaaaaanquish
0
11k
xonshとかいうshellの話
vaaaaanquish
1
840
gokartの運用と課題について
vaaaaanquish
4
10k
【ML@Loft #6】ゼロベースからの論文レコメンドシステムの構築
vaaaaanquish
5
6.8k
宇宙誕生の歴史と人類が赤ポチという到達点に至るまで
vaaaaanquish
0
1.5k
機械学習エンジニアの実情とキャリアの話
vaaaaanquish
10
6.7k
Other Decks in Technology
See All in Technology
Custom AppをIP制限ありのままで審査に通す方法
yusuga
0
280
MRTK3 - DataBinding and Theming 入門
futo23
0
140
ひとりでも安定して 組織を変える活動を続けていくための ストレスマネジメント
pastelinc
0
750
What's Data Lake ? Azure Data Lake best practice
ryomaru0825
2
720
MoT TechTalk #12 タクシーアプリ『GO』大規模トラフィックを捌く分析データ基盤の全容に迫る!
mot_techtalk
0
290
視座とアジャイル / shiza_and_agile
kyoshimoto
0
180
データをモデリングしていたら、組織をモデリングし始めた話 / engineers-in-carta-vol3-data-engineer
pei0804
4
3.2k
QiitaConference2022
fuwasegu
0
130
出張スクラムマスターとしての FEARLESS CHANGE な生き方
naitosatoshi
1
1.2k
Scrum Fest Osaka 2022 フルリモート下でのチームビルディング
moritamasami
2
920
Compose の LazyColumn パフォーマンス改善で取り組んだこと
tomoya0x00
0
210
noteの品質課題に立ち上げ直後のQAチームが挑んだ軌跡
hiroki_tanaka
1
190
Featured
See All Featured
The Pragmatic Product Professional
lauravandoore
19
2.9k
Building Applications with DynamoDB
mza
83
4.7k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
29
4.3k
Gamification - CAS2011
davidbonilla
75
3.9k
JazzCon 2018 Closing Keynote - Leadership for the Reluctant Leader
reverentgeek
172
8.4k
Rebuilding a faster, lazier Slack
samanthasiow
62
7.2k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
269
11k
The Invisible Customer
myddelton
110
11k
From Idea to $5000 a Month in 5 Months
shpigford
373
44k
The Illustrated Children's Guide to Kubernetes
chrisshort
14
36k
How GitHub Uses GitHub to Build GitHub
holman
465
280k
How to Ace a Technical Interview
jacobian
265
21k
Transcript
【PyCon2019】 Python製シェルXonshの紹介 $ M3, inc. $ Machine Learning Engineer $
Shunsuke Kawai ( @vaaaaanquish )
$ What’s Xonsh ? • Japanese:コンシュ • “Python” + “Shell
Script” on Shell • Made by Python ◦ Cross-platform ◦ Unix-gazing ◦ let’s start:pip install xonsh
$ Why Xonsh ? • Shell Scriptで複雑な処理を行いたくない! • Pythonが持つライブラリ等の資源、簡易な構文を活用できる Shell環境が欲しい!
fish xonsh POSIX-compatible Python Bourne Shell (sh)
$ Settable by Python • .xonshrc by Python and Shell
Script ◦ $PROMPT ◦ Key binding ◦ Completer … and more • Override built-in xonsh function by Python
$ Use Python property
$ Q&A Xonsh Q1 : 既存のshell scriptは読める? A : source_bashコマンドによって概ね使える
Q2 : 遅くない? A : Pythonの起動が遅いためxonshの起動は遅い。 動作はマシンスペック次第なので設定の勘所あり。 現在async/await対応中。 Q3 : Pythonがshellに最適な言語なの? A : 最適とは言っていない。 インタプリタ型言語とshell scriptを混合して資源を活用できているshellという立ち位置。 Q4 : 開発状況は? A : 2019/09/13時点で v0.9.11。いくつかのissueを超えて v1.0.0を予定。
$ Thank you for listening and Xonsh • Refernce ◦
xonsh document: https://xon.sh/index.html ◦ v1.0 Tracking issue: https://github.com/xonsh/xonsh/issues/3234 ◦ logo ▪ bash : https://github.com/odb/official-bash-logo ▪ zsh: http://zsh.sourceforge.net/ ▪ fish: https://github.com/laughedelic/fish_logo ▪ ipython : https://ipython.org/ ▪ jupyter: https://github.com/jupyter/design/tree/master/logos ▪ python: https://www.python.org/community/logos/ ◦ Scopatz - Interview: https://www.johndcook.com/blog/2015/11/15/xonsh/ ◦ Scopatz - PyCon 2016: https://youtu.be/uaje5I22kgE ◦ Scopatz - podcast: https://www.podcastinit.com/episode-29-anthony-scopatz-on-xonsh/ ◦ Forsyth, Scopatz - Scipy 2019 Tutorial: https://youtu.be/ujo9sbqHFqw