Skip to main content

A pure Python drop-in replacement for magic

Project description

magic-pure

magic-pure is a pure Python implementation. For the moment, it helps me to execute code which uses python-magic on Windows.

Maybe, at some point, it can be used as a drop-in replacement.

Installation

$ pip install magic-pure

Usage

>>> import magic
>>> magic.from_file("testdata/test.pdf")
'PDF document, version 1.2'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

magic-pure-0.1.0.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

magic_pure-0.1.0-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page