Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
【PyCon2019】 Python製シェルXonshの紹介
Search
vaaaaanquish
September 17, 2019
Technology
6
8.3k
【PyCon2019】 Python製シェルXonshの紹介
PyCon2019登壇資料です。
https://pycon.jp/2019/sessions
vaaaaanquish
September 17, 2019
Tweet
Share
More Decks by vaaaaanquish
See All by vaaaaanquish
Pythonのパッケージ管理の中級者の壁を超える stapy#98
vaaaaanquish
18
19k
Tech LT #4 人を選ぶ技術
vaaaaanquish
3
3.9k
CADDi AI LabにおけるマネージドなMLOps
vaaaaanquish
2
3.2k
RustとCADDi AI LabとML
vaaaaanquish
1
810
機械学習OSSの変遷と未来
vaaaaanquish
2
3.4k
文字列(ダジャレを言いシャレ)
vaaaaanquish
1
15k
xonshとかいうshellの話
vaaaaanquish
1
1.6k
gokartの運用と課題について
vaaaaanquish
5
13k
【ML@Loft #6】ゼロベースからの論文レコメンドシステムの構築
vaaaaanquish
5
7.6k
Other Decks in Technology
See All in Technology
ゆめみのアクセシビリティの現在地と今後
ryokatsuse
3
290
AIエージェントを現場に導入する目線とは
masahiro_nishimi
1
1.5k
コンテナ・K8s研修 - 後半 Kubernetes 基礎&ハンズオン【MIXI 24新卒技術研修】
mixi_engineers
PRO
1
120
[NIKKEI Tech Talk]Bias for Action!! 実践から学ぶための仕組とコミュニティ / Community for Practice and Learning
kanamasa
0
270
Git 研修 Basic【MIXI 24新卒技術研修】
mixi_engineers
PRO
0
310
楽しくGoを学び合う、LayerXの勉強会文化 / LayerX's study culture of having fun and learning Go together
ar_tama
2
350
データ分析を支える技術 生成AI再入門
ishikawa_satoru
0
380
RAGのサービスをリリースして1年3ヶ月が経ちました
segavvy
4
920
[I/O Extended Android 2024] What`s new in Android 2024
kyeongwan
0
220
20240717_イケコパ代表Copilot_in_Teams会社でこう使ってます
ponponmikankan
2
430
Azure AI ことはじめ
tsubakimoto_s
0
130
ギークの理想が7つ集まるエムスリーで夢を叶えよう - エムスリー株式会社
m3_engineering
1
260
Featured
See All Featured
Making Projects Easy
brettharned
111
5.7k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
20
7.2k
Build your cross-platform service in a week with App Engine
jlugia
227
17k
How to Ace a Technical Interview
jacobian
274
23k
What's in a price? How to price your products and services
michaelherold
239
11k
Testing 201, or: Great Expectations
jmmastey
33
6.9k
Rails Girls Zürich Keynote
gr2m
93
13k
Writing Fast Ruby
sferik
623
60k
Infographics Made Easy
chrislema
238
18k
For a Future-Friendly Web
brad_frost
173
9.2k
Intergalactic Javascript Robots from Outer Space
tanoku
266
26k
Building Adaptive Systems
keathley
34
2k
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