$30 off During Our Annual Pro Sale. View Details »

PyCon by Python

Park Hyunwoo
August 18, 2018

PyCon by Python

파이콘 한국 2018 라이트닝토크에서 발표했던 자료입니다.

Park Hyunwoo

August 18, 2018
Tweet

More Decks by Park Hyunwoo

Other Decks in Design

Transcript

  1. ౵੉ॆਵ۽
    ౵੉௑ೞӝ
    ߅അ਋, zerobased.co
    “౵੉ॆਵ۽ ౵੉௑ೞӝ”ܳ ߊ಴ೡ ߅അ਋ੑפ׮.
    ৵ ౵੉ॆਵ۽ ೧ঠೞחо ফӝ೧ࠁ۰Ҋ ೤פ׮.

    View Slide

  2. ౵੉௑ ೠҴ 2018 കಕ੉૑ীࢲ ߊ஀೮णפ׮.

    View Slide

  3. Ѥъೠ Ҵղ ౵੉ॆ ࢤక҅ী
    ૑ࣘ੸ੋ ࠁఙ੉ غҊ੗
    ౵੉௑ ೠҴਸ ৈח ੉ਬח “౵੉ॆ ࢤక҅ী
    ૑ࣘ੸ੋ ࠁఙ੉ غҊ੗” ۄҊ ೤פ׮.

    View Slide

  4. ౵੉ॆ ੿ӏ ಴അधਸ Ѩ࢝ೞ׮о ݅դ ਢಕ੉૑ੋؘਃ,

    View Slide

  5. https://www.w3resource.com/python-
    exercises/re/python-re-exercise-47.php
    ੜ ݽܰ؍ ղਊਸ ঌѱ غয જওणפ׮.
    ೞ૑݅ URLਸ ࠁפ phpо ੓঻णפ׮.

    View Slide

  6. .php
    phpо ੓णפ׮.

    View Slide

  7. .php
    ੉ ಕ੉૑ ࡺ݅ ইפۄ ౵੉ॆ കಕ੉૑о php۽
    غয ੓ਸ ࣻب ੓Ҋ – ࢎप਷ ইפ૑݅ – ߹ ޙઁח ইתפ׮.

    View Slide

  8. ౵੉ॆ੄ о੢ ؀઺੸ੋ ۠ఋ੐ੋ CPythonب
    ઱۽ C ঱য۽ ੘ࢿغয ੓૑ ঋ਷оਃ?

    View Slide

  9. C ঱যח ѾҴ যڃ ঱য۽ ߸ജغաਃ?
    Clang੄ LLVM? X86-64 ASM?

    View Slide

  10. Community
    & Diversity
    ೞ૑݅, ౵੉ॆ ழޭפ౭ ղীࢲ ׮ܲ ঱যܳ
    ցޖ ݆੉ ফӝೞח Ѫ਷ ޙઁо ؼ ࣻ ੓णפ׮.

    View Slide

  11. ழޭפ౭о ૑ೱೞח ߄ী ୽पೞӝ য۵ӝ ٸޙੑפ׮.
    Community
    & Diversity

    View Slide

  12. ੉ઁө૑ ࠊ৳؍ ৈ۞ ೐۽Ӓې߁ ঱য, ೐ۨ੐ਕ௼੄
    ழޭפ౭੄ ൜ݎࢿ࣭ܳ جইࠁݶ જѷणפ׮.
    Community
    & Diversity

    View Slide

  13. ౵੉௑ ೠҴ കಕ੉૑ח
    ౵੉ॆ / ੢Ҋ ӝ߈ਵ۽ ٜ݅যઉ ੓णפ׮.

    View Slide

  14. Python 56.2% HTML 32% CSS 7.7%
    ӒܻҊ JavaScript 4.1%۽ ੉ܖযઉ ੓णפ׮.

    View Slide

  15. ౵੉௑ ೠҴ੄ ୐ കಕ੉૑ࠗఠ ੢Ҋ۽ ٜ݅য ৳णפ׮.
    ചݶ ইې ࢚࢝੉ ੊ࣼೠ ࠙ب ҅दѷ૑݅, ӝ࠙ ఒ੉ѷભ.

    View Slide

  16. ౵੉ॆ ஶಌ۠झܳ ળ࠺ೞח ࢎۈٜ੉ ౵੉ॆী ੊ࣼೞݶ
    ৈ۞о૑ ੉ਬ۽ જ׮Ҋ ࢤп೤פ׮.

    View Slide

  17. ੌױ കಕ੉૑ب ౵੉ॆਵ۽ ٜ݅যઉ ੓ਵפ
    ౵੉ॆ ࢎਊ੗ח ߓਕࢲ ӝৈೞѢա Ҋ஖ӝ औणפ׮.

    View Slide

  18. ߊ಴੗о ઁ୹ೠ ߊ಴ ޙࢲب Ѩషೞחؘ
    ౵੉ॆਸ ݽܰݶ ઁ؀۽ Ѩషೞӝ য۵׮Ҋ ࢤп೤פ׮.

    View Slide

  19. ੘਷ ӝ֛ಿਸ ݅ٚ׮Ҋ ೧ب ౵੉ॆ ۽Ҋ ࢚࢝җ
    PEPܳ ੉೧ೞҊ ٜ݅ݶ ӝ࠙੉ જই૘פ׮.

    View Slide

  20. ੉۠ ੼ীࢲ ౵੉ॆ ࢎਊ੗ٜ੉ ૒੽ ળ࠺ೞח ౵੉௑ ೠҴ੉
    ׮ܲ ѐߊ੗ ஶಌ۠झ৬ ׮ܲ ੄޷ܳ о૓׮Ҋ ࢤп೤פ׮.

    View Slide

  21. ೞ૑݅ ߈؀۽ ழޭפ౭ܳ ٜ݅Ҋ ೯ࢎܳ ૓೯ೞחؘ ੓য
    ೙ਃೠ ӝࣿ਷ ౵੉ॆ݅ਵ۽ח ࠗ઒ೠؘਃ,

    View Slide

  22. ੘֙੄ ౵੉௑ ਍৔ী ؀ೠ ߊ಴ܳ ଵҊ೧઱दݶ غҊ,
    दр ҙ࢚҅ ؊ ੉࢚੄ ੗ࣁೠ ࢸݺ਷ ࢤۚ೤פ׮.

    View Slide

  23. ੷ח ৢ೧ ળ࠺ਤਗഥח ইפ঻૑݅,
    ౵੉௑ ೠҴ ೐۽Ӓ۔࠘ਸ ݅٘חؘ ب਑ਸ ઱঻णפ׮.

    View Slide

  24. ࠁా ଼ਸ ٜ݅ ٸח ੉۠ ੹ޙ ಞ૘ ೐۽Ӓ۔ਸ ࢎਊ೤פ׮.
    (୹୊: adobe.com)

    View Slide

  25. ળ࠺ਤਗഥ ࢎۈٜ ઺ ੌࠗ݅ Ӓې೗ ٣੗ੋҗ
    ઑ౸ ੘সਸ ೡ ࣻ ੓ਵ޲۽ য۰਑੉ ੓णפ׮.

    View Slide

  26. 16 for patron in preset.patrons:
    17 patron = patron.rsplit('/', 1)
    18 if len(patron) == 2:
    19 patrons.append({'name': patron[0], 'org': patron[1]})
    20 else:
    21 patrons.append({'name': patron[0]})
    22
    23 page = template.render({
    24 'coc': preset.coc,
    25 'sponsor_levels': preset.sponsor_levels,
    26 'staffs': preset.staffs,
    27 'volunteers': preset.volunteers,
    28 'patrons': patrons,
    29 'keynotes': preset.keynotes,
    30 'programs': preset.programs,
    31 'session_categories': preset.session_categories,
    32 })
    33
    34 # Save result as html file
    35 with open("pyconkr-2018-booklet.html", "wb") as file:
    36 file.write(page.encode('utf-8'))
    37
    38 # Build
    39 if os.environ.get('TARGET') == 'production':
    40 if not os.environ.get('DOCRAPTOR_APIKEY'):
    41 sys.exit('Please set DOCRAPTOR_APIKEY to bulid production pdf!')
    42 import docraptor
    43
    44 baseurl = "https://lqez.github.io/pyconkr-2018-booklet/"
    45 docraptor.configuration.username = os.environ['DOCRAPTOR_APIKEY']
    46 doc_api = docraptor.DocApi()
    Ӓېࢲ ੉ߣীח ౵੉ॆਵ۽ ٜ݅য ࠁওणפ׮.
    ޛۿ ׮ܲ ঱যੋ HTMLҗ CSSب ࢎਊ೮णפ׮.

    View Slide

  27. pyconkr.pdf
    pyconkr.html
    preset.py
    ੋࣧ ؘ੉ఠܳ ݅٘ח җ੿਷ ௼ѱ 3ױ҅۽ աׇ૘פ׮.

    View Slide

  28. pyconkr.pdf
    pyconkr.html
    preset.py
    ੌױ ೐۽Ӓ۔࠘ী ࢎਊؼ ؘ੉ఠܳ
    ౵੉ॆ dict ഋधਵ۽ ળ࠺೤פ׮.

    View Slide

  29. ؘ੉ఠח ౵੉௑ കಕ੉૑ী ੓ਵפ
    ੢Ҋ ؘ੉ఠ߬੉झী ੽ࣘ೧ࢲ ؘ੉ఠܳ ߉ਵݶ ؾפ׮.

    View Slide

  30. ۽Ӓੋ ೤פ׮.
    ۽Ӓੋ੉ উؾפ׮.
    $ ssh [email protected]
    Using keyboard-interactive authentication.
    [email protected] password:
    Access denied
    [email protected] password:
    Access denied
    $

    View Slide

  31. ળ࠺ਤਗഥо ইפݶ ੽ࣘೡ ࣻ হणפ׮.
    ੷ח ੉ઁ ળ࠺ਤਗഥо ইתפ׮.
    Access denied

    View Slide

  32. ೠ ٸ ૒੽ ٜ݅঻؍ കಕ੉૑ܳ
    झ௼ېೖա ࠭౭ಽ㙋ਵ۽ ӗযঠ ೠ׮פ ӝ࠙੉ ੉࢚೤פ׮.

    View Slide

  33. pyconkr.pdf
    pyconkr.html
    preset.py
    ইޖౡ, ؘ੉ఠܳ ӗҊ ࣚਵ۽ ࠂࢎ ࠢৈ֍ӝ ೧ࢲ
    ౵੉ॆ dict ഋधਵ۽ ળ࠺೤פ׮.
    sponsor_levels = [
    {
    'name': '׮੉ইހ٘',
    'code': 'diamond',
    'mode': 'full',
    'sponsors': [
    {
    'name': 'ߛ௼࢟۞٘',
    'img': 'banksalad.svg',
    'desc': '''ӝࣿ੉ Әਲ਼ਸ ߄Ե ࣻ ੓ਸөਃ? ߛ௼࢟۞٘ח ’਋ܻ’੄ Әਲ਼ਸ ߄
    },
    {
    'name': 'ೞ੉ಌழ֏౟',
    'img': 'hyperconnect.svg',
    'desc': '''ೞ੉ಌழ֏౟ח ੹ ࣁ҅ 2র ׮਍۽٘ܳ ӝ۾ೠ জ 'ই੗ܰ'৬ ೣԋ
    },
    ],
    },
    {

    View Slide

  34. pyconkr.pdf
    pyconkr.html
    Jinja2ܳ ੉ਊ೧ HTML ޙߨਸ о૓ ޙࢲܳ ٜ݅যշפ׮.
    ੉޷૑ח ੋࣧܳ ਤ೧ svg৬ э਷ ߭ఠ ౵ੌ۽ ળ࠺೤פ׮.
    preset.py

    View Slide

  35. pyconkr.pdf
    pyconkr.html
    ੉ઁ HTML ౵ੌਸ PDF۽ ߸ജೞݶ ؾפ׮.
    preset.py




    ౵੉௑ ೠҴ 2018








    ౵੉௑ ೠҴ 2018
    ࢲ਎, ௏ুझ
    झ೐ܽ౟ / 8ਘ 15ੌ, 17ੌ
    ౚషܻ঴ / 8ਘ 17ੌ
    ஶಌ۠झ / 8ਘ 18ੌ, 19ੌ





    View Slide

  36. pyconkr.pdf
    pyconkr.html
    preset.py
    HTML/CSS੄ PDF߸ജ਷
    PrinceXML ١੄ ੹ޙ ߸ജ ೐۽Ӓ۔ਸ ࢎਊ೤פ׮.

    View Slide

  37. ੷ח PrinceXMLਸ ࢎਊೞח DocRaptorۄח
    ৡۄੋ ࢲ࠺झী оੑ೧ ੷۴ೞѱ ੘সೡ ࣻ ੓঻णפ׮.

    View Slide

  38. DocRaptorח рױೠ docraptor-python ۄ੉࠳۞ܻܳ
    ઁҕೞҊ ੓য, ಞܻೞѱ ࢎਊೡ ࣻ ੓঻णפ׮.

    View Slide

  39. ೞ૑݅ ੘਷ ೐۽Ӓ۔࠘ী
    ݆਷ ղਊਸ ׸ӝীח ೠ҅о ੓णפ׮.

    View Slide

  40. ೞ૑݅ ੘਷ ೐۽Ӓ۔࠘ী
    ݆਷ ղਊਸ ׸ӝীח ೠ҅о ੓णפ׮.

    View Slide

  41. Ӓ ٸ ౵੉௑ APAC 2016 ۄ੉౟׬ ష௼ীࢲ ࠌ؍
    Jamie J Seol ש੄ summariz3о ࢤпլणפ׮.

    View Slide

  42. ੜ ؾפ׮. ೞ૑݅ റਗࢎ۽ࠗఠ ഛੋਸ ߉ইঠ ೞח ޙઁо
    ੓য, ѾҴ ੉ۧѱ ೞ૓ ޅೞҊ ׮द ਃ୒೧ࢲ ߉ওणפ׮.

    View Slide

  43. ೐۽Ӓ۔ਸ ࢎਊ೧ࢲ ಞ૘ೞח ҃਋ী ޙࢲܳ ؘ੉ఠ۽ ࠁҊ
    ׮ܙ ࣻ ੓׮ח ੼ਸ ফӝೞҊ र঻णפ׮.

    View Slide

  44. ୡߥ ߣ৉੉ա ݏ୺ߨ Ѩࢎ੄ ҃਋ب ࠺तೞѱ
    ୊ܻೡ ࣻ ੓׮Ҋ ࢤп೤פ׮.

    View Slide

  45. ੉ۧѱ औѱ ՘դ Ѥ ইתפ׮.
    ѐੋറਗ੗ ࠙ ઺ী ੉ݽ૑ܳ ֍ਵन ࠙੉ ੓঻णפ׮.

    View Slide

  46. ࢎਊೞ؍ Noto Sansী ੉ݽ૑о ನೣغয ੓૑ ঋই,
    Free license ੉ݽ૑ܳ ߉ই ੉޷૑۽ ୊ܻ೮णפ׮.

    View Slide

  47. ҡଳणפ׮.
    ੘স җ੿ীࢲ੄ જ਷ ҃೷ਸ ঳঻णפ׮.

    View Slide

  48. pyconkr.pdf
    pyconkr.html
    preset.py
    ୭ઙ ౵ੌਸ ੋࣧ স୓ী ߄۽ ࠁյ ࣽ হ঻૑݅,
    ݆਷ ࠗ࠙ਸ programmable ೞѱ ೧Ѿೡ ࣻ ੓঻णפ׮.

    View Slide

  49. ೐۽Ӓ۔࠘ਸ ࢤࢿೞח ೐۽Ӓ۔੄
    ࣗझ ௏٘ח ਤ URLীࢲ ഛੋೡ ࣻ ੓णפ׮.
    https://github.com/lqez/pyconkr-2018-booklet

    View Slide

  50. Ӓۧѱ ٜ݅য૓ ೐۽Ӓ۔࠘ਸ ೯ࢎ ੹զ ߉ই
    ࢿҕ੸ਵ۽ ߔੋࢲ౟ ೡ ࣻ ੓঻णפ׮.

    View Slide

  51. ੉ઁ ੹ޙ ೐۽Ӓ۔җ ઑ౸ ٣੗੉ց হ੉
    HTML, CSS, Pythonਵ۽ рױೠ ଼ਸ ٜ݅ ࣻ ੓णפ׮.

    View Slide

  52. ౵੉ॆਸ ࢎਊೞҊ ࢎیೞח ݆਷ ٜ࠙੉
    ળ࠺ਤਗഥী ؊ ݆੉ ଵৈೞन׮ݶ

    View Slide

  53. ؊ ա਷(better), ؊ ׮নೠ(diversity) ೯ࢎܳ
    ٜ݅যաт ࣻ ੓׮Ҋ ࢤп೤פ׮. хࢎ೤פ׮.

    View Slide