./sysutils/py-filetype, Infer binary file types checking the magic numbers signature

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.2.0, Package name: py310-filetype-1.2.0, Maintainer: khorben

Small and dependency free Python package to infer file type and MIME type
checking the magic numbers signature of a file or buffer.

This is a Python port from filetype Go package.


Required to run:
[devel/py-setuptools] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 974.629 KB

Version history: (Expand)


CVS history: (Expand)


   2022-11-14 11:11:38 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-filetype: updated to 1.2.0

v1.2.0 / 2022-11-02
===================

* chore(version): bump minor
* Merge pull request 147 from sayanarijit/fix-146
* Add tests for m4a
* Try matching audio before video
* Merge pull request 145 from RSabet/master
* update README to include avif
* added image filetype avif
* Update __init__.py
* Merge pull request 141 from ferstar/master
* test: remove unused imported(F401)
* refactor: duck-typing reading magic string and try to restore the reader \ 
position if possible
* test: fix E275 missing whitespace after keyword
* test: Use tox pipeline instead of pytest
* test: ignore E501 error for flake8 check
* fix: CLI params parser
* Merge pull request 137 from ferstar/master
* fix: guess ".docx" func and add another doc file test case
* fix: guess ".doc" func and add another doc file test case
* test: skip benchmark test in tox config
* fix: restore reader position after retrieving signature bytes
* Merge pull request 136 from ferstar/master
* test: no need to skip zstd test case
* Merge pull request 135 from ferstar/master
* fix: regression for file-like obj file type detection
* Merge pull request 134 from babenek/actions
* Merge pull request 129 from ferstar/master
* Merge branch 'master' into master
* Merge pull request 133 from magbyr/master
* Merge pull request 131 from babenek/master
* CI workflow in github actions
* Changed to if statements in matching method
* Changed return method because of coverage calculation problems
* Extra line at EOF
* Extra line at EOF
* Extra line at EOF
* Apply suggestions from code review
* README changes
* Linter changes
* Added document filetypes for doc, docx, odt, xls, xlsx, ods, ppt, pptx and \ 
odp. Added tests and sample documents for document filetypes
* Fix undocumented exception
* style: Simplify binary to integer method
* feat: add zstd skippable frames support
* test: fix the tox config and missing test sample files
* test: fix the zst test sample file
* fix(readme): rst syntax wtf
   2022-08-18 19:11:57 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-filetype: updated to 1.1.0

v1.1.0
* feat(version): bump minor
* docs: add zstd type
* fix: remove unnecessary duck-typing try
* feat: add zst(d) type
* chore: fix lint errors
* test: fix memoryview test cases
* BugFix for uncaught exceptions
* Support PDF with BOM
   2022-05-02 10:46:18 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-filetype: updated to 1.0.13

v1.0.13 / 2022-04-21
====================

  * chore(version): bump patch
  * chore(version): bump patch
  * refactor(apng)
  * refactor(apng)
  * Merge pull request 120
  * fix typo
  * add APNG support (part 3)
  *  add APNG support (part 2)
  * add APNG support (part 1)

v1.0.12 / 2022-04-19
====================

  * Merge branch 'master' of https://github.com/h2non/filetype.py
  * feat: version bump
  * Merge pull request 118
  * fix(font): minimum length check (woff)
  * Add support for more WOFF/WOFF2 flavors
   2022-04-18 13:35:09 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-filetype: updated to 1.0.10

v1.0.10
* Merge pull request 113 from nottaw/master
* Use `==` for string comparisons
   2022-01-05 16:41:32 by Thomas Klausner | Files touched by this commit (289)
Log message:
python: egg.mk: add USE_PKG_RESOURCES flag

This flag should be set for packages that import pkg_resources
and thus need setuptools after the build step.

Set this flag for packages that need it and bump PKGREVISION.
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-12-31 13:16:52 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-filetype: updated to 1.0.9

v1.0.9

Update init.py
Merge pull request 111 from asfaltboy/patch-1
Add python 3.9 to version classifiers
Merge pull request 108 from hannesbraun/aiff-support
Add AIFF support
fix(Readme): rst syntax
   2021-10-26 13:20:30 by Nia Alarie | Files touched by this commit (630)
Log message:
sysutils: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes