[ConSalad 05] from banksalad import python

[ConSalad 05] from banksalad import python

[5회차 콘샐러드]에서 발표한 [from banksalad import python] 발표 자료입니다.

6940536421f1077acc980ec9a78393e1?s=128

Sunghyun Hwang

August 24, 2019
Tweet

Transcript

  1. from banksalad import python Sunghyun Hwang

  2. • I ❤ Python (2014~) • I " ߛ௼࢟۞٘ (2014

    ~) • ߛ௼࢟۞٘ ࢲ࠺झ ୡӝ ѐߊਸ ׸׼ • ߛ௼࢟۞٘ ݃੉௼۽ ࢲ࠺झ ੹߈੄ ࢸ҅ ߂ ѐߊਸ ׸׼ • Twitter @_sunghyunzz / GitHub @sunghyunzz ߊ಴੗
  3. য়ט ߊ಴ח 1. ߛ௼࢟۞٘ܳ ୡӝী ٜ݅ݴ ղ۷؍ ӝࣿ ੄ࢎѾ੿ਸ ࢸݺೞҊ

    2. Ӓ җ੿ীࢲ য૵׮ Pythonਸ ই૒ب ੜ ॳҊ ੓ח૑ 3. ӒܻҊ ߛ௼࢟۞٘ য٣ী যڌѱ Pythonਸ ഝਊೞҊ ੓ח૑
  4. 2014-2015

  5. 2015 ߛ௼࢟۞٘ ߡ੹ 1 • द੘਷ 5ݺ • ੉۠ Ѣ

    ٜ݅যࠁݶ যڄө? • ஠٘ ୶ୌ ࢲ࠺झ
  6. 2015 ߛ௼࢟۞٘ ߡ੹ 1 • द੘਷ 5ݺ • ੉۠ Ѣ

    ٜ݅যࠁݶ যڄө? • ஠٘ ୶ୌ ࢲ࠺झ
  7. 2015 ߛ௼࢟۞٘ ߡ੹ 1 • द੘਷ 5ݺ • ੉۠ Ѣ

    ٜ݅যࠁݶ যڄө? • ஠٘ ୶ୌ ࢲ࠺झ
  8. None
  9. ""

  10. None
  11. ୶ୌ৘࢚ো࢑۝      ഥ  ୶ୌࣗਃदр T޷݅

  12. ୶ୌ৘࢚ো࢑۝      ഥ  ୶ୌࣗਃदр T޷݅

    " "
  13. ୶ୌ৘࢚ো࢑۝      ഥ  ୶ୌࣗਃदр T޷݅

    " "
  14. ୶ୌ৘࢚ো࢑۝      ഥ  ୶ୌࣗਃदр T޷݅

    " "
  15. ߡ੹ 1 ঱যܳ ੜޅ Ҏۄ ݎೡ ഛܫ ҳܽ ࢲ࠺झܳ ٜ݅য

    ݎೡ ഛܫ
  16. ߡ੹ 1 ঱যܳ ੜޅ Ҏۄ ݎೡ ഛܫ ҳܽ ࢲ࠺झܳ ٜ݅য

    ݎೡ ഛܫ A P D O
  17. ߡ੹ 1

  18. ߡ੹ 1 • ஠٘ ୶ୌਸ ೞ۰Ҋ ஠٘ܳ DBীࢲ ࠛ۞য়חؘ दр੉

    ׮ х • ਋ܻо ߓ਍ Ѫ • ഌఖਸ ҅࢑ೞӝ ੹ী ஠٘ ؘ੉ఠо ցޖ ழࢲ पदрਵ۽ ഝਊೞӝ ൨ٜ׮ • ੉Ѥ ੌױ਷ DB੄ ؘ੉ఠܳ যڌѱ ࡅܰѱ ୊ܻೡ Ѫੋ૑ী ؀ೠ ޙઁҳա
  19. ߡ੹ 2 • DBীࢲ ؘ੉ఠܳ оઉয়ח ѱ ইפۄ ҅࢑ оמೠ

    ഋక۽ நय೧ࢲ ࢎਊ • ஠٘ ഌఖ ؘ੉ఠח ࠼ߣೞѱ ߄Շח ؘ੉ఠо ইש
  20. ߡ੹ 2 • Redis/Memcached vs Ӗ۽ߥ • Ӗ۽ߥ਷ ഛप൤ উ౭

    ಁఢ • Ӓؘ۠ ੉ উ౭ ಁఢ ٸޙী ݎೡө? (ࢲ࠺झо ҳ۰ࢲ ݎೞ૑ ঋਸө?) • ೞܖۄب ࡈܻ పझ౟೧ࠁҊ ࢎস ੽ח ѱ ի૑ ঋਸө?
  21. ߡ੹ 2 • Redis/Memcached vs Ӗ۽ߥ • Ӗ۽ߥ਷ ഛप൤ উ౭

    ಁఢ • Ӓؘ۠ ੉ উ౭ ಁఢ ٸޙী ݎೡө? (ࢲ࠺झо ҳ۰ࢲ ݎೞ૑ ঋਸө?) • ೞܖۄب ࡈܻ పझ౟೧ࠁҊ ࢎস ੽ח ѱ ի૑ ঋਸө?
  22. ߡ੹ 2 • Redis/Memcached vs Ӗ۽ߥ • Ӗ۽ߥ਷ ഛप൤ উ౭

    ಁఢ • Ӓؘ۠ ੉ উ౭ ಁఢ ٸޙী ݎೡө? (ࢲ࠺झо ҳ۰ࢲ ݎೞ૑ ঋਸө?) • ೞܖۄب ࡈܻ పझ౟೧ࠁҊ ࢎস ੽ח ѱ ի૑ ঋਸө?
  23. ߡ੹ 2 • Redis/Memcached vs Ӗ۽ߥ • Ӗ۽ߥ਷ ഛप൤ উ౭

    ಁఢ • Ӓؘ۠ ੉ উ౭ ಁఢ ٸޙী ݎೡө? (ࢲ࠺झо ҳ۰ࢲ ݎೞ૑ ঋਸө?) • ೞܖۄب ࡈܻ పझ౟೧ࠁҊ ࢎস ੽ח ѱ ի૑ ঋਸө? A P D O
  24. ߡ੹ 2 • Redis/Memcached vs Ӗ۽ߥ • Ӗ۽ߥ਷ ഛप൤ উ౭

    ಁఢ • Ӓؘ۠ ੉ উ౭ ಁఢ ٸޙী ݎೡө? (ࢲ࠺झо ҳ۰ࢲ ݎೞ૑ ঋਸө?) • ೞܖۄب ࡈܻ పझ౟೧ࠁҊ ࢎস ੽ח ѱ ի૑ ঋਸө? A P D O
  25. ߡ੹ 2 • Ӗ۽ߥ dictীࢲ ч ࠛ۞৬ যڌѱٚ ҅࢑ೞب۾ ݅ٝ

    • ই઱ ބद וܻ૑݅ ೠ 10ୡ ӝ׮ܻݶ Ѿҗо աয়ӟ ೣ
  26. ߡ੹ 2 • Ӗ۽ߥ dictীࢲ ч ࠛ۞৬ যڌѱٚ ҅࢑ೞب۾ ݅ٝ

    • ই઱ ބद וܻ૑݅ ೠ 10ୡ ӝ׮ܻݶ Ѿҗо աয়ӟ ೣ
  27. ߡ੹ 2

  28. ߡ੹ 2 • ೠߣ ୹द೧ࠁפ ೠ ׳ী 100ݺ ੿ب ॹ

    (যڌѱ য়न Ѥ૑ ցޖ नӝ) • ҅࢑ ۽૒ ߡӒ ৻ী ௾ ޙઁח হ঻਺
  29. None
  30. None
  31. ߡ੹ 2 • ਋ܻо ߓ਍ Ѫ • ࢎਊ੗ח ݒ਋ ੸૑݅

    য૰ٚ ޥо ߓ਋ח ѱ ੓ח ೞܖೞܖ • ਃۧѱ ߄Բפ ੹ജਯ੉ ੉ۧѱ غחҳա! • ࢎਊ੗݅ ખ ݆ਵݶ (ই઱ ੘਺ ઱੄) ݒ୹੉ զ ࣻח ੓ਸ Ѫ э਷ؘ?
  32. • ؊ ݆਷ ࢎਊ੗о ॶ ࣻ ੓যঠ ೠ׮ (Ӓۡ о஖о

    ੓য ࠁ੐) • ૑Ә ࢿמ ޙઁ੄ ؀ࠗ࠙਷ ো࢑ • DBח Ӗ۽ߥਸ ਬ૑ೠ׮ (Ӗ۽ߥ ೘ప௼ܳ ೱ೧) ߡ੹ 3
  33. • CPython੉ ࢿמীࢲ ডೠ ޙઁ੄ ਬഋٜ • ܻࣻ ো࢑? numpy,

    numba ١ (Ӕؘ ইש) • ׮੉ա޸ ೐۽Ӓې߁ Ӓր ؊ ੜ ٜ݅যঠ ೞҊ ঱যо ࢿמ੉ જইঠ ߡ੹ 3
  34. • ׼द ঌҊ્ܻ ࢸ҅੗ • ঌҊ્ܻ ؀ഥ ࢚ࣻ੗ ୹न... •

    ੉࠙੉ ߧੋੌ ܻ হয... Ӓۧ׮ݶ.... • Pythonਸ ޺਷ աܳ ޺਷ ਋ܻ ݽفо ߧੋ ߡ੹ 3
  35. • فֱ ಽоز • Python vs {Go, C++, Java, Scala,

    ... } • Python উীࢲ੄ ׹਷ হਸө? • ਋ܻ੄ ೟णਸ 3ѐਘ ੿ب ޷ܙ ݅ఀ о஖੓ח Ѿ੿ੌө? ߡ੹ 3
  36. ߡ੹ 3

  37. • Cython • .pyx۽݅ ߄Լب ઑӘ ࡈۄ૓ ӝ࠙ • ೨ब੉

    غח ۽૒ਸ Cythonਵ۽ ੤ҳഅ ژח Cܳ (ই઱ ࠗ࠙੸ਵ۽) ࢴӝ द੘ ߡ੹ 3
  38. • ਋ܻо ঳਷ Ѫ • ஠٘ ୶ୌ ߡౡਸ ־ܰݶ 4~5ୡ

    റী Ѿҗо աৡ׮ • উ੿੸ੋ ࢲ࠺झ ਍৔ਸ য۵ѷ׮ • Ӓؘ۠ ੉ ੿ب ૑಴о աয়֎? ߡ੹ 3
  39. • ਋ܻо ঳਷ Ѫ • ୊਺ਵ۽ ݒ୹ ߊࢤ • оמࢿਸ

    ੋ੿߉ই ୐ ై੗ ਬ஖. хࢎ೤פ׮ ߡ੹ 3
  40. • উ੿੸੉Ҋ ࢿמ੉ જ਷ ࢲ࠺झܳ ݅٘ח Ѥ ࠺Ү੸ ഛपೠ ߑߨٜ੉

    ઓ੤ೠ׮ • স҅੄ de facto standard, best practicesח ઓ੤ೞҊ աח ӒѦ ঌইղݶ ػ׮ • (׼ো൤) ݺഛೞ׮Ҋ ए਍ Ѥ ইפ׮. উ੿ࢿ਷ ט য۰਍ ب੹ җઁ. ߡ੹ 3
  41. • (߈ݶী) ࢎۈٜ੉ ૌѹ ࢎਊೞח ઁಿਸ ݅٘ח Ѥ ੉ۧ׮ ೡ

    ׹উ੉ হ׮ • ؊ٞ؊ٞ ߑೱਸ ઑ੿ೞݴ оঠ ೣ • ਋ܻ੄ ѐߊ ੹ۚ যڌѱ ೞݶ ߑೱਸ ࡈܻ ઑ੿ೡ ࣻ ੓ਸө? • ੉ ӡ੉ ੜޅػ ӡ੉ۄח Ѧ যڌѱ ೞݶ ؊ ࡈܻ ঌ ࣻ ੓ਸө? ߡ੹ 3
  42. 2016

  43. 2016֙੄ Ҋ޹ • ؊ ݆਷ ࢎۈ੉ ஠٘ ୶ୌਸ ߉ওਵݶ •

    নҗ ੹ജਯ ل ׮ ӓ੸ਵ۽ ৢܻҊ रয
  44. 2016֙੄ Ҋ޹ • पܻ௑ ߖܻ झఋੌ۽ ౵Ҧ੸ੋ ഄन ই੉٣য •

    "؊ ੉࢚ ஠٘ܳ ଺૑ ݃ࣁਃ. ׹਷ ੿೧ઉ ੓Ҋ ք Ҋܰӝ݅ ೞݶ ظ" • ࢎۈٜ੄ ࣗ࠺ ؘ੉ఠܳ ߄ఔਵ۽ о੢ જ਷ ஠٘о ೦࢚ ҅࢑ػ ࢚క۽
  45. 2016 ߡ੹ 1 • ࣗ࠺ ؘ੉ఠܳ যڌѱ ঳૑? • ੌױ

    Android ӝળਵ۽ ஠٘ Ѿઁ ޙ੗ܳ ഝਊೞݶ যٸ? • Ӓۢ iOSח? • ੌױ ա઺ী ࢤпೞ੗
  46. 2016 ߡ੹ 1 • ড 2׳ ѐߊೞҊ ୹दө૑ 3׳ •

    ޙ੗ܳ ੍য৬ ա੄ ૑୹ ղ৉ਸ ޥо ӭՔೞҊ ৘ࢁѱ ࠁৈળ׮ • য٥о ൩-೧!
  47. 2016 ߡ੹ 1 • ঌѱ ػ Ѫ • জਸ ੜ

    ࢎਊೞח ࢎۈٜ਷ ஠٘ܳ ୶ୌ߉Ҋ ੜ ॵ׮ • ৵? • d • ż
  48. 2016 ߡ੹ 1 • ঌѱ ػ Ѫ • Ӓؘ۠ জਸ

    ੜ ࢎਊೞח ࢎۈ੉ হ׮ • ৵? • ஠٘ܳ ୶ୌೞ۰Ҋ ݅ٚ о҅ࠗ জ • ਋ܻח ੉۠ Ѧ 'ҕә੗ ઺ब'੄ '਄ब ӝദ'੉ۄҊ ݺݺ
  49. 2016 ߡ੹ 1 • ঌѱ ػ Ѫ • Ӓؘ۠ জਸ

    ੜ ࢎਊೞח ࢎۈ੉ হ׮ • ৵? • ஠٘ܳ ୶ୌೞ۰Ҋ ݅ٚ о҅ࠗ জ • ਋ܻח ੉۠ Ѧ 'ҕә੗ ઺ब'੄ '਄ब ӝദ'੉ۄҊ ݺݺ
  50. 2016 ߡ੹ 2 • ஠٘ ୶ୌ਷ (ੌױ) ߡܽ׮ • ೠҴ੄

    о҅ࠗ ࢎਊ੗ٜ੉ ੿݈ જইೞח о҅ࠗ জਸ ೠߣ ٜ݅যࠁ੗ • (ৡ/য়೐ۄੋী) ੉޷ ݆਷ ࢎیਸ ߉ח о҅ࠗܳ ઑࢎೞח ؘ ૘઺ • (Ѣ੄ о҅ࠗ ੹ҕೞन٠ೠ) о҅ࠗ ೻࠺ ਬ੷ 30ݺ ੿ب ੋఠ࠭ • ੿݈ хࢎ೤פ׮
  51. 2016 ߡ੹ 2 • ஠٘ Ѿઁ ޙ੗ ӝ߈ • ই৘

    ࢜۽਍ ష؀۽(Kotlin) Android জਸ ࢜۽ ݅ٝ • ޛۿ ҅ࣘ ࢲߡח Python ӝ߈ • ড 3~4׳ ੿ب ѐߊ റ ୹द • ઺р઺р ղࠗ ୹दܳ ా೧ ࢎਊ੗ٜ ೖ٘ߔ
  52. 2016֙੄ ߛ௼࢟۞٘ • (׮೯൤) Ԩ ҡଳ਷ ૑಴੄ জ੉ غযх •

    ੌױ ࢎਊਸ द੘ೞݶ Ԩ ݆਷ ࢎਊ੗о ҅ࣘ ࢎਊೠ׮ • ਋ܻо ঌѱ ػ Ѫ • о҅ࠗ৬ ஠٘ ୶ୌ੄ Ҿ೤੉ Ԩ ҡଳ׮ • о҅ࠗ ࢎਊ੗ٜ੉ ਗೞח о҅ࠗ জ੄ ݽणਸ (ઑӘ਷) ঌѷ׮
  53. 2017→2019

  54. അ੤੄ ߛ௼࢟۞٘ח • о҅ࠗ জਸ ֈয ݽٚ ҃ઁ ੋҳ੄ ت

    ҙܻ জਵ۽ աইоח ઺ • ਋ܻ੄ تҗ ҙ۲ೠ ׮নೠ بݫੋ੄ ؘ੉ఠܳ ੜ ݽਵҊ ੜ ୊ܻೞח ؘ ૘઺
  55. ߛ௼࢟۞٘ח ब૑য 10% 5% 15% 70% Python Scala Others Node

    • 70% ੉࢚੄ ௏٘о Pythonਵ۽ ੘ࢿ • ઱۽ ؀ࠗ࠙੄ ࢲߡܳ ׮ Pythonਵ۽ ੘ࢿೣ • ױࣽ CRUD • Ԩ ࠂ੟ೠ ࠺ૉפझ ۽૒ ୊ܻө૑ • Ӓ ৻ ঱যח п੗੄ ࢎ੿੉ ੓਺ • ইө աৡ ஠٘ ୶ୌ ࢲߡח ѾҴ Scala۽ ੤ѐߊ (ref. ੘֙ ߊ಴ ଵҊ)
  56. ߛ௼࢟۞٘ח ब૑য • Әਲ਼ࢎ৬੄ ੹ޙ ాनب ׼ରѱ Pythonਵ۽ • TMI:

    ؀ࠗ࠙ Java ӝ߈ਵ۽ ݆੉ ೣ • Pythonীࢲ ੹ޙ ాन ખ ಞೞѱ ೞ۰Ҋ য়೑ࣗझب ݅ٝ • Rainist/K-Format • $ pip install K-Format
  57. ߛ௼࢟۞٘ח ब૑য • ஠٘ Ѿઁ ୊ܻ ࢲ࠺झب ׼ରѱ Pythonਵ۽ •

    iamport хࢎ೤פ׮ • OOO ࢲ࠺झب ׼ରѱ 100% Pythonਵ۽ ҳഅ • فӔفӔ ࠺޻࠺޻ ࢲ࠺झ
  58. ߛ௼࢟۞٘੄ MSA • ੿݈ ׮নೠ بݫੋ੉ ઓ੤ೞҊ пп੄ ਃҳ ࢎ೦੉

    ݽف ׮ܴ • ߛ௼࢟۞٘ ࢲ࠺झ ୡӝࠗఠ MSA ҳઑ۽ ٜ݅য য়ח ઺ • જ਷ MSA ജ҃਷ ӝמ ױਤ۽ ࢲ࠺झо ੜѱ ա׊Ҋ • ౵ಞചীࢲ য়ח ਍৔੄ য۰਑਷ दझమ੉ ࠁઑೞח ݽण
  59. ߛ௼࢟۞٘੄ MSA • ࢜۽਍ ࢲ࠺झܳ ݅٘ח ѱ ݒ਋ औ૑ ঋਵݶ

    ࢲ࠺झܳ ٜ݅૑ ঋח׮ • ੗ஞ MSAо ইפۄ ݻݻ ࢲߡо য়ࣚبࣚ ࢎ੉જѱ ૑ղח ݽण੉ ػ׮ • ੉ۧѱ غݶ ࢲ࠺झо ੹߈੸ਵ۽ ࠺؀೧૑Ҋ दझమ ࠺ਊ੉ ૐо
  60. ߛ௼࢟۞٘੄ MSA • ࢎۈ੉ טҊ بݫੋ੉ טҊ ௏٘о טҊ ۨನо

    טযաפ • ௏٘ܳ ੍ਸ ੌ੉ ݒ਋ ݆ই૑Ҋ • ௏٘ ܻ࠭о झఋੌ ਤ઱۽ ൗ۞оח উ જ਷ ն࢜
  61. ߛ௼࢟۞٘੄ MSA • ࢎۈ੉ טҊ بݫੋ੉ טҊ ௏٘о טҊ ۨನо

    טযաפ • ࢜۽਍ ࢲ࠺झܳ ٜ݅ ٸ݃׮ ਋ܻ੄ ֢ೞ਋ܳ • ҳ੹ী ੄೧ ഑਷ ޙࢲܳ ੍যঠ݅ ೟णغח ഋక۽ • ҕਬೞח Ѫ੉ ࠺ബਯ
  62. ߛ௼࢟۞٘੄ MSA • Python Project Template ਍৔ • Cookie Cutterܳ

    ੉ਊ • Rainist/python • Rainist/cookiecutter-sanic • ؊ ੗ࣁೠ Ѥ @੿ѹ਎ש ߊ಴ ଵҊ (YouTubeী 'ߛ௼࢟۞٘')
  63. ߛ௼࢟۞٘ח খਵ۽ • ਋ܽ ৈ੹൤ (ࡅܰѱ) ࢿ੢ ઺ੋ ઑ૒੉Ҋ ҅ࣘ

    ೟णೞח ઑ૒ • ӒܻҊ ੉۠ ઑ૒ਸ ਬ૑ೞח ੉࢚ (ই݃) Python੉ ҅ࣘ ઱ਃ ঱যੌ Ѫ • Ӓ۞ա അ੤੄ ߛ௼࢟۞٘ח ࢎਊ੗ب ݆Ҋ ࢲ࠺झ ӏݽب ௾ ࢚క • ղࠗীࢲח ݃੉௼۽ ࢲ࠺झ ౭য݂ਸ ా೧ п ࢲ࠺झ੄ ౭যܳ ݒӝח ઺ • ੹୓ ࢲ࠺झী ৔ೱਸ ՙ஖ח ౭য 0 ࢲ࠺झী ؀೧ࢲח ખ ؊ উ੿੸type-safe੉Ҋ ࢿמী ъ੼੉ ੓ח ׮ܲ ঱য ৉द Ҋ۰ ઺
  64. ߛ௼࢟۞٘ח খਵ۽ • ਋ܻо ੌೞח ߑध • ߛ௼࢟۞٘ۄח ௾ ੉ܴ

    ইې 10ݺ ӏݽ੄ ੘਷ झఋ౟সٜ ૘೤ • п ઑ૒਷ ߛ௼࢟۞٘о ୡӝী Ѧযৡ Ѫҗ э੉ ࡅܰѱ ೟णী ૘઺ • ѾҴ ߛ௼࢟۞٘ח Python੄ ੢੼ਸ ҅ࣘ ੸ӓ੸ਵ۽ ഝਊೞӝܳ ਗೡ Ѫ
  65. ؊ ݆਷ ੿ࠁח • Ӓېࢲ ߛ௼࢟۞٘ীࢲ Python ࢲߡ ೐ۨ੐ਕ௼ח? •

    ઑӘ റী ੓ਸ [The Right Frameworks for the Right Time] ࣁ࣌ • ߛ௼࢟۞٘ ղ੄ Python ࢎਊ Ե౲ ҳࢳҳࢳ • YouTubeী 'ߛ௼࢟۞٘' Ѩ࢝ റ 3ഥର ௑࢟۞٘ ੿ѹ਎ש ߊ಴ ৔࢚ ࠁӝ • Rainist GitHub ߑޙ (https://github.com/Rainist) • ӝࣿ౱੉ ୶ҳೞח о஖ח Rainist/awesome-rainist • ౵੉௑ ߛ௼࢟۞٘ ࠗझ ߑޙ (ݣܻ ࠁ੉ח ୡ۾࢝ܳ ٮۄ...)
  66. ഻ঁ ؊ ݆਷ ੿ࠁח

  67. We Want You Python • Server Side Engineer • DevOps

    Engineer • Data Engineer • Data Scientist • Data Analyst • Machine Learning Engineer • Test Automation Engineer And... • Android Engineer • iOS Engineer • Web Engineer • QA Engineer • SRE • Infra Engineer • System Engineer • Security Engineer ❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤ ❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤ ❤ ❤ ❤ ❤ ❤ ❤ ❤ ❤ ❤ ❤ ഻ঁ ؊ ݆਷ ੿ࠁח