{"id":16227998,"url":"https://github.com/dries007/phashpy","last_synced_at":"2025-06-25T01:32:51.718Z","repository":{"id":57452244,"uuid":"237778134","full_name":"dries007/pHashPy","owner":"dries007","description":"Python bindings for the pHash (perceptual hashing) library.","archived":false,"fork":false,"pushed_at":"2020-02-08T19:22:24.000Z","size":55,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-24T03:06:23.764Z","etag":null,"topics":["cppyy","phash","python","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/pHashPy/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dries007.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["dries007"],"patreon":"dries007","ko_fi":"dries007","liberapay":"Dries007","custom":["https://commerce.coinbase.com/checkout/a16ca3e2-9f69-4fbe-bb83-3e500d5b9141"]}},"created_at":"2020-02-02T13:50:08.000Z","updated_at":"2023-06-12T09:05:02.000Z","dependencies_parsed_at":"2022-09-02T08:33:20.460Z","dependency_job_id":null,"html_url":"https://github.com/dries007/pHashPy","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dries007/pHashPy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dries007%2FpHashPy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dries007%2FpHashPy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dries007%2FpHashPy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dries007%2FpHashPy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dries007","download_url":"https://codeload.github.com/dries007/pHashPy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dries007%2FpHashPy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261785396,"owners_count":23209295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cppyy","phash","python","python3"],"created_at":"2024-10-10T12:54:20.337Z","updated_at":"2025-06-25T01:32:51.700Z","avatar_url":"https://github.com/dries007.png","language":"Python","readme":"# pHashPy\n\n**Python bindings for the [pHash](https://github.com/aetilius/pHash) (perceptual hashing) library.**\n\nCopyright (c) Dries007 2020. \\\nLicensed under [GPLv3](COPYING) (or later), as is pHash itself.\n\nThe project uses cppyy to create a small wrapper around pHash functions.\n\n## Features\n\nWorking:\n \n- Video hashing\n- Image hashing (dct \u0026 mh)\n\nMissing:\n\n- Audio\n- Text\n\n## Usage\n\n### As a Command Line Tool\n\nYou can use the tool as a command line utility to generate a list of hashes from a list of files.\n\nRun `python -m pHashPy --help` for more info.\n\n### As a Library\n\nImport functions from the package's `__init__`, this will automatically load the required library files.\nIf you import the functions from the individual py files, you must call `helper.init` yourself. \n\n## Background Info\n\nFor more info on pHash:\n    \n- https://github.com/aetilius/pHash\n- https://www.phash.org/\n- https://www.phash.org/docs/design.html (Theory.)\n- https://www.phash.org/docs/howto.html (Help for developers, archived as [DevelopmentGuide.md](./DevelopmentGuide.md).)\n\n## Testing build manually\n\nUsing CentOS 7 (with docker container `quay.io/pypa/manylinux2014_x86_64`):\n\n```bash\ncd\n\nyum install -y cmake3 libpng-devel libjpeg-turbo-devel libsamplerate-devel libsndfile-devel libtiff-devel libvdpau-devel libvorbis-devel\nyum install -y epel-release\n\nrpm -v --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro\nrpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm\nyum install -y ffmpeg-devel\n\ngit clone https://github.com/dries007/pHashPy.git\ncd pHashPy\ngit submodule init\ngit submodule update\n\ncd pHash\n\necho \"include_directories(/usr/include/ffmpeg)\" \u003e\u003e CMakeLists.txt\nsed -i s/SHARED/STATIC/g CMakeLists.txt\n\nmkdir build\ncd build\ncmake3 .. -DCMAKE_BUILD_TYPE=Release -DWITH_VIDEO_HASH=1 -DWITH_AUDIO_HASH=1\nmake -j\n```\n","funding_links":["https://github.com/sponsors/dries007","https://patreon.com/dries007","https://ko-fi.com/dries007","https://liberapay.com/Dries007","https://commerce.coinbase.com/checkout/a16ca3e2-9f69-4fbe-bb83-3e500d5b9141"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdries007%2Fphashpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdries007%2Fphashpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdries007%2Fphashpy/lists"}