missing-py2: Haskell interface to Python

[ foreign, gpl, library ] [ Propose Tags ] [ Report a vulnerability ]

A Haskell Interface into the standard Python Interpreter

A fork of John Goerzen's MissingPy library, hlinted and updated to run with GHC 7.6.3, this is for legacy projects.

For newer projects you might want to consider http://hackage.haskell.org/package/cpython instead.

Original Documentation:

MissingPy is two things:

A Haskell binding for many C and Python libraries for tasks such as data compression, databases, etc. This can be found in the MissingPy module tree.

Also, it's a low-level Haskell binding to the Python interpreter to enable development of hybrid applications that use both environments. This can be found in the Python module tree. The Haskell bindings above use this environment.

MissingPy permits you to call Python code from Haskell. It does NOT permit you to call Haskell code from Python.

MissingPy is the companion to my MissingH library, and integrates with it.


[Skip to Readme]

Modules

  • MissingPy
    • MissingPy.AnyDBM
    • FileArchive
      • MissingPy.FileArchive.BZip2
      • MissingPy.FileArchive.GZip
  • Python
    • Python.Exceptions
      • Python.Exceptions.ExcTypes
    • Python.Interpreter
    • Python.Objects
      • Python.Objects.Dict
      • Python.Objects.File
    • Python.Types
    • Python.Utils

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 1.0.0, 1.0.1
Dependencies anydbm (>=1.0.5), base (>=4 && <5), MissingH (>=1.0.1) [details]
License GPL-2.0-only
Copyright Copyright (c) 2005-2008 John Goerzen
Author John Goerzen
Maintainer Dom De Re
Category Foreign
Home page https://github.com/domdere/missing-py2
Bug tracker https://github.com/domdere/missing-py2/issues
Source repo head: git clone git://github.com/domdere/missing-py2.git
this: git clone git://github.com/domdere/missing-py2.git(tag 1.0.1)
Uploaded by domdere at 2013-11-12T00:31:12Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 2087 total (7 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-12-20 [all 9 reports]

Readme for missing-py2-1.0.1

[back to package description]

missing-py2 Build Status

A fork of John Goerzen's [MissingPy] softmechanics-missingpy

Updated to run with GHC 7.6.3 and run with Python 2.7.3, for maintaining projects with existing MissingPy dependencies.

see the original documentation for that project here.

Usage

Just add missing-py2 to your build-depends list, e.g:

build-depends:
        base < 5 && >= 4
    ,   missing-py2

The original documentation prescribes that the OverlappingInstances GHC extension is neccessary anywhere you use the Python.* modules.

That may be neccessary, however the unit tests seem to run fine without it now.

Don't forget to run py_initialize from Python.Interpreter during the start up phase of your application

Requires the python-dev libs, which can be installed on Ubuntu with sudo apt-get install python-dev.

See Also

  • [softmechanics/missingpy] softmechanics-missingpy : The original project
  • cpython : Another set of libpython bindings (looks more well-maintained), this would probably be preferable for new projects.