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

WIP: v2.0 #1

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open

WIP: v2.0 #1

wants to merge 33 commits into from

Conversation

Javinator9889
Copy link
Contributor

@Javinator9889 Javinator9889 commented May 8, 2021

This version aims to:

  • Correct some minor issues that may happen.
  • Use configparser for setting daemon's configuration.
  • Reduce code size and optimize resources.
  • Create a distributable .deb file for direct installation and upgrading.
  • Allow running as standard user.
  • Bug fixes.

@Javinator9889 Javinator9889 self-assigned this May 9, 2021
@Javinator9889 Javinator9889 changed the title v2.0 WIP: v2.0 May 9, 2021
…an empty file)

In addition, some fixes were added as the "configupdater" does not directly accesses the value but the entire "Option" object instead, so the returning value was always "Option" instead of the desired data type
…possible.

Any non captured exception will cause the program to unavoidable fail. Suggest reporting the issue to Github or mailing it to the developer's account
This decision comes from some libraries that does not allow the usage of Python 3.5. As May 2021, it is known that most distributions now use from Python 3.6 up-to Python 3.8. In addition, some external tools allow the installation of any Python version system independent (e.g.: pyenv). Use them instead
With these new settings available, the sysadmin has more options available for customizing and configuring multiple service instances running with different domains/records
In addition, for performance purposes an "entrypoint" has been added for debugging code
… "cached" decorator for class properties

When accessing/setting new properties, some of them require accessing to a file or decrypting a key. For performance purposes, the @cached decorator (for "get" methods) and it's pair @ucached (for "set" methods) store the correspondent new value inside a dictionary in which the key is the function name. When accessing the property, if there is a cached version available then it will be returned
In addition, logger was merged with root logger
@Javinator9889
Copy link
Contributor Author

Javinator9889 commented May 13, 2021

v2.0 has entered the stable stage. Minimum changes must be done from now on.

Pending:

  • Creating service files
  • Creating executable script
  • Writing tests, if possible
  • Setup CI/CD, if possible
  • Create a AIO deb package for distribuiting

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

Successfully merging this pull request may close these issues.

None yet

1 participant