#pocoo

/

      • tachyondecay has quit
      • elyezer has quit
      • elyezer joined the channel
      • patallen joined the channel
      • tachyondecay joined the channel
      • luapz2 has quit
      • luapz2 joined the channel
      • shiranaihito joined the channel
      • pop
        soulshake: python has an 'in' keyword that will check if a given thing is in a list of things. If you have an array of commands and say `'--verbose' in args` it'll return true if it's passed and false if it's not passed.
      • I usually check and if it is in the args I remve that element from the list to clean things up a bit.
      • *remove
      • Hope that made sense. I'm not really with it right now.
      • soulshake thinks
      • soulshake
        pop: i see what you mean, but i don't know how to apply this in practice using click
      • pop
        soulshake: I'm not sure what click is. Sorry.
      • Cruor joined the channel
      • babenzele joined the channel
      • patallen
        wouldn't you just add a click.option like any other option?
      • luisalonsocn joined the channel
      • Cruor has quit
      • ajw0100 has quit
      • vivekananda joined the channel
      • lucsx joined the channel
      • k-dawg joined the channel
      • tomkralidis has quit
      • jrm2k6 joined the channel
      • andygmb has quit
      • ajw0100 joined the channel
      • lritter_ has quit
      • lucsx has quit
      • elyezer has quit
      • elyezer joined the channel
      • etacsufbo joined the channel
      • nelsnelson joined the channel
      • paroneayea has quit
      • paroneayea joined the channel
      • thunderbolt joined the channel
      • rathmuller2 joined the channel
      • fluter joined the channel
      • GrayArea has quit
      • josuebrunel joined the channel
      • wong2 has quit
      • Chippo joined the channel
      • Chippo
        What isn't Flask good for?
      • ie what projects should I not use flask with
      • tachyondecay
        That depends a great deal on your preferences
      • I.e., Flask does not impose a lot of paradigms on you, so if you’re looking for something that has a lot already set up for you, then Flask might not be for that project. (Although there are some extensions that help.)
      • pop
        Chippo: in my experience flask shouldn't be used for projects that require what Django gives you for free (like an admin interface).
      • I've dealt with a few flask beasts that would have been drastically simplified by just being Django apps.
      • tachyondecay
        There are likely scalability issues too … but then again, there are always scalability issues :P
      • Chippo
        Are there any other notable features Django provides for free?
      • thunderbolt
      • Chippo
        Thanks thunderbolt
      • thunderbolt
        A lot of these are available as Flask extensions.
      • Basically, Django is a nail gun. If you need to drive nails, it's the right choice. Flask is more like a hammer.
      • So you can be gentle if you need to finish things, or use the claw on the end to pull things out, etc.
      • tachyondecay
        Hahaha :D
      • pop
        ^ that's a *really* good way of putting it with the nailgun vs hammer.
      • tachyondecay
        Or if you hurt yourself with the nail gun, and are afraid of it, and want to go back to the hammer for a while … :P
      • thunderbolt
        Exactly.
      • tachyondecay
        I chose Flask because I wanted to learn Python for web. I took a look at Django and sighed and said, “Well, if I have to.” Then I stumbled on Flask and breathed a sigh of relief.
      • I understand the attraction of Django’s nail-gun power, but I like learning to hammer nails first.
      • stefan991 has quit
      • stefan991 joined the channel
      • shiranaihito has quit
      • etacsufbo has quit
      • luisalonsocn has quit
      • babenzele has quit
      • Interesting
      • I’m setting up an app to run nose via a Flask-Script command
      • And tests are consistently slower to execute that way than if I just run "nosetests" directly
      • Is that just overhead from all the other stuff manage.py is doing _before_ the tests get run? Does that get factored into the time?
      • wong2 joined the channel
      • plyp joined the channel
      • Cruor joined the channel
      • Cruor has quit
      • etacsufbo joined the channel
      • joes joined the channel
      • babenzele joined the channel
      • elyezer has quit
      • elyezer joined the channel
      • eseifert_ joined the channel
      • k-dawg has quit
      • eseifert has quit
      • markfletcher joined the channel
      • markfletcher has left the channel
      • joes has quit
      • Azin has quit
      • sdddd joined the channel
      • sdddd has quit
      • etacsufbo has quit
      • etacsufbo joined the channel
      • eroussel joined the channel
      • veb has quit
      • josuebrunel has quit
      • jrm2k6
        anybody using alembic with flask?
      • i m having an issue when i have imported a db containing already the tables that some of my migrations are supposed to create
      • so it complains when i try to run my migrations
      • how can i tell it to ignore some migrations if the table already exists
      • tachyondecay has quit
      • leela joined the channel
      • etacsufbo has quit
      • leela has quit
      • nelsnels_ joined the channel
      • nelsnelson has quit
      • josuebrunel joined the channel
      • codyaray joined the channel
      • patallen has quit
      • efazati joined the channel
      • codyaray has quit
      • Cruor joined the channel
      • veb joined the channel
      • Cruor has quit
      • elyezer has quit
      • jrm2k6 has quit
      • jrm2k6 joined the channel
      • jrm2k6 has quit
      • ramteid joined the channel
      • luapz2 has quit
      • luapz2 joined the channel
      • josuebrunel has quit
      • therealjumbo joined the channel
      • therealjumbo has quit
      • josuebrunel joined the channel
      • elyezer joined the channel
      • BlaXpirit joined the channel
      • lozadaOmr joined the channel
      • veb has quit
      • leela joined the channel
      • babenzele has quit
      • josuebrunel has quit
      • jrm2k6 joined the channel
      • leela has quit
      • aviraldg joined the channel
      • nelsnels_ has quit
      • jrm2k6 has quit
      • vranac joined the channel
      • mkoskar joined the channel
      • babenzele joined the channel
      • carl- joined the channel
      • carl- has quit
      • carl- joined the channel
      • Symbiosisz joined the channel
      • vranac has quit
      • MonoJoker has quit
      • Symbiosisz
        In my flask app I need to have the ability to send an HTTP request to another server every 2 seconds. I assume I need another thread to do this withi my flask process. I was wondering whether cases like this (a task that continually runs until the process ends) should be done using celery, Python's threading, or something else entirely?
      • MonoJoker joined the channel
      • Chippo has quit
      • ronny
        Symbiosisz: what is that request for?
      • Symbiosisz
        It's grabbing a user count. So it's just doing a get and it receies an integer.