Skip to main content

castlabs-evs is a package that provides a client for the EVS service for Electron for Content Security. EVS provides production Widevine/VMP signing of application packages derived from official releases of Electron for Content Security. It is a free service, but requires signup to use.

As part of the Widevine 3PL program castLabs also offers commercial VMP certification of custom Chromium/Electron adaptations, which enables the use of EVS for signing custom builds.

castlabs-evs supports Python 3.7+ and can be installed with:

% python3 -m pip install castlabs-evs

This installs the EVS client which provides Python and CLI interfaces for account handling and VMP signing. If the pip module binary directory is in your PATH the two convenience scripts evs-account and evs-vmp can be used in place of python3 -m <module> in the examples below.

The CLI interfaces are interactive by default, asking for any information they cannot load from its configuration, unless they are provided through CLI arguments or environment variables. This behaviour can be overridden by not providing a TTY on STDIN, or by passing the --no-ask option or setting EVS_NO_ASK in the environment, in which case any missing required information will trigger a runtime error instead, making them more suitable for automation.

The Python interfaces are not currently documented, but the CLI provides help sections that can be accessed:

% python3 -m castlabs_evs.account --help
usage: account.py [-h] [-v] [-n] [--connect-timeout CONNECT_TIMEOUT] [--auth-timeout AUTH_TIMEOUT]
                  {signup,sup,resend,rs,confirm-signup,csup,update,up,reset,res,confirm-reset,cres,refresh,r,deauth,da,reauth,ra,delete,del} ...

options:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -n, --no-ask          enable non-interactive mode

timeout options:
  --connect-timeout CONNECT_TIMEOUT
                        connection timeout in seconds (default: 60)
  --auth-timeout AUTH_TIMEOUT
                        auth request timeout in seconds (default: 60)

commands:
  {signup,sup,resend,rs,confirm-signup,csup,update,up,reset,res,confirm-reset,cres,refresh,r,deauth,da,reauth,ra,delete,del}
    signup (sup)        sign up for EVS account
    resend (rs)         resend EVS account confirmation code
    confirm-signup (csup)
                        confirm account signup
    update (up)         update account details
    reset (res)         reset account password
    confirm-reset (cres)
                        confirm account password reset
    refresh (r)         refresh authorization tokens
    deauth (da)         discard any authorization tokens
    reauth (ra)         discard any authorization tokens & refresh
    delete (del)        delete EVS account
% python3 -m castlabs_evs.vmp --help
usage: vmp.py [-h] [-v] [-n] [-a] {verify,v,sign,s,verify-pkg,vp,sign-pkg,sp} ...

options:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -n, --no-ask          enable non-interactive mode
  -a, --any-ski         verify any subject key identifier

commands:
  {verify,v,sign,s,verify-pkg,vp,sign-pkg,sp}
    verify (v)          verify signature
    sign (s)            refresh signature
    verify-pkg (vp)     verify electron package signature
    sign-pkg (sp)       refresh electron package signature

The sign command supports a number of transfer options for controlling timeouts and upload behaviour:

% python3 -m castlabs_evs.vmp sign --help
usage: vmp.py sign [-h] [-s] [-p] [-i] [-M MIN_DAYS] [-f] [-z] [-A ACCOUNT_NAME] [-P PASSWD]
                   [--connect-timeout CONNECT_TIMEOUT] [--auth-timeout AUTH_TIMEOUT]
                   [--upload-url-timeout UPLOAD_URL_TIMEOUT] [--upload-timeout UPLOAD_TIMEOUT]
                   [--sign-timeout SIGN_TIMEOUT] [--multipart-threshold MULTIPART_THRESHOLD]
                   [--multipart-part-size MULTIPART_PART_SIZE] [--multipart-retries MULTIPART_RETRIES]
                   [--multipart-max-concurrency MULTIPART_MAX_CONCURRENCY]
                   bin [sig]

positional arguments:
  bin                   path to binary
  sig                   path to signature

options:
  -h, --help            show this help message and exit
  -s, --streaming       streaming only signature (default)
  -p, --persistent      streaming and persistent download signature
  -i, --intermediate    generate intermediate signature
  -M, --min-days MIN_DAYS
                        minimum number of remaining valid days
  -f, --force           force new signature
  -z, --gz              request gzip upload (slower for fast connections)
  -A, --account-name ACCOUNT_NAME
                        provide account name [CACHED]
  -P, --passwd PASSWD   provide account password

transfer options:
  --connect-timeout CONNECT_TIMEOUT
                        connection timeout in seconds (default: 60)
  --auth-timeout AUTH_TIMEOUT
                        auth request timeout in seconds (default: 60)
  --upload-url-timeout UPLOAD_URL_TIMEOUT
                        upload URL request timeout in seconds (default: 60)
  --upload-timeout UPLOAD_TIMEOUT
                        upload request timeout in seconds (default: 300)
  --sign-timeout SIGN_TIMEOUT
                        sign request timeout in seconds (default: 120)
  --multipart-threshold MULTIPART_THRESHOLD
                        multipart upload threshold in MB (default: 100, min: 20)
  --multipart-part-size MULTIPART_PART_SIZE
                        multipart upload part size in MB (default: 50, min: 20)
  --multipart-retries MULTIPART_RETRIES
                        multipart upload max retries (default: 3)
  --multipart-max-concurrency MULTIPART_MAX_CONCURRENCY
                        multipart upload max concurrent connections (default: 2)

Binaries larger than --multipart-threshold (default 100 MB) are automatically uploaded using S3 multipart upload, which enables parallel, resumable transfers with configurable part size and concurrency. The -z/--gz flag enables gzip compression of the upload stream, which can reduce transfer size at the cost of additional CPU overhead.

Legal notice / Disclaimer

THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. UPDATES, INCLUDING SECURITY UPDATES, WILL BE PROVIDED ON A BEST-EFFORT BASIS.

Metadata

Release files for castlabs-evs 1.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 castlabs-evs 1.3.3
File Size Uploaded Provenance Actions
castlabs_evs-1.3.3.tar.gz 18.9 kB Without provenance Details for castlabs_evs-1.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for castlabs-evs 1.3.3
File Interpreter ABI Platform Actions
castlabs_evs-1.3.3-py3-none-any.whl Python 3 none any Details for castlabs_evs-1.3.3-py3-none-any.whl

Total release size: 43.5 kB

Release files / castlabs_evs-1.3.3.tar.gz

Download URL castlabs_evs-1.3.3.tar.gz
Size 18.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c8c7593d96872d3f516fd569e672bb5fc77cd56678a4d0b083adac910fb3f39a
BLAKE2b-256 checksum
How to use checksums
6198cc26e2c723d00845928a54e4a3357cfc13cdb9a579b242ea5bebc7a5668c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.16

Release files / castlabs_evs-1.3.3-py3-none-any.whl

Download URL castlabs_evs-1.3.3-py3-none-any.whl
Size 24.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80cadb80ac96138c0339b6f43fbfeb63cd8e9a66a14f070dbba513c1f5bdefaa
BLAKE2b-256 checksum
How to use checksums
a57f7d41091cc80e37b7b825a2a686eb8ad663926230078031dfc9134e1af184
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.16

Security for castlabs-evs 1.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