data-hasher-package


Namedata-hasher-package JSON
Version 0.1.2 PyPI version JSON
download
home_pagehttps://github.com/yourusername/mypackage
SummaryA package to hash data files and verify their hash using MD5.
upload_time2024-11-21 06:12:07
maintainerNone
docs_urlNone
authorYour Name
requires_python>=3.8
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Data Hasher Package

This package provides a `DataHasher` class to generate and verify MD5 hashes of files.

## Installation
To install the package, use:
```bash
pip install .
```

## Usage
```python
from data_hasher import DataHasher

# Example usage
hasher = DataHasher()

# Hash a file
file_hash = hasher.create_hash("/path/to/file.txt")
print(f"MD5 Hash: {file_hash}")

# Verify file hash
is_valid = hasher.verify_file_hash("/path/to/data_5d41402abc4b2a76b9719d911017c592.txt")
print(f"Is file valid: {is_valid}")

# Hash a DataFrame
import pandas as pd
df = pd.DataFrame({"col1": [1, 2], "col2": ["a", "b"]})
df_hash = hasher.create_hash_from_dataframe(df)
print(f"DataFrame MD5 Hash: {df_hash}")
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/yourusername/mypackage",
    "name": "data-hasher-package",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Your Name",
    "author_email": "your.email@example.com",
    "download_url": "https://files.pythonhosted.org/packages/db/69/2ddda17876012579ec5b844a081c836f176921654b522cd3080662878707/data_hasher_package-0.1.2.tar.gz",
    "platform": null,
    "description": "\r\n# Data Hasher Package\r\n\r\nThis package provides a `DataHasher` class to generate and verify MD5 hashes of files.\r\n\r\n## Installation\r\nTo install the package, use:\r\n```bash\r\npip install .\r\n```\r\n\r\n## Usage\r\n```python\r\nfrom data_hasher import DataHasher\r\n\r\n# Example usage\r\nhasher = DataHasher()\r\n\r\n# Hash a file\r\nfile_hash = hasher.create_hash(\"/path/to/file.txt\")\r\nprint(f\"MD5 Hash: {file_hash}\")\r\n\r\n# Verify file hash\r\nis_valid = hasher.verify_file_hash(\"/path/to/data_5d41402abc4b2a76b9719d911017c592.txt\")\r\nprint(f\"Is file valid: {is_valid}\")\r\n\r\n# Hash a DataFrame\r\nimport pandas as pd\r\ndf = pd.DataFrame({\"col1\": [1, 2], \"col2\": [\"a\", \"b\"]})\r\ndf_hash = hasher.create_hash_from_dataframe(df)\r\nprint(f\"DataFrame MD5 Hash: {df_hash}\")\r\n```\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A package to hash data files and verify their hash using MD5.",
    "version": "0.1.2",
    "project_urls": {
        "Documentation": "https://mypackages/docs",
        "Homepage": "https://github.com/yourusername/mypackage",
        "Source": "https://github.com/yourusername/mypackage"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "337ac5f8c7a27fe20643033d8db2bde8cbf8172eb005316de22eb884e8c83bdb",
                "md5": "493feb77240967757e52049a73c8793c",
                "sha256": "e25843f95a9228385bfea79349105a075ac98c206453ba0d34f89f0237f820c9"
            },
            "downloads": -1,
            "filename": "data_hasher_package-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "493feb77240967757e52049a73c8793c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 2942,
            "upload_time": "2024-11-21T06:12:05",
            "upload_time_iso_8601": "2024-11-21T06:12:05.934674Z",
            "url": "https://files.pythonhosted.org/packages/33/7a/c5f8c7a27fe20643033d8db2bde8cbf8172eb005316de22eb884e8c83bdb/data_hasher_package-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "db692ddda17876012579ec5b844a081c836f176921654b522cd3080662878707",
                "md5": "1ef9bb5ae2fd63b6150b88a4011e35ef",
                "sha256": "646d6ad26ebafd93ca644ee577c2ac4ee8e6157d68ce399277d52879edc01b4a"
            },
            "downloads": -1,
            "filename": "data_hasher_package-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "1ef9bb5ae2fd63b6150b88a4011e35ef",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 2659,
            "upload_time": "2024-11-21T06:12:07",
            "upload_time_iso_8601": "2024-11-21T06:12:07.043455Z",
            "url": "https://files.pythonhosted.org/packages/db/69/2ddda17876012579ec5b844a081c836f176921654b522cd3080662878707/data_hasher_package-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-21 06:12:07",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "yourusername",
    "github_project": "mypackage",
    "github_not_found": true,
    "lcname": "data-hasher-package"
}
        
Elapsed time: 0.43917s