Skip to main content

CLI tool for testing tasks from the book Python for Network Engineers

Project description

pyneng

Install module

pip install pyneng-cli

The task check is then invoked via the pyneng command in the CLI.

Stages of working with tasks

  1. Completing tasks
  2. Checking that the task is working as it should python task_4_2.py or running the script in the editor/IDE
  3. Checking tasks with pyneng 1-5
  4. If the tests pass, we look at the solutions pyneng 1-5 -a

The second step is very important because at this stage it is much easier to find syntax errors and similar problems with the script than when running the code through the test in stage 3.

Checking tasks with tests

After completing the task, it can be checked using tests. To run the tests, you need to call pyneng in the tasks directory. For example, if you are doing chapter 4 tasks, you need to be in the exercises/04_data_structures/ directory and run pyneng in one of the ways, depending on which tasks to check.

Run tests for all tasks in the current chapter:

pyneng

Running tests for task 4.1:

pyneng 1

Running tests for tasks 4.1, 4.2, 4.3:

pyneng 1-3

If there are tasks with letters, for example, in chapter 7, you can run it in such a way as to run a check for tasks 7.2a, 7.2b (must be called in the 07_files directory):

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

pyneng-cli-4.1.0.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

pyneng_cli-4.1.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file pyneng-cli-4.1.0.tar.gz.

File metadata

  • Download URL: pyneng-cli-4.1.0.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.0

File hashes

Hashes for pyneng-cli-4.1.0.tar.gz
Algorithm Hash digest
SHA256 b22804548e2f32d91aa7a2add5e973b03dc755be9147b68a1ae02995d39bdda1
MD5 53b73154f511d493576d6ae6b54ddfce
BLAKE2b-256 39610a08d6a62cc6ec94188250602f36370deacefbb061cce4b728ef80b2d45f

See more details on using hashes here.

File details

Details for the file pyneng_cli-4.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyneng_cli-4.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.0

File hashes

Hashes for pyneng_cli-4.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c59a3e032edaab3e2ccb699f3d8853169ff4ce926735f841281fa6cc45e7d00
MD5 6a265c110132ff33dd23fe921f2cd73e
BLAKE2b-256 319c80dde3ac1f8dea919e2d2dbf9633ef85c547731c94407961dc9d3e007bc7

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