Upgrade to Pro — share decks privately, control downloads, hide ads and more …

便利なPythonのPackageが最近でたらしいのでそれについて話します

 便利なPythonのPackageが最近でたらしいのでそれについて話します

Python Package "OrderedFormat" の話。

K.Himeno

July 08, 2016
Tweet

More Decks by K.Himeno

Other Decks in Programming

Transcript

  1. ศརͳPYTHONͷPACKAGE͕࠷ۙͰͨ
    Β͍͠ͷͰͦΕʹ͍ͭͯ࿩͠·͢ɻ
    @HIMENON
    1

    View full-size slide

  2. ࣗݾ঺հ
    ▸ ॴଐ
    ▸ ۝भେֶ େֶӃ ཧֶ෎

    ෺ཧֶઐ߈ म࢜՝ఔ2೥
    ▸ Twitterɿhimenoglyph

    GithubɿHimenon
    ▸ ࠷ۙ
    ▸ PythonΑΓSwiftΛॻ͍͍ͯΔɺ͜ͱ͕ଟ͍ɻ
    Twitter
    Teratail/Qiita
    Google+
    Facebook
    2

    View full-size slide

  3. ݴޠͱΤσΟλʔͷ෼෍͸͜Μͳײ͡ɻ
    ͜͜1िؒ෼ͷݴޠผ

    ࣌ؒ
    ΤσΟλʔผ

    ࢖༻࣌ؒ
    3

    View full-size slide

  4. Ϩϙʔτ࡞ΔͷʹศརͳPYTHON
    ύοέʔδΛ࠷ۙϦϦʔε͞Εͨ
    Β͍͠ɻ
    ͍·͔Β࿩͢͜ͱ 4

    View full-size slide

  5. OrderedFormat
    Version : 0.0.2
    Release Date : 2016.07.06, Last Update: 2016.07.07
    ύοέʔδͷ໊લͱ͔ɻ
    Πϯετʔϧํ๏

    pip install OrderedFormat Python 2, 3ʹରԠ
    5

    View full-size slide

  6. ࡱӨ೔࣌

    2016.07.06 23:44
    6

    View full-size slide

  7. OrderedFormatύοέʔδͷ࢖͍ํ
    8

    View full-size slide

  8. OrderedFormat͸͍ͭ࢖͑Δͷʁ
    ϩάσʔλ ϨϙʔτԽ
    ਺஋ܭࢉ / ࣮ݧ
    9

    View full-size slide

  9. OrderedFormat͸͍ͭ࢖͑Δͷʁ
    ϩάσʔλ ϨϙʔτԽ
    ਺஋ܭࢉ / ࣮ݧ
    ࣗಈԽ͍ͨ͠ɾɾɾʂʂ
    YAMLܗࣜ
    10

    View full-size slide

  10. OrderedFormat͸͍ͭ࢖͑Δͷʁ
    ϩάσʔλ ϨϙʔτԽ
    ਺஋ܭࢉ / ࣮ݧ
    ࣗಈԽ͍ͨ͠ɾɾɾʂʂ
    11

    View full-size slide

  11. OrderedFormat͸͍ͭ࢖͑Δͷʁ
    ϩάσʔλ ϨϙʔτԽ
    ਺஋ܭࢉ / ࣮ݧ
    OrderedFormatͷग़൪ʂʂ
    12

    View full-size slide

  12. ۩ମతͳ࢖༻ྫ
    ▸ ४උɿϩάσʔλ͕͋Δͱ͢Δɻ
    ϩάσʔλ ϨϙʔτԽ
    13

    View full-size slide

  13. ΈΜͳ͍͖ͩ͢ιʔείʔυ
    ۩ମతͳ࢖༻ྫ
    https://github.com/Himenon/OrderedFormatSample
    14

    View full-size slide

  14. ͜Μͳײ͡ͰPDF
    ͕ͬ͘͞ͱग़ͯ
    ͖·͢ɻ
    15

    View full-size slide

  15. ͍͍Ͱ͠ΐʁ
    16

    View full-size slide

  16. ͓Θ͔Γ͔ͱࢥ͍·͕͢ɺ
    17

    View full-size slide

  17. OrderedFormat
    Λ࡞ͬͨͷࢲͰ͢ɻ
    18

    View full-size slide

  18. Ҏ্ʂ
    Πϯετʔϧํ๏

    pip install OrderedFormat
    19

    View full-size slide

  19. ๭Q&AαΠτͰϩδοΫͷҰ෦Λ࣭໰͍ͯ͠·ͨ͠ɻʢ2016೥5݄6೔ʣ
    ͪͳΈʹɻ
    20

    View full-size slide

  20. UI/UX/ίϯςϯπͰॻ͘ͱʁ
    ༨ஊ
    ▸ UI

    Python
    ▸ UX

    Ϩϙʔτ͕ࣗಈͰ࡞ΕΔɻ→ ৘ใΛ੔ཧͰ͖Δʂ
    ▸ ίϯςϯπ

    Ұ࣍ݩͷॱংͩͬͨ഑ྻɻ
    21

    View full-size slide

  21. ͦͷଞͷཪ࿩ɻ
    ▸ ϦϦʔε6࣌ؒͰVersion͕0.0.2ʹͳΓ·ͨ͠ɻ
    ▸ ཧ༝ɿυΩϡϝϯτͷܽؕͱɺϓϩάϥϜͷόάΛൃݟɻ
    PythonͷҾ਺͸ࢀর౉͠ɾɾɾʂʂʂ

    ϑΝΠϧܗࣜΛtypeͰೖྗͤ͞Α͏ͱͯͨ͠ɾɾɾʂʂʂ

    (όάͷԹচʣ
    22

    View full-size slide

  22. ࢀߟʹͳΔϖʔδ
    ▸ PyPIσϏϡʔ - ਗ਼ਫ઒Web

    http://www.freia.jp/taka/docs/pyhack4/pypi/
    ▸ PyPIσϏϡʔ2015 - tell-k - PyCon JP 2015 (2015.10.11)

    https://tell-k.github.io/pyconjp2015
    ▸ coagulant/coveralls-python

    https://github.com/coagulant/coveralls-python
    ▸ coveralls 1.1

    https://pypi.python.org/pypi/coveralls
    23

    View full-size slide