{"id":27003041,"url":"https://github.com/riad-azz/py-file-type","last_synced_at":"2026-07-03T17:33:04.561Z","repository":{"id":153993450,"uuid":"631364804","full_name":"riad-azz/py-file-type","owner":"riad-azz","description":"Wrapper for python-magic that includes necessary bin files.","archived":false,"fork":false,"pushed_at":"2023-04-22T20:13:56.000Z","size":403,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-06-22T16:05:37.379Z","etag":null,"topics":["libmagic","library-wrapper","pypi","pypi-package","python","python-magic","python-magic-bin"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/py-file-type/","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/riad-azz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-04-22T19:43:26.000Z","updated_at":"2023-11-30T12:45:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"8121bd60-2253-4e6e-ab4d-544662710bd7","html_url":"https://github.com/riad-azz/py-file-type","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/riad-azz/py-file-type","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riad-azz%2Fpy-file-type","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riad-azz%2Fpy-file-type/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riad-azz%2Fpy-file-type/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riad-azz%2Fpy-file-type/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riad-azz","download_url":"https://codeload.github.com/riad-azz/py-file-type/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riad-azz%2Fpy-file-type/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35096006,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-03T02:00:05.635Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["libmagic","library-wrapper","pypi","pypi-package","python","python-magic","python-magic-bin"],"created_at":"2025-04-04T05:15:07.286Z","updated_at":"2026-07-03T17:33:04.556Z","avatar_url":"https://github.com/riad-azz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Py File Type\n\nA wrapper for [python-magic](https://pypi.org/project/python-magic/) that includes python-magic-bin files.\n\n## Description\n\nThis was made duo to a file conflict problem happening when trying to\ninstall [python-magic](https://github.com/ahupp/python-magic)\nand [python-magic-bin](https://pypi.org/project/python-magic-bin/).\n\n## Installing\n\n```bash\npip install py-file-type\n```\n\n## Usage\n\nWorks exactly like [python-magic](https://github.com/ahupp/python-magic)\n\n```python\nimport py_file_type as magic\n\nfile_type = magic.from_file('video.mp4', mime=True)\nprint(file_type)  # -\u003e video/mp4\n```\n\n## Authors\n\nRiadh Azzoun - [@riad-azz](https://github.com/riad-azz)\n\n## License\n\nThis project is licensed under the [MIT] License - see the LICENSE.md file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friad-azz%2Fpy-file-type","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friad-azz%2Fpy-file-type","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friad-azz%2Fpy-file-type/lists"}