Skip to main content

Assert-files

This lib is a support assert to validate files content (txt, csv, pdf, docx, xlsx and etc.).

Features

  • Implemented
    • PDF
      • Form Comparing
  • Not Implemente
    • PDF *All text comparing
    • TXT
    • CSV
    • DOCX
    • XLSX

Installation

Follow lib instructions on https://pypi.org/project/assert-files/

pip install assert-files

How to use

You are able to use assert_file.file.File object or just provide the path of local file

from assert_files.assert_files import assert_objects
from assert_files.file import File

fields = ['field1', 'field2']
assert_objects(
    File(filepath='./tests/files/test_main.pdf'), 
    File(filepath='./tests/files/test_main_copy.pdf'), 
    fields=fields
)
from assert_files.assert_files import assert_files_by_path

fields = ['field1', 'field2']
assert_files_by_path(
    './tests/files/test_main.pdf', 
    './tests/files/test_main_copy.pdf', 
    fields=fields
)

Metadata

Release files for assert-files 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for assert-files 0.1.3
File Size Uploaded Provenance
assert-files-0.1.3.tar.gz 4.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for assert-files 0.1.3
File Interpreter ABI Platform
assert_files-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 8.4 kB

Release files / assert-files-0.1.3.tar.gz

Download URL assert-files-0.1.3.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0efddcac0befa0336d90ee7802bd7b93dbf937aa74efac6621d6d84ebb7c17d2
BLAKE2b-256 checksum
How to use checksums
c886e591efdb7aecb61a18c1868b77ce57c3dce559811b15a5ddde2bdbb6dd54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / assert_files-0.1.3-py3-none-any.whl

Download URL assert_files-0.1.3-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc72cdcceb710e9365c90951c001ed4be961aa4982858e93709560984255a237
BLAKE2b-256 checksum
How to use checksums
2ba7274397b5a1820b118e86888d21507bb81e130580b239fa2f80cb49e77fbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.6

Security for assert-files 0.1.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page