Skip to main content

Receptorctl is a front-end CLI and importable Python library that interacts with Receptor over its control socket interface.

Project description

Receptorctl

Receptorctl is a front-end CLI and importable Python library that interacts with Receptor over its control socket interface.

Setting up nox

This project includes a nox configuration to automate tests, checks, and other functions in a reproducible way using isolated environments. Before you submit a PR, you should install nox and verify your changes.

To run make receptorctl-lint and receptorctl-test from the repository root, you must first install nox.

  1. Install nox using python3 -m pip install nox or your distribution's package manager.
  2. Run nox --list from the receptorctl directory to view available sessions.

You can run nox with no arguments to execute all checks and tests. Alternatively, you can run only certain tasks as outlined in the following sections.

By default nox sessions install pinned dependencies from pyproject.toml.

Checking changes to Receptorctl

Run the following nox sessions to check for code style and formatting issues:

  • Run all checks.

    nox -s lint
    
  • Check code style.

    nox -s check_style
    
  • Check formatting.

    nox -s check_format
    
  • Format code if the check fails.

    nox -s format
    

Running Receptorctl tests

Run the following nox sessions to test Receptorctl changes:

  • Run tests against the complete matrix of Python versions.

    nox -s tests
    
  • Run tests against a specific Python version.

    # For example, this command tests Receptorctl against Python 3.12.
    nox -s tests-3.12
    

Updating dependencies

Update dependencies in the requirements directory as follows:

  1. Add any packages or pins to the *.in file.
  2. Do one of the following from the receptorctl directory:
  • Update all dependencies.

    nox -s pip-compile
    
  • Generate the full dependency tree for a single set of dependencies, for example:

    nox -s "pip-compile-3.12(tests)"
    

You can also pass the --no-upgrade flag when adding a new package. This avoids bumping transitive dependencies for other packages in the *.in file.

nox -s pip-compile -- --no-upgrade

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

receptorctl-1.6.3.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

receptorctl-1.6.3-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file receptorctl-1.6.3.tar.gz.

File metadata

  • Download URL: receptorctl-1.6.3.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for receptorctl-1.6.3.tar.gz
Algorithm Hash digest
SHA256 5a043610085cc28c83a223ac9b5e5e847802a9ea8b70ceca4e4e6579785aaa3b
MD5 7907f17baccc3a98e1d09a7e83de5572
BLAKE2b-256 deb6a3dac019582004d04a5ad66eb67c9361bbb1faad5f337607bb9d0740ea16

See more details on using hashes here.

File details

Details for the file receptorctl-1.6.3-py3-none-any.whl.

File metadata

  • Download URL: receptorctl-1.6.3-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for receptorctl-1.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0bebf9c0bb0bfc4f5ebe0279117fc747a21ca12512cb1282b398a7ef62eb8e0b
MD5 8779b65e09dc740e35c53d579e7d6ab8
BLAKE2b-256 d0b32ec5c126c0eb36d8e8b9b88faa07088d26de6d7ca743f19d6fc03d63e13f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page