Skip to content

Commit

Permalink
0.0.1
Browse files Browse the repository at this point in the history
Utilities
  • Loading branch information
zvezdochiot authored and mykaralw committed Dec 23, 2017
1 parent d0c909d commit d57410e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
8 changes: 4 additions & 4 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
- a python module implementing an MHTML creator/parser

- interesting functions
- libmhtml.get(url)
- libmhtml.parse(contents)
- pymhtml.get(url)
- pymhtml.parse(contents)

- usage
- get an URL and MTHML'ize it
> ./libmhtml.py http://www.nytimes.com /tmp/nytimes.mht
> ./pymhtml http://www.nytimes.com /tmp/nytimes.mht
- get an MHTML file and convert it into different files
> mkdir /tmp/ex
> ./libmhtml.py -p /tmp/nytimes.mht /tmp/ex/
> ./pymhtml -p /tmp/nytimes.mht /tmp/ex/

8 changes: 4 additions & 4 deletions libmhtml.py → pymhtml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@
- a python module implementing an MHTML creator/parser
- interesting functions
- libmhtml.get(url)
- libmhtml.parse(contents)
- pymhtml.get(url)
- pymhtml.parse(contents)
- usage
- get an URL and MTHML'ize it
> ./libmhtml.py http://www.nytimes.com /tmp/nytimes.mht
> ./pymhtml http://www.nytimes.com /tmp/nytimes.mht
- get an MHTML file and convert it into different files
> mkdir /tmp/ex
> ./libmhtml.py -p /tmp/nytimes.mht /tmp/ex/
> ./pymhtml -p /tmp/nytimes.mht /tmp/ex/
"""

Expand Down
12 changes: 8 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
from setuptools import setup, Extension
#from distutils.core import setup, Extension

setup(name='libmhtml',
description='MHTML library',
setup(name='pymhtml',
description='MHTML tools',
author='Chema Gonzalez',
author_email='[email protected]',
url="http://github.com/chemag/libmhtml.py",
version='0.0.1',
#py_modules=['magic'],
long_description="""This module provides an MHTML creator and parser.
""",
long_description="""This module provides an MHTML creator and parser.""",
keywords="mhtml mht",
license="BSD",
install_requires = [
'magic',
'urlgrabber',
],
scripts = ['pymhtml']
)

0 comments on commit d57410e

Please sign in to comment.