Skip to main content

Exactpro basic tooling for working with tests proprietary files

Project description

TabbySet

TabbySet is a kit of simple tools for working with all business processes around the exactpro model.

Installation

You can install TabbySet using pip:

pip install tabbyset

Usage

In general, when you want to write a new script, you should start with the following code:

import tabbyset as tbs

tbs variable will provide you with all the necessary tools for working with the proprietary tests.

Here are some utilities:

  1. tbs.Folder - a class for working with folders
  2. tbs.TestCase - model representing the Exactpro proprietary test case
  3. tbs.Csv1Reader, tbs.Csv1Writer - classes for reading and writing test cases from/to CSV1 files
  4. tbs.Csv2Reader, tbs.Csv2Writer - classes for reading and writing test cases from/to CSV2 files
  5. tbs.floor_to_tick, tbs.ceil_to_tick, tbs.round_to_tick - functions for rounding prices to the nearest tick

Example of filtering the CSV file

import tabbyset as tbs
src_folder = tbs.Folder.mount_from_current_module('./path/to/folder')
output_folder = tbs.Folder.mount_from_current_module('./path/to/output/folder')
# Get list of all files in the folder
files = src_folder.listdir()
# You might want to sort the files
files.sort()
for file in files:
    test_script_path = src_folder.get_file_path(file)
    csv1_reader = tbs.Csv1Reader(test_script_path)
    csv1_writer = tbs.Csv1Writer(output_folder.get_file_path(file))
    for test_case in csv1_reader:
        if {"Action": "Quote"} not in test_case.steps:
            csv1_writer.write(test_case)
    csv1_reader.close()
    csv1_writer.close()

Good old instruments

TabbySet provides a set of instruments with the same interface as the ones already present in the business processes, but with tested functionality under the hood and/or faster.

Testing

TabbySet provides utilities for testing compatible with the unittest module.

from tabbyset.testing import TestCaseAssertions #, ... other utilities

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

tabbyset-1.0.2.tar.gz (41.2 kB view details)

Uploaded Source

Built Distribution

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

tabbyset-1.0.2-py3-none-any.whl (63.9 kB view details)

Uploaded Python 3

File details

Details for the file tabbyset-1.0.2.tar.gz.

File metadata

  • Download URL: tabbyset-1.0.2.tar.gz
  • Upload date:
  • Size: 41.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tabbyset-1.0.2.tar.gz
Algorithm Hash digest
SHA256 42a5b5925f9763665572a8ad01c497aa4518abcccbd8dd01162ab4051d64bf06
MD5 7050a26e6c1b65f0cce19d0538396d6a
BLAKE2b-256 ffc180d0635951ae70937d905da16c0f9724192fd54e12058e07e3897965b00f

See more details on using hashes here.

Provenance

The following attestation bundles were made for tabbyset-1.0.2.tar.gz:

Publisher: release.yaml on exactpro/tabbyset

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tabbyset-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: tabbyset-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 63.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tabbyset-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f1bf5a064010d029c680bf949f86805c26a563b5ec44ebcb3b0c2cf228020ae6
MD5 375a4e463e85ca75c5943b35ec34ee34
BLAKE2b-256 6662b2f0e98e3d8ec8df8af0f1f705830b4e8e137aa07ede6ecbeca851230553

See more details on using hashes here.

Provenance

The following attestation bundles were made for tabbyset-1.0.2-py3-none-any.whl:

Publisher: release.yaml on exactpro/tabbyset

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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