{"id":38669515,"url":"https://github.com/dobizz/filext","last_synced_at":"2026-01-17T09:53:26.434Z","repository":{"id":60076882,"uuid":"540913746","full_name":"dobizz/filext","owner":"dobizz","description":"Python library to identify file type based on its file signature","archived":false,"fork":false,"pushed_at":"2025-04-13T00:55:55.000Z","size":138,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-04T10:09:35.801Z","etag":null,"topics":["files","python","utilities"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/filext/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dobizz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-24T17:37:15.000Z","updated_at":"2025-04-13T00:55:58.000Z","dependencies_parsed_at":"2023-02-18T21:15:56.670Z","dependency_job_id":null,"html_url":"https://github.com/dobizz/filext","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/dobizz/filext","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobizz%2Ffilext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobizz%2Ffilext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobizz%2Ffilext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobizz%2Ffilext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dobizz","download_url":"https://codeload.github.com/dobizz/filext/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobizz%2Ffilext/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28505565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["files","python","utilities"],"created_at":"2026-01-17T09:53:25.518Z","updated_at":"2026-01-17T09:53:26.420Z","avatar_url":"https://github.com/dobizz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# filext\nPython library to identify file type based on its file signature\n\n### Installation\n```\npip install filext\n```\n\n### Usage\n\nIf the category of the file is not certain, you may use `whatfile` but is a little slower\n```python\nfrom filext import whatfile\n\nfile_path = \"./tests/files/document.pdf\"\n\n# pass file as path str\nfile_type = whatfile(file_path)\n\nwith open(filepath, \"rb\") as file:\n    # pass file as bytes\n    file_type = whatfile(file.read())\n```\n\nIf the category of the file is known, you may use the function for that category instead.\n```python\nfrom filext import whatdoc\n\nfile_path = \"./tests/files/document.pdf\"\n\n# pass file as path str\nfile_type = whatdoc(file_path)\n\nwith open(filepath, \"rb\") as file:\n    # pass file as bytes\n    file_type = whatdoc(file.read())\n```\n\n### Supported File Types\n#### Documents\n- [x] PDF\n- [x] DOC\n- [x] PPT\n- [x] XLS\n- [x] DOCX\n- [x] PPTX\n- [x] XLSX\n\n#### Images\n- [x] BMP\n- [x] GIF\n- [x] HEIC\n- [x] JPG\n- [x] PNG\n- [x] TIF\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdobizz%2Ffilext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdobizz%2Ffilext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdobizz%2Ffilext/lists"}