java-api is a Python package that allows developers to get code completion for Java 17 API Specification functions and classes in their IDE of choice.
- Prerequisites
- Installation and usage
- Project structure
- Contributing
- Discussions
- Contributors
- License
- Code of conduct
Before you begin, ensure you have met the following requirements:
- You have installed Python 2.7.18
To use java-api, you may install it using the following method.
Note
For stub files for this package, look for java-api-stubs.
The preferred method is to install it by running pip. It requires Python
2.7.18.
python2 -m pip install java-apiThis will install it as package to your Python installation, which will allow you to call Ignition Scripting functions from Python's REPL, and get code completion using an IDE such as PyCharm and Visual Studio Code.
$ python2
Python 2.7.18 (default, Sep 23 2024, 13:23:35)
[GCC Apple LLVM 16.0.0 (clang-1600.0.26.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from __future__ import print_function
>>> import java.lang
>>> print(java.lang.__doc__)
Provides classes that are fundamental to the design of the Java
programming language.
>>> quit()And to uninstall:
python2 -m pip uninstall java-apiThis project consists of the following packages:
These packages include supporting Java classes and interfaces. For more information, see documentation here: https://docs.oracle.com/en/java/javase/17/docs/api/index.html.
See CONTRIBUTING.md.
Feel free to post your questions and/or ideas at Discussions.
Thanks to everyone who has contributed to this project.
Up-to-date list of contributors can be found here: CONTRIBUTORS.
See the LICENSE.
This project has adopted the Microsoft Open Source Code of Conduct.