semvec/pypi-packages huggingface dataset:
import-java 0.6
Import Java packages seamlessly into CPython
License: MIT
Requires Python: >=3.0

# import-java
[![Build Status](https://travis-ci.org/Arnie97/import-java.svg)](https://travis-ci.org/Arnie97/import-java)
[![Code Coverage](https://codecov.io/gh/Arnie97/import-java/branch/master/graph/badge.svg)](https://codecov.io/gh/Arnie97/import-java)
[![PyPI Version](https://img.shields.io/pypi/v/import-java.svg)](https://pypi.org/project/import-java)
[![Python Compatibility](https://img.shields.io/pypi/pyversions/import-java.svg)](https://pypi.org/project/import-java)
[![License](https://img.shields.io/pypi/l/import-java.svg)](LICENSE)

Import your Java packages seamlessly into CPython.

## Quick Start
We'll create a temporary file in Java and then read it in Python to illustrate the usage:

```python
>>> import java
>>> with java:
...     from java.lang import String
...     from java.nio.file import Files
...
>>> temp_path = Files.createTempFile('sample', '.tmp')
>>> sample_text = String('Greetings from Java')
>>> Files.write(temp_path, sample_text.getBytes())
<java.nio.file.Path at 0x... jclass=java/nio/file/Path jself=...>

>>> with open(temp_path.toString()) as f:
...     print(repr(f.read()))
...
'Greetings from Java'

```

You can also use `_` as a short alias for `java.lang`:

```python
>>> with java:
...     from _ import System
...
>>> System.getProperties().get('java.specification.version')
'1.8'

```

Wildcard imports (such as `from java.util import *`) are not supported yet.

## Dependencies
Either [PyJNIus](https://github.com/kivy/pyjnius) or [JavaBridge](https://github.com/LeeKamentsky/python-javabridge). PyJNIus is preferred, as [JavaBridge cannot disambiguate overloaded methods with the same number of parameters](https://github.com/LeeKamentsky/python-javabridge/issues/55).

## Installation
`$ pip install import-java`

## License
MIT.

## See also
* [pythonnet](https://github.com/pythonnet/pythonnet) - Import .NET CLR modules
* [hack-py-import](https://github.com/iblis17/hack-py-import) - Import your C libraries
xstatic-json2yaml 0.1.1.0
Json2yaml 0.1.1 (XStatic packaging standard)
License: MIT
Keywords: json2yaml xstatic

XStatic-Js2yaml
--------------

Js2yaml JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by **any** project that needs these files.

It intentionally does **not** provide any extra code except some metadata
**nor** has any extra requirements. You MAY use some minimal support code from
the XStatic base package, if you like.

You can find more info about the xstatic packaging way in the package `XStatic`.
magwitch 0.1.0
Decorator for your functions, for easy tune of boolean arguments
License: MIT
Keywords: decorator,bool,arguments,helper

# Magwitch
The magical switch switcher !

```python
import magwitch

@magwitch.on
def save_figure(in_png:bool=False, legend:bool=True):
    ...  # an implementation we do not care about for the example
    return in_png


# Now, you can set the value of the boolean arguments by giving their name:
assert save_figure.in_png() is True

# Or not:
assert save_figure.not_in_png() is False

# Also, you can do it multiple times:
save_figure.not_in_png.no_legend()

# The last set is autoritative
assert f.not_in_png.in_png() is True

# And there is many other options if you want to !
@magwitch.on_with(use_defaults=True, enable='do_', disable=('nope_', 'never_'):
def f(a:bool=False): return a

# effect of use_defaults
assert f.do_a() is False
```

See the [tests](test/) for complete API, and the docstring of `Magwitch.build`
for a description of all available parameters.


Install with

    pip install magwitch