Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to search
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
CodersSampling
/
python-magic
Public
forked from
ahupp/python-magic
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
python-magic
magic
on
master
User selector
All users
All time
Commit history
Commits on Mar 2, 2025
format with ruff
ahupp
committed
62bd3c6
View commit details
Copy full SHA for 62bd3c6
View code at this point
Browse repository at this point
Commits on Feb 19, 2025
Unbreak various things
Show description for a3ed086
ahupp
committed
a3ed086
View commit details
Copy full SHA for a3ed086
View code at this point
Browse repository at this point
Commits on Feb 11, 2025
update magic/compat.py
Show description for 36ecbf9
ahupp
committed
36ecbf9
View commit details
Copy full SHA for 36ecbf9
View code at this point
Browse repository at this point
Commits on May 26, 2024
log warning on ctypes load error, adapted from #279
ahupp
committed
a9e6276
View commit details
Copy full SHA for a9e6276
View code at this point
Browse repository at this point
smartos support, adapted from #132
ahupp
committed
339eac0
View commit details
Copy full SHA for 339eac0
View code at this point
Browse repository at this point
handle unknown platforms gracefully in loader.py
ahupp
committed
0a2fda3
View commit details
Copy full SHA for 0a2fda3
View code at this point
Browse repository at this point
Clean up loader.py
cclauss
authored and
ahupp
committed
cf21065
View commit details
Copy full SHA for cf21065
View code at this point
Browse repository at this point
Commits on Oct 9, 2023
Magic.__init__: add kwargs to enable/disable different types of magic detection
risicle
authored and
ahupp
committed
fd279e0
View commit details
Copy full SHA for fd279e0
View code at this point
Browse repository at this point
typing stubs: add Magic.__init__ extension & follow_symlinks args
risicle
authored and
ahupp
committed
64ed0bd
View commit details
Copy full SHA for 64ed0bd
View code at this point
Browse repository at this point
Commits on Aug 25, 2023
add MAGIC_SYMLINK support, and tests for same
ahupp
committed
2a01b18
View commit details
Copy full SHA for 2a01b18
View code at this point
Browse repository at this point
fix: Don't raise FileNotFoundException on symlinks
Show description for 7229954
maringuu
authored and
ahupp
committed
7229954
View commit details
Copy full SHA for 7229954
View code at this point
Browse repository at this point
Commits on Mar 30, 2023
Revert "added path for local homebrew installation (#267)"
Show description for 3ab9608
ahupp
committed
3ab9608
View commit details
Copy full SHA for 3ab9608
View code at this point
Browse repository at this point
Revert "remove python3-ism from loader"
Show description for 7cde785
ahupp
committed
7cde785
View commit details
Copy full SHA for 7cde785
View code at this point
Browse repository at this point
Commits on Jan 10, 2023
remove python3-ism from loader
ahupp
committed
c7a2e7b
View commit details
Copy full SHA for c7a2e7b
View code at this point
Browse repository at this point
Commits on Oct 24, 2022
added path for local homebrew installation (#267)
Show description for cd3929f
manvento
authored
cd3929f
View commit details
Copy full SHA for cd3929f
View code at this point
Browse repository at this point
Commits on Jun 16, 2022
Add "magic-1.dll" to the list of DLL files to search for on Windows
Show description for f3ab085
valpogus
authored
f3ab085
View commit details
Copy full SHA for f3ab085
View code at this point
Browse repository at this point
Commits on Oct 4, 2021
Support os.PathLike types
Show description for 7f7542f
ahupp
committed
7f7542f
View commit details
Copy full SHA for 7f7542f
View code at this point
Browse repository at this point
Commits on Sep 2, 2021
Fix compat mode handling with empty mime string
Show description for 73bcc74
ahupp
committed
73bcc74
View commit details
Copy full SHA for 73bcc74
View code at this point
Browse repository at this point
Commits on Jun 3, 2021
fix alpine library loading
ahupp
committed
4ed6b03
View commit details
Copy full SHA for 4ed6b03
View code at this point
Browse repository at this point
Commits on Jun 1, 2021
Cleanup library loading
Show description for 816e4d7
ahupp
committed
816e4d7
View commit details
Copy full SHA for 816e4d7
View code at this point
Browse repository at this point
Commits on May 21, 2021
add py.typed sentinal per https://www.python.org/dev/peps/pep-0561/#packaging-type-information
ahupp
committed
29450ec
View commit details
Copy full SHA for 29450ec
View code at this point
Browse repository at this point
Commits on May 16, 2021
Check for cookie attribute before trying to delete it
Show description for 12d0ea0
jspricke
committed
12d0ea0
View commit details
Copy full SHA for 12d0ea0
View code at this point
Browse repository at this point
Revert "Fix bug in Magic when destructor called too early"
Show description for 0ab68b2
jspricke
committed
0ab68b2
View commit details
Copy full SHA for 0ab68b2
View code at this point
Browse repository at this point
Commits on May 10, 2021
Fix typo (compatability --> compatibility)
EtiennePelletier
committed
3174a78
View commit details
Copy full SHA for 3174a78
View code at this point
Browse repository at this point
Commits on Feb 17, 2021
Fix yet another import error
Show description for e0ccc6d
ahupp
committed
e0ccc6d
View commit details
Copy full SHA for e0ccc6d
View code at this point
Browse repository at this point
Commits on Feb 16, 2021
Factor out dll loader so it can be used by both compat and standard library
Show description for b520bf0
ahupp
committed
b520bf0
View commit details
Copy full SHA for b520bf0
View code at this point
Browse repository at this point
Commits on Jan 15, 2021
add more doc pointers for compat mode, and enable PendingDeprecationWarning
ahupp
committed
0a456a7
View commit details
Copy full SHA for 0a456a7
View code at this point
Browse repository at this point
prefix add_compat with an underscore to avoid namespace pollution
ahupp
committed
ab41b1d
View commit details
Copy full SHA for ab41b1d
View code at this point
Browse repository at this point
remove from_open_file, since its duplicative with from_descriptor and hasnt been released yet
ahupp
committed
665b7bd
View commit details
Copy full SHA for 665b7bd
View code at this point
Browse repository at this point
move typing stubs next to implementation
ahupp
committed
1f525c8
View commit details
Copy full SHA for 1f525c8
View code at this point
Browse repository at this point
cp
ahupp
committed
c645781
View commit details
Copy full SHA for c645781
View code at this point
Browse repository at this point
temorarily remove dropped support for python2
ahupp
committed
b2d567e
View commit details
Copy full SHA for b2d567e
View code at this point
Browse repository at this point
Commits on Jan 13, 2021
Reformat according to PEP
Show description for a747024
SchoolGuy
committed
a747024
View commit details
Copy full SHA for a747024
View code at this point
Browse repository at this point
Commits on Jan 15, 2018
various cleanups proposed by debian folks
ahupp
committed
798aa06
View commit details
Copy full SHA for 798aa06
View code at this point
Browse repository at this point
Commits on Dec 4, 2017
Merge in compatability mode with libmagic
Show description for a0b9f31
ahupp
committed
a0b9f31
View commit details
Copy full SHA for a0b9f31
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.