Skip to main content

Assembles WAR files from Python (Jython) WSGI applications

Project description

snakefight

snakefight generates WAR files from Python (Jython) WSGI applications, suitable for deployment to Java Servlet containers.

Installation

snakefight requires at least Jython 2.5b2. To install:

$ easy_install snakefight

Creating WAR files

snakefight provides a new distutils command: bdist_war.

To create a WAR file, create a web.xml deployment descriptor (which would typically utilize the modjy library for the actual Servlet) and run:

$ jython setup.py bdist_war --web_xml web.xml

snakefight can automatically generate a web.xml (utilizing modjy) for Paste style projects (those that support the paste.app_factory entry point), by specifying the --paste-config option. To specify a named app in the config file, use the --paste-app-name option (which defaults to main):

$ jython setup.py bdist_war --paste-config production.ini --paste-app-name cascade

snakefight can also be ran from CPython (at least version 2.5) as long as a JYTHON_HOME is specified:

$ jython setup.py bdist_war --web_xml web.xml --jython-home=~/jython2.5b2

Other options:

  • --war-prefix Prefix of the war file to build

  • --no-jython Don’t include the Jython distribution

TODO

Add options for:

  • exclude-requires: exclude certain eggs from inclusion

  • static_files: list of directories to serve public files (through the faster org.jruby.webapp.FileServlet)

  • specifying modjy options

  • include-java-libs: list of jars to also include in WEB-INF/lib

Support:

  • non setuptools apps? (like Django apps) django-jython already handles Django but ideally we’d share code

Changelog

0.2

  • easy_install’ing the app is now the first step

0.1

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snakefight-0.2.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

snakefight-0.2-py2.5.egg (11.5 kB view details)

Uploaded Source

File details

Details for the file snakefight-0.2.tar.gz.

File metadata

  • Download URL: snakefight-0.2.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for snakefight-0.2.tar.gz
Algorithm Hash digest
SHA256 18402c47ffcd1f3bd524b089df2c4f3c83b2485dfadf862e5189c38260606214
MD5 3c7c1b00f5e03f3d2244ee6d94657a08
BLAKE2b-256 f59efe0f3e0403c00ce5a6f06b74feb0f47fcc1ef15ee27f33953f15bacf335d

See more details on using hashes here.

File details

Details for the file snakefight-0.2-py2.5.egg.

File metadata

  • Download URL: snakefight-0.2-py2.5.egg
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for snakefight-0.2-py2.5.egg
Algorithm Hash digest
SHA256 fa85a540516bb934031d42cf752cc0256f5842717c566c486d1b9eb3254eac1a
MD5 347699e45efe90cb13faee3872bdeb83
BLAKE2b-256 f9a251845f5dab069bbb56ef20277dd5756277fb4a50106455db3de2098d3e18

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page