ptools-base
P Test Platform Tools Base Lib
How to install
pip install -U ptools-base
How to write assert
from ptools_base.tool import write_asserts
from ptools_base.schema import AssertSchema, AssertSchemaResultEnum
write_asserts(
[
AssertSchema(
result=AssertSchemaResultEnum.SUCCESS,
content="your assert content"
),
AssertSchema(
result=AssertSchemaResultEnum.FAILED,
content="your assert content"
),
AssertSchema(
result=AssertSchemaResultEnum.SKIPPED,
content="your assert content"
)
]
)
How to copy extra data
from ptools_base.tool import copy_2_extra
# copy file to extra
file_path = "your file path"
copy_2_extra(file_path)
# copy dir to extra
dir_path = "your dir path"
copy_2_extra(dir_path)
How to write env
from ptools_base.schema import EnvSchema
from ptools_base.tool import write_envs
write_envs([EnvSchema(key="your env key", value="your env value")])
Metadata
Release files for ptools-base 1.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ptools_base-1.1.5.tar.gz | 3.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ptools_base-1.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / ptools_base-1.1.5.tar.gz
| Download URL | ptools_base-1.1.5.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47d6f948319a3c6321ae081ce5ce7b5755c3f091210050360e82a490089d0a68
|
|
BLAKE2b-256 checksum How to use checksums |
f434c7fefce8d5fb645cb81fecc6499b8980e7ba4cebfccebad722a539e7c119
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.5
|
Release files / ptools_base-1.1.5-py3-none-any.whl
| Download URL | ptools_base-1.1.5-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
781b5244f70f7e51b55e6beff45f75e4440138ed516d55e1e2c2d08d082328d6
|
|
BLAKE2b-256 checksum How to use checksums |
8fec161314a4fb0a0d7afd8ecc8c1ca099937b4d00536a41a1f0146976ac1915
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.5
|
Security for ptools-base 1.1.5
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.