Skip to main content

Tools to convert Python bytecode into Java bytecode.

Project description

A transpiler that converts Python bytecode into Java bytecode.

This is experimental code. If it breaks, you get to keep all the shiny pieces.

What it does:

  • Provides an API to let you programmatically create Java class files.

Quickstart

Install voc, then run the sample script.

$ pip install voc $ python tests/sample.py Creating class ‘sample’… Writing sample.class… Done.

This will produce a sample.class that you can run on any Java 1.7+ VM.

$ java sample Hello, World

Documentation

Documentation for VOC can be found on Read The Docs.

Why “VOC”?

The Vereenigde Oostindische Compagnie (VOC), or Dutch East India Company, is often considered the be the world’s first multinational corporation. It was also the first company to issue shares, and facilitate the trading of those shares. It was granted a 21 year monopoly to carry out trade activities in Asia, primarily the Spice Islands - the Dutch East Indies. They established a major trading port at Batavia - now Jakarta, on the island of Java (now part of Indonesia). As a result of their monopoly, the VOC became an incredibly valuable company, issuing an 18% annual dividend for almost 200 years.

VOC was… the worlds first Enterprise site in Java. (rimshot!)

Community

VOC is part of the BeeWare suite. You can talk to the community through:

Contributing

If you experience problems with VOC, log them on GitHub. If you want to contribute code, please fork the code and submit a pull request.

Project details


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