Changelog¶
This package uses semantic versions.
Version 0.2.0¶
- Features:
CLI command
bgpy versionto check for the version of the package.Restructure environment variables, remove
HOSTandPORTfrom core socket classes.Move log file handling to the interface, create seperate log file for each test and upload as artifacts in github action package check.
Split
interface.pyinto aServercontext class and aClientcontext class.Added
__repr__methods toClient,ServerandMessageclasses.Define
__slots__for all classes.Use
loggingpackage from the standard library to perform logging tasks. Split logs at level INFO into STDOUT and STDERR on the stream handler for the console.Documented CLI help pages.
Detailed usage section in README.
- Bugfixes:
Updated docstrings.
Cleaned environment and removed the need for a directory in the users home (
~/.bgpy).Render module index and docstrings on readthedocs.
Pass mypy type checks.
Run sphinx-apidoc in
check.shscript to avoid errors in documentation build when changing submodule structure.
Version 0.1.0¶
Initial release of the bgpy on pypi.org package; Running local or remote Python servers in the background and establish stream socket-based communication with clients.
- Development setup:
poetry: Managing dependencies and package build env.pytest: Framework for testing.mypy: Static type checking.flake8: Code linting.sphinx: Documentation of the package usingnumpydocdocstring style.
- Submodules:
example: Example
init_task,exec_taskandexit_taskfor testing.cli:
bgpy server <host> <port>to run a server andbgpy terminate <host> <port>to send exit message to a server.
- Scripts:
install.sh: Builds the package and installs it to the global Python version.check.sh: Automates checks and documentation build.