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 - epowers/java2python: Simple but effective library to translate Java source code to Python.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

100 Commits
100 Commits

Folders and files

NameName
Last commit message
Last commit date
bin
bin
 
 
doc
doc
 
 
java2python
java2python
 
 
test
test
 
 
.gitignore
.gitignore
 
 
Makefile
Makefile
 
 
readme.md
readme.md
 
 
setup.py
setup.py
 
 

Repository files navigation

java2python

Simple but effective tool to translate Java source code into Python.

There are lots of docs, plenty of tests, and many options for controlling code generation.

I'm in the process of finalizing the documentation and packaging a release. That will be release 0.5 when it's done. If you're looking for old releases, check the downloads link above.

Here's a very simple example. First we show the file:

$ cat HelloWorld.java

And we get this:

// This is the HelloWorld class with a single method.
class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, world.");
    }
}

Next we run our program:

$ j2py HelloWorld.java

And we get this:

#!/usr/bin/env python
""" generated source for module HelloWorld

"""
#  This is the HelloWorld class with a single method.
class HelloWorld(object):
    """ generated source for class HelloWorld

    """
    @classmethod
    def main(cls, args):
        """ generated source for method main

        """
        print "Hello, world."

if __name__ == '__main__':
    import sys
    HelloWorld.main(sys.argv)

About

Simple but effective library to translate Java source code to Python.

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
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.