Skip to content

timclemons/clojure-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# clojure-python

by Robert P. Levy

Python libraries can be used in clojure by instantiating 
a jython interpreter via clojure's excellent java interop 
library functions. However, the way in which python code 
is wrapped by jython makes interop with python clumsy and 
verbose. This library aims to make jython interop in 
clojure nearly as seamless as basic java interop.
e

## Usage and Installation

To experiment with it:

1. clone the repository
2. mvn install:install-file -DgroupId=org.python -DartifactId=jython -Dversion=2.5.1 -Dpackaging=jar -Dfile=./etc/jython-2.5.1.jar
   (Because the Maven artifact for Jython 2.5.1 has not yet been added to the central Maven repository, for now it is necessary to install it locally with mvn before running lein deps.) 
3. lein deps
4. lein repl

To include as a dependency:

Copy the config section found at http://clojars.org/clojure-python into your dependencies in your project's project.clj.

Important: it will be necessary to include step #2 above (mvn install...) and the 2.5.1 jar itself in any installation instructions for using this as a dependency, until a recent version of Jython is made available in the central maven repository.

## License

Copyright (C) 2010 Robert P. Levy

Distributed under LGPL.

About

Improve seamlessness of Clojure Jython interop

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 100.0%