#pyramid

/

      • sontek
        dstufft: Hes complained a lot about that via twitter, I forget the reason exactly but I think "python 3" sums it up
      • dstufft
        sontek: yea it's python 3 issues
      • but I can more or less handle those issues myself, I just wish i could make click not be a nanny in that situation ;)
      • goodwill
        ree: I am no claiming I know what is better, but that to me is not readable
      • sontek
        goodwill: I think the decorator model works really well because it allows you to combine commands easily
      • goodwill: I haven't seen a cleaner API for building CLI tools
      • dstufft
        goodwill: honestly I'm not sure I can think of a situation that's better if you want to have half a dozen flags
      • goodwill
        I usually just build a factory to wrap ArgParse
      • again, I do not claim I know better
      • dstufft
        I mean argparse itself is roughly the same number of lines
      • goodwill
        but to me click way of doing it ... is unreadable
      • dstufft
        and you mix up parser defintion with the actual method that does things
      • ree
        goodwill, allright, I think I understand what you don't like, but then I am not sure what alternative there is
      • that's better
      • goodwill
        ree: I just do not think having multiple decorators that wrap each other is a good pattern like this
      • or readable
      • gavinc
        the same thing without all the @ signs
      • goodwill
        clearly it is a personal preference
      • gavinc
        ;)
      • dstufft
        (I do appreciate a lot of the little things click gives me, like having it force you by default to add an option to inverse a boolean flag
      • sontek
        goodwill: You don't have to use the decorators, you can use `add_command` as well
      • dstufft
        like the way you make a boolean by default is --true-thing / --false-thing
      • gavinc
        just building up a commnd object over a few calls is what that's doing, but you can't see the comand object in the middle
      • just when you get to the end
      • dstufft
        you don't really ever see the command object
      • goodwill
        I do not even see add_command in the docs
      • I am sure it is somewhere
      • I guess I've seen too much code wrapped with multiple decorators and those decorators being giant and unsupportable
      • sontek
        He even has really good built in testing support for it
      • dstufft
        I'm half way considering trying to move pip to use click :3
      • although the LC_ALL=C thing is a bummer for that
      • goodwill
        dstufft: any thoughts about peep?
      • dstufft
        goodwill: good project, sooner or later I want to add that functionality to pip itself
      • though I think it'll require a new requirements.txt language
      • goodwill
        I mean signage alone is awesome
      • dstufft
        stuffing more things into the current one is kinda gross
      • goodwill
        prolly
      • dstufft
        on the "lets add cryptography into packaging" front, PEP 458 is probably a thing that's going to happen
      • goodwill
        sontek: I do not even see add_command in click docs search
      • ah found it
      • there not examples for it
      • dstufft
        which will enable better verification of things you downloading from PyPI (no longer requiring to trust the CDN or mirrors)
      • ree
        and considering the current events, this sounds like a darn good idea
      • goodwill
        right
      • dstufft
        you still have to trust the servers that we run for PyPI, and you have to trust shady people like myself who run PyPI :D but other random people no
      • ree
        better to do that before the nsa decides to poison packages in the cheeseshop
      • goodwill
        :-P
      • dstufft: well assuming there could be other PyPi's
      • dstufft
        the NSA can probably seize the servers that run PyPI since they are on US soil
      • goodwill
        dstufft: have you decided what you want to use yet?
      • gavinc
        meh, I don't trust libcrypto so I think we're mostly doomed at this point ;)
      • goodwill
        this reminds me
      • welcome to Russia my fellow Americans ;)
      • ree
        they won't seize it, they would inject malicious code into packages.
      • dstufft
        goodwill: nope! I didn't mess with it much since earlier today. I've been working on getting pypi-legacy to stop using the filesystem to store packages and start using an object store
      • ree
        which is how they infiltrate enough machines on the net for their operations
      • dstufft
        so that I can make warehouse not need to run on the same machines ;(
      • goodwill
        dstufft here is considering writing next PyPI maybe in Pyramid ... I say we group hug him to make it easier for him
      • :-D
      • ree
        sounds like a good choice ;)
      • gavinc
        woha, pypi currently exists on a single file system?
      • dstufft
        gavinc: wellllll
      • it's a horrible glusterfs cluster
      • rafaelhbarros has quit
      • gavinc
        heh
      • dstufft
        it's 2x glusterfs nodes which are mounted via FUSE on x3 web nodes, with x2 8GB RAM/SSD boxes running postgresql
      • my plan is to move to using multiple mirrored object stores for the package files (and eventually the installer API alltogether) and have fastly hit the object stores directly
      • so that ``pip install whatever`` does not rely on moving parts on our end
      • gavinc
        +1 more URLs, less file handles
      • sontek
        devpi already uses pyramid so might as well keep the trend going
      • (although I wouldn't use them as a model pyramid project)
      • vmatekole joined the channel
      • vmatekole has quit
      • c0le joined the channel
      • rafaelhbarros joined the channel
      • rafaelhbarros has quit
      • KageSenshi joined the channel
      • stevepiercy is now known as stevepiercy[away
      • stevepiercy[away is now known as stevepiercy
      • vmatekole joined the channel
      • vmatekole has quit
      • znn joined the channel
      • znn has quit
      • TheCowboy` joined the channel
      • vmatekole joined the channel
      • vmatekole has quit
      • rafaelhbarros joined the channel
      • rafaelhbarros has quit
      • Swambo has quit
      • Swambo joined the channel
      • rafaelhbarros joined the channel
      • rafaelhbarros has quit
      • Lcaracol joined the channel
      • vmatekole joined the channel
      • yeukhon has quit
      • vmatekole has quit
      • cguardia joined the channel
      • vmatekole joined the channel
      • otter768 joined the channel
      • otter768 has quit
      • cguardia has quit
      • iShmingAiry joined the channel
      • MGiberius34 joined the channel
      • Loetkolben joined the channel
      • iShmingAiry has quit
      • ra21vi has quit
      • ra21vi joined the channel
      • uralbash joined the channel
      • quentinv57 joined the channel
      • nloadholtes has quit
      • nloadholtes joined the channel
      • otter768 joined the channel
      • MrTango joined the channel
      • shredding joined the channel
      • MGiberius34 has quit
      • petrikoz joined the channel
      • petrikoz has quit
      • petrikoz joined the channel
      • petrikoz has left the channel
      • Loetkolben has quit
      • m8 joined the channel
      • quentinv57 has quit
      • quentinv57 joined the channel
      • quentinv57 has quit
      • quentinv57 joined the channel
      • otter768 joined the channel
      • shredding joined the channel
      • Loetkolben joined the channel
      • brokencycle joined the channel
      • otter768 has quit
      • Charlie_X joined the channel
      • marcoceppi joined the channel
      • marcoceppi joined the channel
      • shredding joined the channel
      • quentinv57 has quit
      • shredding joined the channel
      • uralbash has quit
      • uralbash joined the channel
      • stevepiercy is now known as stevepiercy[away
      • sverbois joined the channel
      • sverbois_ joined the channel
      • sverbois has quit
      • sverbois_ is now known as sverbois
      • shredding has quit
      • uralbash has quit
      • shredding joined the channel
      • otter768 joined the channel
      • otter768 has quit
      • shredding has quit