{"id":20325790,"url":"https://github.com/aboutcode-org/typecode","last_synced_at":"2026-03-07T19:33:01.684Z","repository":{"id":40418949,"uuid":"298080337","full_name":"aboutcode-org/typecode","owner":"aboutcode-org","description":"TypeCode provides comprehensive filetype and mimetype detection using multiple detectors including libmagic (included as a dependency for Linux, Windows and macOS) and Pygments.","archived":false,"fork":false,"pushed_at":"2026-01-09T06:16:50.000Z","size":6297,"stargazers_count":9,"open_issues_count":14,"forks_count":13,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-02-14T04:41:19.958Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aboutcode-org.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.rst","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-23T19:58:01.000Z","updated_at":"2026-01-08T12:14:08.000Z","dependencies_parsed_at":"2024-06-19T04:12:07.142Z","dependency_job_id":"8b6ccf0d-028c-4d98-9823-3390cfb51310","html_url":"https://github.com/aboutcode-org/typecode","commit_stats":{"total_commits":305,"total_committers":19,"mean_commits":16.05263157894737,"dds":0.3278688524590164,"last_synced_commit":"f469b5e069950feb314504d7c6e800a16a8c7eba"},"previous_names":["aboutcode-org/typecode"],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/aboutcode-org/typecode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutcode-org%2Ftypecode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutcode-org%2Ftypecode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutcode-org%2Ftypecode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutcode-org%2Ftypecode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aboutcode-org","download_url":"https://codeload.github.com/aboutcode-org/typecode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutcode-org%2Ftypecode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30227851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"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-11-14T19:41:43.124Z","updated_at":"2026-03-07T19:33:01.637Z","avatar_url":"https://github.com/aboutcode-org.png","language":"Python","readme":"========\nTypeCode\n========\n\n- license: Apache-2.0\n- copyright: copyright (c) nexB. Inc. and others\n- homepage_url: https://github.com/nexB/typecode\n- keywords: filetype, mimetype, libmagic, scancode-toolkit, typecode\n\nTypeCode provides comprehensive filetype and mimetype detection using multiple\ndetectors including libmagic (included as a dependency for Linux, Windows and\nmacOS) and Pygments. It started as library in scancode-toolkit.\nVisit https://aboutcode.org and https://github.com/nexB/ for support and download.\n\n\nWe run CI tests on:\n\n - Travis https://travis-ci.org/github/nexB/typecode\n - Azure pipelines https://dev.azure.com/nexB/typecode/_build\n\nTo install this package with its full capability (where the binaries for\nlibmagic are installed), use the `full` option::\n\n    pip install typecode[full]\n\nIf you want to use the version of libmagic (possibly) provided by your operating\nsystem, use the `minimal` option::\n\n    pip install typecode\n\nIn this case, you will need to provide a working libmagic and its database\navailable in one of these ways:\n\n- **a typecode-libmagic plugin**: See the standard ones at\n  https://github.com/nexB/scancode-plugins/tree/main/builtins\n  These can either bundle a libmagic library and its magic database or expose a\n  system-installed libmagic.\n  They do so by providing a plugin entry point as a ``scancode_location_provider``\n  for ``typecode_libmagic`` which points to a callable that must return a mapping\n  with these two keys:\n\n    - 'typecode.libmagic.dll': the absolute path to a libmagic DLL\n    - 'typecode.libmagic.db': the absolute path to a libmagic 'magic.mgc' database\n\n  See for example:\n\n    - https://github.com/nexB/scancode-plugins/blob/4da5fe8a5ab1c87b9b4af9e54d7ad60e289747f5/builtins/typecode_libmagic-linux/setup.py#L42\n    - https://github.com/nexB/scancode-plugins/blob/4da5fe8a5ab1c87b9b4af9e54d7ad60e289747f5/builtins/typecode_libmagic-linux/src/typecode_libmagic/__init__.py#L32\n\n- **environment variables**:\n\n  - TYPECODE_LIBMAGIC_PATH: the absolute path to a libmagic DLL\n  - TYPECODE_LIBMAGIC_DB_PATH: the absolute path to a libmagic 'magic.mgc' database\n\n- **a system-installed libmagic and its database availale in the system PATH**:\n\n\nThe supported libmagic version is 5.39.\n\n\nTo set up the development environment::\n\n    source configure --dev\n\nTo run unit tests::\n\n    pytest -vvs -n 2\n\nTo clean up development environment::\n\n    ./configure --clean\n\n\nTo update Pygment to a newer vendored version use vendy:\n\n  - Update the version of pygments in ``pyproject.toml``\n  - Run ``vendy``\n  - Update the src/typecpde/pygments_lexers_mapping.py\n    and src/typecode/pygments_lexers.py scripts accordingly, including their\n    ABOUT files\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboutcode-org%2Ftypecode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faboutcode-org%2Ftypecode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboutcode-org%2Ftypecode/lists"}