assert-files


Nameassert-files JSON
Version 0.1.3 PyPI version JSON
download
home_pagehttps://github.com/avillanova/assert-files
SummaryAssert files in test automation
upload_time2023-10-19 11:49:03
maintainer
docs_urlNone
authoravillanova
requires_python>=3
licenseMIT
keywords assert files test automation compare
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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/

```sh
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

```python
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
)
```

```python
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
)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/avillanova/assert-files",
    "name": "assert-files",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3",
    "maintainer_email": "",
    "keywords": "assert files test automation compare",
    "author": "avillanova",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/c8/86/e591efdb7aecb61a18c1868b77ce57c3dce559811b15a5ddde2bdbb6dd54/assert-files-0.1.3.tar.gz",
    "platform": null,
    "description": "# Assert-files\n\nThis lib is a support assert to validate files content (txt, csv, pdf, docx, xlsx and etc.).\n\n## Features\n\n* Implemented\n    * PDF\n        *  Form Comparing\n* Not Implemente\n    * PDF\n        *All text comparing\n    * TXT\n    * CSV\n    * DOCX\n    * XLSX\n\n___\n## Installation\nFollow lib instructions on https://pypi.org/project/assert-files/\n\n```sh\npip install assert-files\n```\n\n## How to use\n\nYou are able to use assert_file.file.File object or just provide the path of local file\n\n```python\nfrom assert_files.assert_files import assert_objects\nfrom assert_files.file import File\n\nfields = ['field1', 'field2']\nassert_objects(\n    File(filepath='./tests/files/test_main.pdf'), \n    File(filepath='./tests/files/test_main_copy.pdf'), \n    fields=fields\n)\n```\n\n```python\nfrom assert_files.assert_files import assert_files_by_path\n\nfields = ['field1', 'field2']\nassert_files_by_path(\n    './tests/files/test_main.pdf', \n    './tests/files/test_main_copy.pdf', \n    fields=fields\n)\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Assert files in test automation",
    "version": "0.1.3",
    "project_urls": {
        "Homepage": "https://github.com/avillanova/assert-files"
    },
    "split_keywords": [
        "assert",
        "files",
        "test",
        "automation",
        "compare"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2ba7274397b5a1820b118e86888d21507bb81e130580b239fa2f80cb49e77fbb",
                "md5": "7c2e963145fa3520dc5250f236afec32",
                "sha256": "fc72cdcceb710e9365c90951c001ed4be961aa4982858e93709560984255a237"
            },
            "downloads": -1,
            "filename": "assert_files-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7c2e963145fa3520dc5250f236afec32",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3",
            "size": 4143,
            "upload_time": "2023-10-19T11:49:02",
            "upload_time_iso_8601": "2023-10-19T11:49:02.249038Z",
            "url": "https://files.pythonhosted.org/packages/2b/a7/274397b5a1820b118e86888d21507bb81e130580b239fa2f80cb49e77fbb/assert_files-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c886e591efdb7aecb61a18c1868b77ce57c3dce559811b15a5ddde2bdbb6dd54",
                "md5": "a45f8088a06b07094df94a151609cfd0",
                "sha256": "0efddcac0befa0336d90ee7802bd7b93dbf937aa74efac6621d6d84ebb7c17d2"
            },
            "downloads": -1,
            "filename": "assert-files-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "a45f8088a06b07094df94a151609cfd0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3",
            "size": 4271,
            "upload_time": "2023-10-19T11:49:03",
            "upload_time_iso_8601": "2023-10-19T11:49:03.658278Z",
            "url": "https://files.pythonhosted.org/packages/c8/86/e591efdb7aecb61a18c1868b77ce57c3dce559811b15a5ddde2bdbb6dd54/assert-files-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-19 11:49:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "avillanova",
    "github_project": "assert-files",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "assert-files"
}
        
Elapsed time: 0.12540s