Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devinrsmith/java-utilities
Simple Java utilities
https://github.com/devinrsmith/java-utilities
java python utility
Last synced: 3 months ago
JSON representation
Simple Java utilities
- Host: GitHub
- URL: https://github.com/devinrsmith/java-utilities
- Owner: devinrsmith
- License: apache-2.0
- Created: 2022-08-18T19:29:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-02T21:02:41.000Z (10 months ago)
- Last Synced: 2024-09-15T08:51:40.907Z (5 months ago)
- Topics: java, python, utility
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-pypi.md
- License: LICENSE
Awesome Lists containing this project
README
# java-utilities
`java-utilities` is a helper package to run and introspect a `java` binary.
It can be used as a library, or with the provided standalone scripts.## Quickstart
A [virtual environment](https://docs.python.org/3/tutorial/venv.html) is recommended.
To use from the command line:
```shell
pip install java-utilitiesjava-home
java-property java.specification.version
```To use from python:
```python
from java_utilities import java_home, lookup_propertyprint(f"Java home is '{java_home()}'")
property_name = "java.specification.version"
print(f"Java specification version is '{lookup_property(property_name)}'")
```