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.1k
【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
16
9.2k
Tech LT #4 人を選ぶ技術
vaaaaanquish
3
3.7k
CADDi AI LabにおけるマネージドなMLOps
vaaaaanquish
2
3.1k
RustとCADDi AI LabとML
vaaaaanquish
1
740
機械学習OSSの変遷と未来
vaaaaanquish
2
3.1k
文字列(ダジャレを言いシャレ)
vaaaaanquish
1
14k
xonshとかいうshellの話
vaaaaanquish
1
1.5k
gokartの運用と課題について
vaaaaanquish
5
13k
【ML@Loft #6】ゼロベースからの論文レコメンドシステムの構築
vaaaaanquish
5
7.5k
Other Decks in Technology
See All in Technology
JAWS-UG Bedrock Claude Night
yamahiro
3
690
Handling focus in 2024
tahia910
0
220
Autonomous Database Cloud 技術詳細 / adb-s_technical_detail_jp
oracle4engineer
PRO
15
35k
Android Target SDK 35 (Android 15) 対応の概要
akkie76
0
150
MapLibreとAmazon Location Service
dayjournal
1
180
Building a RAG-poweredAI chat appwith Python and VS Code
pamelafox
0
140
よく聞くけど使ったことないソフトウェアNo.1 KafkaとSnowflake
foursue
4
500
Google Cloud Next '24 Recap(Cloud Run/k8s)
mokocm
0
330
2024春 注目のWeb系 OSS & SaaS 3選
makies
0
170
AWSに詳しくない人でも始められるコスト最適化ガイド
yuhta28
2
280
障害対応をちょっとずつよくしていくための 演習の作りかた
heleeen
1
1.6k
今年のRubyKaigiはProfiler Year🤘
osyoyu
0
340
Featured
See All Featured
Unsuck your backbone
ammeep
663
57k
How STYLIGHT went responsive
nonsquared
92
4.8k
GraphQLとの向き合い方2022年版
quramy
33
12k
The Pragmatic Product Professional
lauravandoore
26
5.8k
The Language of Interfaces
destraynor
151
23k
What's in a price? How to price your products and services
michaelherold
238
11k
Embracing the Ebb and Flow
colly
80
4.2k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
11
1k
Building an army of robots
kneath
300
41k
Fashionably flexible responsive web design (full day workshop)
malarkey
398
65k
Building Effective Engineering Teams - LeadDev
addyosmani
32
1.9k
How To Stay Up To Date on Web Technology
chriscoyier
782
250k
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