{"id":13725161,"url":"https://github.com/aliles/filemagic","last_synced_at":"2026-02-22T19:03:20.039Z","repository":{"id":1584853,"uuid":"2077990","full_name":"aliles/filemagic","owner":"aliles","description":"File type identification using libmagic","archived":false,"fork":false,"pushed_at":"2019-12-11T15:33:47.000Z","size":283,"stargazers_count":54,"open_issues_count":13,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-21T19:35:13.308Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://pypi.python.org/pypi/filemagic","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"rsms/ec2-webapp","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aliles.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG","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":"2011-07-20T12:58:09.000Z","updated_at":"2025-09-15T18:56:05.000Z","dependencies_parsed_at":"2022-07-11T03:34:42.983Z","dependency_job_id":null,"html_url":"https://github.com/aliles/filemagic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aliles/filemagic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliles%2Ffilemagic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliles%2Ffilemagic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliles%2Ffilemagic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliles%2Ffilemagic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aliles","download_url":"https://codeload.github.com/aliles/filemagic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliles%2Ffilemagic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29723574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T15:10:41.462Z","status":"ssl_error","status_checked_at":"2026-02-22T15:10:04.636Z","response_time":110,"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":[],"created_at":"2024-08-03T01:02:14.657Z","updated_at":"2026-02-22T19:03:19.994Z","avatar_url":"https://github.com/aliles.png","language":"Python","readme":"filemagic\n---------\n\n*filemagic* is a ctypes wrapper for `libmagic\n\u003chttp://www.darwinsys.com/file/\u003e`_, the library that supports the *file*\ncommand on most Unix systems. The package provides a simple Python API for\nidentifying files using the extensive database of magic strings that ships with\n*libmagic*.\n\n* Documentation for *filemagic* is hosted on `Read the Docs\n  \u003chttp://filemagic.readthedocs.org\u003e`_.\n* Packages are hosted by the `Python Package Index\n  \u003chttp://pypi.python.org/pypi/filemagic\u003e`_.\n\n*filemagic* has been tested against *libmagic* 5.11. It supports both Python2\nand Python3, as well as CPython and PyPy.\n\n|build_status| |coverage| |pypi_version|\n\nExample\n-------\n\nBelow is a short snippet of code showing how to use *filemagic* to identifying\nthis README file. ::\n\n    \u003e\u003e\u003e import magic\n    \u003e\u003e\u003e with magic.Magic() as m:\n    ...     m.id_filename('setup.py')\n    ...\n    'ASCII text'\n\nIt is recommended that *magic.Magic* be used with a context manager (the *with*\nstatement) to avoid leaking resources from *libmagic* when instances go out of\nscope. Otherwise the *close()* method must be called explicitly.\n\nFurther Reading\n---------------\n\nRefer to the `filemagic documenation \u003chttp://filemagic.readthedocs.org\u003e`_ for\nfurther references.\n\n.. |build_status| image:: https://secure.travis-ci.org/aliles/filemagic.png?branch=master\n   :target: http://travis-ci.org/#!/aliles/filemagic\n   :alt: Current build status\n\n.. |coverage| image:: https://coveralls.io/repos/aliles/filemagic/badge.png?branch=master\n   :target: https://coveralls.io/r/aliles/filemagic?branch=master\n   :alt: Coverage status\n\n.. |pypi_version| image:: https://pypip.in/v/filemagic/badge.png\n   :target: https://crate.io/packages/filemagic/\n   :alt: Latest PyPI version\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliles%2Ffilemagic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faliles%2Ffilemagic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliles%2Ffilemagic/lists"}