Package: wmc
===============Watch me coding===============.. image:: https://img.shields.io/pypi/v/wmc:alt: PyPI:target: https://pypi.org/project/wmc/.. image:: https://img.shields.io/pypi/pyversions/wmc:alt: Python Version:target: https://pypi.org/project/wmc/.. image:: https://img.shields.io/pypi/wheel/wmc:alt: Wheel:target: https://pypi.org/project/wmc/.. image:: https://img.shields.io/pypi/implementation/wmc:alt: Implementation:target: https://pypi.org/project/wmc/.. image:: https://img.shields.io/pypi/dm/wmc:alt: Downloads:target: https://pypi.org/project/wmc/.. image:: https://img.shields.io/pypi/l/wmc:alt: License:target: https://pypi.org/project/wmc/Create some screen recording. I would like to share my coding process. Thissmall tool should help me. But you can use it for any long time recording.It's still under develop, but you can try it. See "How does it work" for moreinformationInstall-------It is on PyPi::pip install wmcHot to uses-----------Create a new project. This is basically a folder with a settings file::wmc setup .wmc setup testYou can edit the config file or simple start recording::wmc recordUse the help for more::>>> wmc --helpusage: wmc [-h] [-V] [-v] [-s SETTINGS] [-H] [{info,link,record,setup}] [path]Watch me coding, a toolboxpositional arguments:{info,link,record,setup}Select one command.path                  Path to the project.optional arguments:-h, --help            show this help message and exit-V, --version         show program's version number and exit-v, --verbose         Enable debug infos.-s SETTINGS, --settings SETTINGSThe settings file.-H, --help-commands   Some command infos.Copyright 2021 AxJu | WMCv0.3.2Every sub command could have some different options. But you can look into therehelp, too::>>> wmc info dummy -husage: wmc info [-h] [-V]Watch me coding, a toolboxoptional arguments:-h, --help     show this help message and exit-V, --version  show program's version number and exitCopyright 2021 AxJu | WMCv0.3.2How does it work----------------The workplace is simple folder with a data file. Every command work with thisfolder and the settings from the data file. To manage the different commands Icreate a basic class and uses the entry_points from the setuptools. This makeit also easy to write custom commands. Write your own pypackage, integrate yourcommand to the entry_points and the command is variable. To create the commandyou can inherit from the basic class and then override the functions. To takeyour dependency small and clean, you can overwrite single functions from thebasic class.It is simple as usual in python. I put some examples in the example folder, aclass and an function example. Look into the folder, if you want to createyour own command. I will explain how you can use this.1. Clone the repo or download the files.::git clone https://github.com/axju/wmc.git2. Install wmc.You should always use a virtual environment, but that's not my business. Ifyou would install wmc from source::python setup.py installor from PyPi::pip install wmc3. Take a look to the default commands::>>> wmc -Hinfo v0.3.2 - Print some infoslink v0.3.2 - Concat all videos to onerecord v0.3.2 - Start the recordsetup v0.3.2 - Some help4. Now install the Plugins::python examples/plugin_func.py installpython examples/plugin_cls.py install5. Look again to the commands::>>> wmc -Hinfo v0.3.2 - Print some infoslink v0.3.2 - Concat allvideos to onerecord v0.3.2 - Start the recordsetup v0.3.2 - Some helpplugin-cls v0.1.0 - A Plugin with a the basic classplugin-func v0.1.0 - A Plugin with a function6. Now you can use the command::>>> wmc plugin-cls dummy -husage: wmc plugin-cls [-h] [-V] [--hello]Watch me coding, a toolboxoptional arguments:-h, --help     show this help message and exit-V, --version  show program's version number and exit--hello        say helloCopyright 2021 AxJu | WMCv0.3.2Development-----------Virtual environment windows::python -m venv venvvenv\Scripts\activateVirtual environment linux::python3 -m venv venvsource venv/bin/activateSetup project::python -m pip install --upgrade pip wheel setuptools tox flake8 pylama pylint coveragepython -m pip install -e .Run some test::python -m unittestpython -m flake8 wmcpython -m pylint wmcTest coverage::coverage run --source wmc -m unittestcoverage report -mMultiple test with tox::toxPublish the packages::git tag -a 0.3.3 -m 'Version 0.3.3'git push origin 0.3.3python setup.py --versionpython setup.py checkpython setup.py sdist bdist_wheeltwine upload dist/*