Very nice, so much simpler! I'm not sure how much effort you want to spend on this overall, but if you want to improve it a little more, a good next step would probably be making a class for the...
Very nice, so much simpler!
I'm not sure how much effort you want to spend on this overall, but if you want to improve it a little more, a good next step would probably be making a class for the topics, with default values in the __init__ constructor. That would let you make a lot of the logic simpler instead of needing all the if/else checks in the post_topic() method.
Great work, thanks! You might wanna add a requirements.txt to this, the steps would be: generate a virtualenv activate it install tildee run pip freeze > requirements.txt Granted you only have one...
Great work, thanks!
You might wanna add a requirements.txt to this, the steps would be:
generate a virtualenv
activate it
install tildee
run pip freeze > requirements.txt
Granted you only have one dep as of now, but whatever the amount grows to as time goes by, with this people can easily run pip install -r requirements.txt and get going with the script.
Very nice, so much simpler!
I'm not sure how much effort you want to spend on this overall, but if you want to improve it a little more, a good next step would probably be making a class for the topics, with default values in the
__init__
constructor. That would let you make a lot of the logic simpler instead of needing all the if/else checks in thepost_topic()
method.Great work, thanks!
You might wanna add a requirements.txt to this, the steps would be:
pip freeze > requirements.txt
Granted you only have one dep as of now, but whatever the amount grows to as time goes by, with this people can easily run
pip install -r requirements.txt
and get going with the script.This might come in very handy with posting the "What are you reading these days?" threads, thanks for updating it!