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:
tbs.Folder- a class for working with folderstbs.TestCase- model representing the Exactpro proprietary test casetbs.Csv1Reader,tbs.Csv1Writer- classes for reading and writing test cases from/to CSV1 filestbs.Csv2Reader,tbs.Csv2Writer- classes for reading and writing test cases from/to CSV2 filestbs.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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tabbyset-1.0.0.tar.gz.
File metadata
- Download URL: tabbyset-1.0.0.tar.gz
- Upload date:
- Size: 41.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ea9d7ca811ceccd48af0329e4160d78aa4044c08e69a86c635d1c1b901d4ae3
|
|
| MD5 |
13ab34a0a1a2c06c1567632327256824
|
|
| BLAKE2b-256 |
2b0242eb7f4415e0203f55a2ae1f3fa47df988f9bbb07e58f53ff2d7a490edb7
|
Provenance
The following attestation bundles were made for tabbyset-1.0.0.tar.gz:
Publisher:
release.yaml on exactpro/tabbyset
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tabbyset-1.0.0.tar.gz -
Subject digest:
1ea9d7ca811ceccd48af0329e4160d78aa4044c08e69a86c635d1c1b901d4ae3 - Sigstore transparency entry: 243815777
- Sigstore integration time:
-
Permalink:
exactpro/tabbyset@611a954611f3a1d38373615857559afcb3cdf253 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/exactpro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@611a954611f3a1d38373615857559afcb3cdf253 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tabbyset-1.0.0-py3-none-any.whl.
File metadata
- Download URL: tabbyset-1.0.0-py3-none-any.whl
- Upload date:
- Size: 63.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ada3ee0a56d391711f40586633d5b1b1407d864da51555d13ba074ef7ac9614e
|
|
| MD5 |
b93d80ab3c0987054dfe47810175cc1e
|
|
| BLAKE2b-256 |
7d2333e8b927811377e6fc2fbfadee0dba1b95b37598d0c09fbac5c46fa522d5
|
Provenance
The following attestation bundles were made for tabbyset-1.0.0-py3-none-any.whl:
Publisher:
release.yaml on exactpro/tabbyset
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tabbyset-1.0.0-py3-none-any.whl -
Subject digest:
ada3ee0a56d391711f40586633d5b1b1407d864da51555d13ba074ef7ac9614e - Sigstore transparency entry: 243815779
- Sigstore integration time:
-
Permalink:
exactpro/tabbyset@611a954611f3a1d38373615857559afcb3cdf253 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/exactpro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@611a954611f3a1d38373615857559afcb3cdf253 -
Trigger Event:
push
-
Statement type: