Skip to main content
===============
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. This
small 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 more
information

Install
-------
It is on PyPi::

pip install wmc

Hot to uses
-----------
Create a new project. This is basically a folder with a settings file::

wmc setup .
wmc setup test

You can edit the config file or simple start recording::

wmc record

Use the help for more::

>>> wmc --help
usage: wmc [-h] [-V] [-v] [-s SETTINGS] [-H] [{info,link,record,setup}] [path]

Watch me coding, a toolbox

positional 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 SETTINGS
The settings file.
-H, --help-commands Some command infos.

Copyright 2021 AxJu | WMCv0.3.2

Every sub command could have some different options. But you can look into there
help, too::

>>> wmc info dummy -h
usage: wmc info [-h] [-V]

Watch me coding, a toolbox

optional arguments:
-h, --help show this help message and exit
-V, --version show program's version number and exit

Copyright 2021 AxJu | WMCv0.3.2

How does it work
----------------
The workplace is simple folder with a data file. Every command work with this
folder and the settings from the data file. To manage the different commands I
create a basic class and uses the entry_points from the setuptools. This make
it also easy to write custom commands. Write your own pypackage, integrate your
command to the entry_points and the command is variable. To create the command
you can inherit from the basic class and then override the functions. To take
your dependency small and clean, you can overwrite single functions from the
basic class.

It is simple as usual in python. I put some examples in the example folder, a
class and an function example. Look into the folder, if you want to create
your 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.git

2. Install wmc.
You should always use a virtual environment, but that's not my business. If
you would install wmc from source::

python setup.py install

or from PyPi::

pip install wmc

3. Take a look to the default commands::

>>> wmc -H
info v0.3.2 - Print some infos
link v0.3.2 - Concat all videos to one
record v0.3.2 - Start the record
setup v0.3.2 - Some help

4. Now install the Plugins::

python examples/plugin_func.py install
python examples/plugin_cls.py install

5. Look again to the commands::

>>> wmc -H
info v0.3.2 - Print some infos
link v0.3.2 - Concat allvideos to one
record v0.3.2 - Start the record
setup v0.3.2 - Some help
plugin-cls v0.1.0 - A Plugin with a the basic class
plugin-func v0.1.0 - A Plugin with a function

6. Now you can use the command::

>>> wmc plugin-cls dummy -h
usage: wmc plugin-cls [-h] [-V] [--hello]

Watch me coding, a toolbox

optional arguments:
-h, --help show this help message and exit
-V, --version show program's version number and exit
--hello say hello

Copyright 2021 AxJu | WMCv0.3.2


Development
-----------

Virtual environment windows::

python -m venv venv
venv\Scripts\activate

Virtual environment linux::

python3 -m venv venv
source venv/bin/activate

Setup project::

python -m pip install --upgrade pip wheel setuptools tox flake8 pylama pylint coverage
python -m pip install -e .

Run some test::

python -m unittest
python -m flake8 wmc
python -m pylint wmc

Test coverage::

coverage run --source wmc -m unittest
coverage report -m

Multiple test with tox::

tox

Publish the packages::

git tag -a 0.3.3 -m 'Version 0.3.3'
git push origin 0.3.3
python setup.py --version
python setup.py check
python setup.py sdist bdist_wheel
twine upload dist/*


Metadata

Release files for wmc 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wmc 0.3.3
File Size Uploaded Provenance
wmc-0.3.3.tar.gz 12.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for wmc 0.3.3
File Interpreter ABI Platform
wmc-0.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 21.2 kB

Release files / wmc-0.3.3.tar.gz

Download URL wmc-0.3.3.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bf23ab176771475178ff09676e98dd55249319fbb5c5da40965533aa70509246
BLAKE2b-256 checksum
How to use checksums
66c397ca319924c88be9649078695f12fbf7398f32df035bede8790f3411832c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

Release files / wmc-0.3.3-py3-none-any.whl

Download URL wmc-0.3.3-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6da8307ca9dc3db449c191f1675d7ec8bf46a3c35c5d5a934090763f6bad79c
BLAKE2b-256 checksum
How to use checksums
7b644c0c09299c9a1f0fb9a45874feefdb383ee5f0d203302e9e57a87828787c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

Security for wmc 0.3.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page