Skip to main content

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'

Metadata

Release files for magic-pure 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for magic-pure 0.1.0
File Size Uploaded Provenance
magic-pure-0.1.0.tar.gz 2.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for magic-pure 0.1.0
File Interpreter ABI Platform
magic_pure-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.5 kB

Release files / magic-pure-0.1.0.tar.gz

Download URL magic-pure-0.1.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7d3a8ce4a9324acd7db0bc8afbf2572b3c147cf7f2552b788d580a67d468c76f
BLAKE2b-256 checksum
How to use checksums
07424fa20348f2790706e021737dd4b649634717a469d840f8735d0f3d177866
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7

Release files / magic_pure-0.1.0-py3-none-any.whl

Download URL magic_pure-0.1.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
103b6e4e85d43a4c68957729474fae8aa9d37f1b98dea2109ba37db57cbfea0b
BLAKE2b-256 checksum
How to use checksums
8f53f5c3d2cc81343c126daa832b6068b9a591616ac514fcf1fa5c39ea7bf63c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7

Security for magic-pure 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page