# `file-magic`: Python Bindings
This library is a Python ctypes interface to `libmagic`.
## Installing
You can install `file-magic` either with:
python setup.py install
# or
easy_install .
# or
pip install file-magic
## Using
import magic
detected = magic.detect_from_filename('magic.py')
print 'Detected MIME type: {}'.format(detected.mime_type)
print 'Detected encoding: {}'.format(detected.encoding)
print 'Detected file type name: {}'.format(detected.name)
## Developing/Contributing
To run the tests:
python setup.py test
没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
收起资源包目录
file-5.38.tar.gz (472个子文件)
configure.ac 6KB
acorn 4KB
adi 425B
adventure 4KB
algol68 678B
allegro 402B
alliant 760B
Makefile.am 10KB
Makefile.am 2KB
Makefile.am 878B
Makefile.am 826B
Makefile.am 87B
Makefile.am 82B
amanda 385B
amigaos 3KB
android 7KB
animation 46KB
aout 2KB
apache 822B
apl 276B
apple 19KB
application 273B
applix 428B
apt 2KB
archive 53KB
assembler 700B
asterix 584B
att3b 1KB
audio 35KB
AUTHORS 13B
basis 571B
beetle 289B
ber 2KB
bflt 414B
bhl 341B
bioinformatics 8KB
biosig 5KB
blackberry 282B
blcr 746B
blender 1KB
blit 884B
bout 349B
bsdi 1KB
bsi 263B
btsnoop 429B
apprentice.c 73KB
softmagic.c 53KB
readelf.c 44KB
cdf.c 41KB
compress.c 22KB
vasprintf.c 19KB
encoding.c 19KB
readcdf.c 16KB
file.c 15KB
magic.c 15KB
funcs.c 14KB
getopt_long.c 13KB
fsmagic.c 11KB
ascmagic.c 10KB
der.c 10KB
is_json.c 9KB
print.c 7KB
seccomp.c 7KB
fmtcheck.c 5KB
is_tar.c 5KB
apptype.c 4KB
is_csv.c 4KB
cdf_time.c 4KB
test.c 3KB
strcasestr.c 3KB
getline.c 3KB
buffer.c 3KB
dprintf.c 2KB
asprintf.c 2KB
strlcat.c 2KB
strlcpy.c 2KB
localtime_r.c 448B
gmtime_r.c 436B
pread.c 424B
asctime_r.c 415B
ctime_r.c 402B
c-lang 3KB
c64 2KB
cad 12KB
cafebabe 2KB
cbor 610B
cddb 386B
ChangeLog 53KB
chord 577B
cisco 495B
citrus 227B
clarion 769B
claris 2KB
clipper 2KB
clojure 1KB
coff 3KB
commands 5KB
communications 853B
compile 7KB
compress 13KB
共 472 条
- 1
- 2
- 3
- 4
- 5
智渝
- 粉丝: 498
- 资源: 56
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0