This website requires JavaScript.
Explore
Help
Sign In
Pixelfed
/
pfxposter
mirror of
https://github.com/ooguz/pfxposter
Watch
1
Star
0
Fork
You've already forked pfxposter
0
Code
Issues
Releases
Wiki
Activity
master
pfxposter
/
requirements.txt
6 lines
82 B
Plaintext
Raw
Permalink
Normal View
History
Unescape
Escape
Initial commit
2020-08-24 07:36:37 +02:00
twine
init 5
2020-08-24 10:52:30 +02:00
Mastodon.py>=1.5.1
atoma>=0.0.17
toml>=0.10.1
0.1.0
2020-08-24 11:17:21 +02:00
python-crontab>=2.5.1
1- example `updated` timestamp replaced to epoch 2- __init__ or another file shouldn't be used as a main entry point. __main__ is the correct way. python3 -m pfxposter will work this way. 3- renamed pfxposter to poster, easier to import, easier to understand. 4- moved all stuff into functions, this is cleaner, hope for the cleanest code for all. 5- pip3 is not the best way, python3 -m pip is better due to pip3 may be in a different PATH than your virtual environment. 6- requests must be in requirements for development and setup.py for installation. Excluding it to not break the OS is just a bad workaround. 7- textwrap.dedent and triple quotes helps with readability 8- when using regular expressions, you should use raw strings (strings that ignores escape sequences like `\s`) 9- os._exit(0) is an immediate exit, sys.exit(0) will also exit the software but after flushing any open buffers and running any atexit callbacks. 10- breaking long chain calls is more readable
2020-08-24 13:10:20 +02:00
requests