Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
retoor5073dActivity per day:
Fun stuff, can't wait to have multiple weeks.
The database contains 800.000 records and is 50Mb big after more than one week. -
retoor5073d@atheist just be like me, write graphs instead and after that impress girls with your keystroke statistics while you tell them the keys are not the only thing that needs to get stroked. Wink wink
-
retoor5073d@atheist or join me on the anti spam mission. Today I gonna clear the first five pages of devrant from spam. It was cleared before but they upvotes again..
-
atheist99423d@retoor I'm currently rewriting the invoke python library because I use it quite a lot. It's very clearly written by someone with a degree in computer science that's a very competent programmer but a horrendous coworker....
https://github.com/pyinvoke/invoke
They have test cases which are like "test init takes args", "test init raises exception if arg missing"...
Everything is dynamic. Like, Python is dynamic but their code looks like javascript. They've used the lexicon library which let's you just set anything anywhere. https://pypi.org/project/lexicon/ -
retoor5073d@atheist fuck, i was writing something like that too! Will you publish it on github? I didn't know about pyinvoke. Yeah, thaat's a cool think to do. Make is too limited. Can't even give freaking arguments. I want to do `invoke serve -port=1337`. Not `PORT=1337 make serve`.
-
atheist99423d@retoor when it works I'll let you know. At the moment invoke works (and I've been using it) but it's very esoteric, type annotations aren't great, there are some features I'd like to add but I figure it's easier to rewrite than try to change...
But yeah, I use it instead of make for running tests, building docs, stuff like that. -
retoor5073d@atheist I will do too. I will install invoke globally, the point for me is not sitting on an env while I execute invoke. My Make files also prevent activating env. They look like this:
PYTHON=./.venv/bin/python
PIP=./.venv/bin/pip
APP = ./venv/bin/myapp
install:
$(PIP) install -e .
test:
$(PYTHON) -m unittest
run install
./$(APP) -
atheist99423dhttps://github.com/pypa/pipx
Basically let's you install a python package like a system binary -
retoor5073d@atheist I know it but i don't use it. I have a global virtual env: and i do just ln -s ~/.venv/bin/[the python app] /usr/local/bin/[name]. Works fine.
Related Rants
So, a while ago I made a keylogger (called tikker (project is on my site) and now I created plot with statistics. Interesting, I work literally full time (24h) :P So now I have a graph of activity per hour:
random
interesting
24h
tikker
graph
keylogger
development
statistics