Commits

Mikhail Korobov committed 7992d84

initial import

Comments (0)

Files changed (5)

+#projects
+\.idea
+
+#temp files
+\.pyc
+\.orig
+
+#os files
+\.DS_Store
+Thumbs.db
+
+#project-specific files
+\.tox
+stuff
+MANIFEST$
+^build
+\.ipynb$
+^dist
+^pymaging_psd.egg-info
+^\.coverage$
+\.html$
+Copyright (c) 2012 Mikhail Korobov
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+PSD support for Pymaging
+========================
+
+This module provides basic PSD support for Pymaging_.
+The license is MIT.
+
+Installation
+------------
+
+::
+
+    pip install pymaging-psd
+
+This module requires `psd-tools`_, packbits_ and distribute_.
+
+.. _Pymaging: https://github.com/ojii/pymaging
+.. _psd-tools: http://pypi.python.org/pypi/psd-tools/
+.. _packbits: http://pypi.python.org/pypi/packbits/
+.. _distribute: http://pypi.python.org/pypi/distribute
+
+Contributing
+------------
+
+Development happens at github and bitbucket:
+
+* https://github.com/kmike/pymaging-psd
+* https://bitbucket.org/kmike/pymaging-psd
+
+The main issue tracker is at github: https://github.com/kmike/pymaging-psd/issues
+
+Feel free to submit ideas, bugs, pull requests (git or hg) or regular patches.
+# -*- coding: utf-8 -*-
+from __future__ import absolute_import
+
+import psd_tools
+from pymaging.formats import Format
+
+def decode(fileobj):
+    psd = psd_tools.PSDImage.from_stream(fileobj)
+    return psd.as_pymaging()
+
+def encode(image, fileobj):
+    raise NotImplementedError("Saving to PSD is not supported")
+
+PSD = Format(decode, encode, ['psd'])
+#!/usr/bin/env python
+from setuptools import setup
+
+setup(
+    name = "pymaging-psd",
+    author = 'Mikhail Korobov',
+    author_email = 'kmike84@gmail.com',
+    url = 'https://github.com/kmike/pymaging-psd',
+    version = '0.5',
+
+    description = 'PSD support for Pymaging',
+    license = 'MIT License',
+    keywords = "pymaging png imaging",
+
+    py_modules = ['pymaging_psd'],
+    install_requires = ['pymaging', 'psd-tools', 'packbits'],
+    entry_points = {'pymaging.formats': ['psd = pymaging_psd:PSD']},
+
+    classifiers=[
+        'Development Status :: 4 - Beta',
+        'Intended Audience :: Developers',
+        'License :: OSI Approved :: MIT License',
+        'Programming Language :: Python',
+        'Programming Language :: Python :: 2',
+        'Programming Language :: Python :: 2.6',
+        'Programming Language :: Python :: 2.7',
+        'Programming Language :: Python :: 3',
+        'Programming Language :: Python :: 3.2',
+        'Programming Language :: Python :: 3.3',
+        'Programming Language :: Python :: Implementation :: CPython',
+        'Programming Language :: Python :: Implementation :: PyPy',
+        'Topic :: Multimedia :: Graphics',
+        'Topic :: Multimedia :: Graphics :: Viewers',
+        'Topic :: Multimedia :: Graphics :: Graphics Conversion',
+        'Topic :: Software Development :: Libraries :: Python Modules',
+    ]
+)