GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jeff5/jython: Python for the Java Platform

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

8,537 Commits
8,537 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
Demo
Demo
 
 
Doc
Doc
 
 
Lib
Lib
 
 
Misc
Misc
 
 
ProcessDocs
ProcessDocs
 
 
ast
ast
 
 
b/.idea/libraries
b/.idea/libraries
 
 
bugtests
bugtests
 
 
extlibs
extlibs
 
 
gradle/wrapper
gradle/wrapper
 
 
grammar
grammar
 
 
installer
installer
 
 
lib-python
lib-python
 
 
maven
maven
 
 
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
ACKNOWLEDGMENTS
ACKNOWLEDGMENTS
 
 
CPythonLib.includes
CPythonLib.includes
 
 
CoreExposed.includes
CoreExposed.includes
 
 
LICENSE.txt
LICENSE.txt
 
 
NEWS
NEWS
 
 
NOTICE.txt
NOTICE.txt
 
 
README.md
README.md
 
 
README.txt
README.txt
 
 
SECURITY.md
SECURITY.md
 
 
build.gradle
build.gradle
 
 
build.xml
build.xml
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
registry
registry
 
 
settings.gradle
settings.gradle
 
 
verbose.tests
verbose.tests
 
 

Repository files navigation

Jython: Python for the Java Platform

Maven Central Javadocs APIdia

This is the development repository of Jython, the implementation of Python in Java. Only version 2.7 of Python can be supported at present (but watch this space for a 3.x version).

Compatibility

Jython provides good compatibility with Python 2.7 the language. Also, a high proportion of the standard library is included, taken from late versions of CPython (around 2.7.13). Some standard library modules have a Jython-specific implementation that has not kept pace with its CPython counterpart.

Jython 2.7 support for the Python ecosystem includes built-in support of pip/setuptools. You can use bin/pip if the targets do not include C extensions. There is a native launcher for Windows (bin/jython.exe) that works essentially like the python command.

Jim Baker presented a talk at PyCon 2015 about Jython 2.7, including demos of new features: https://www.youtube.com/watch?v=hLm3garVQFo

Support

Python 2.7 (the language) is no longer supported by the PSF. Running on Jython should not be considered an alternative to porting your application to Python 3, due to the limitations cited here and the small amount of effort available to support 2.7.x. Jython 2.7 is offered for continuity because a 3.x is not yet available.

See ACKNOWLEDGMENTS for details about Jython's copyright, license, contributors, and mailing lists. Consult NEWS for detailed release notes, including bugs fixed, backward breaking changes, and new features. We sincerely thank all who contribute to Jython, by bug reports, patches, pull requests, documentation changes and e-mail discussions.

Downloads

Binary downloads are available from https://www.jython.org/download along with Maven and Gradle dependency information.

How to build Jython

The project uses Git for version-control, and the master repository is at https://github.com/jython/jython, You should clone this repository to create a buildable copy of the latest state of the Jython source. Start a new branch for any bug-fix or experimentation you plan.

The previously authoritative repository at https://hg.python.org/jython is not now in use, remaining frozen at v2.7.2.

Build using ant for development

Jython is normally built using ant. It is necessary to have Ant and at least a Java 8 SDK on the path. To build Jython in development, we generally use the command:

ant

This leaves an executable in dist/bin that you may run from the check-out root with:

dist/bin/jython

Other ant targets exist, notably clean, javatest and jar.

You can test your build of Jython (by running the regression tests), with the command:

dist/bin/jython -m test.regrtest -e -m regrtest_memo.txt

or by invoking the Ant target regrtest.

Build an installer using ant

If you want to install a snapshot build of Jython, use the command:

ant installer

This will leave you with a snapshot installer JAR in dist, that you can run with:

java -jar jython-installer.jar

for the graphical installer, or:

java -jar jython-installer.jar --console

For the console version. (A --help option gives you the full story.)

Build a JAR using Gradle

We have a Gradle build that results in a family of JARs and a POM. This is intended to provide the Jython core in a form that Gradle and Maven users can consume as a dependency. Invoke this with:

PS> .\gradlew publish

and a JAR and POM are delivered to .build2\repo

Whereas the JARs delivered by the installer are somewhat "fat", embedding certain dependencies in shaded (renamed) form, the JAR from the Gradle build is "spare" and cites its dependencies externally through a POM.

Other Useful Documentation

Project Processes

About

Python for the Java Platform

www.jython.org

Resources

Readme
License

Security policy

Security policy
Activity

Stars

0 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.