Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use classes in every script #3

Open
antonizoon opened this issue Oct 28, 2018 · 0 comments
Open

Use classes in every script #3

antonizoon opened this issue Oct 28, 2018 · 0 comments
Assignees

Comments

@antonizoon
Copy link
Member

ideally the aim is for every script to possibly be able to be called from another python script, since we are also python developers and hope to use python itself with systemd to schedule all jobs rather than using cron or bash scripts.

https://github.com/bibanon/BASC-py4chan/blob/master/basc_py4chan/file.py

here is a really good example to follow

so instead of using global variables like you did before, you can call from self.config which is a python dict that could be imported from yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants