./sysutils/py-puremagic, Pure python implementation of magic file detection

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


Branch: CURRENT, Version: 1.21, Package name: py311-puremagic-1.21, Maintainer: pkgsrc-users

puremagic is a pure python module that will identify a file based off its
magic numbers.

It is designed to be minimalistic and inherently cross platform
compatible. It is also designed to be a stand in for python-magic, it
incorporates the functions from_file(filename[, mime]) and
from_string(string[, mime]) however the magic_file() and magic_string()
are more powerful and will also display confidence and duplicate
matches.

It does NOT try to match files off non-magic string. In other words it
will not search for a string within a certain window of bytes like
others might.


Master sites:

Filesize: 292.57 KB

Version history: (Expand)


CVS history: (Expand)


   2024-02-25 16:19:59 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
py-puremagic: update to 1.21.

Version 1.21
------------

- Adding #50 details for  ZSoft .pcx files (thanks to Andy - NebularNerd)
- Adding #51 details for JXL files (thanks to Andy - NebularNerd)
- Adding #54 missing py.typed file (thanks to Raphaƫl Vinot)
- Fixing #53 magic data for GIF images (thanks to Andy - NebularNerd)
   2024-02-13 11:36:22 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-puremagic: updated to 1.20

Version 1.20
------------

- Adding support for multi-part header checks (thanks to Andy)
- Fixing matches for webp (thanks to Nicolas Wicht)
- Fixing matches for epub (thanks to Alexander Walters)
   2023-06-01 18:02:57 by Thomas Klausner | Files touched by this commit (4)
Log message:
sysutils/py-puremagic: import py-puremagic-1.15

Packaged for wip by Olaf Seibert and myself.

puremagic is a pure python module that will identify a file based off its
magic numbers.

It is designed to be minimalistic and inherently cross platform
compatible. It is also designed to be a stand in for python-magic, it
incorporates the functions from_file(filename[, mime]) and
from_string(string[, mime]) however the magic_file() and magic_string()
are more powerful and will also display confidence and duplicate
matches.

It does NOT try to match files off non-magic string. In other words it
will not search for a string within a certain window of bytes like
others might.