semvec/pypi-packages huggingface dataset:
bioarch 0.0.34
Python bioarchaeology
License: MIT
Requires Python: >=3.7

# Python BioArch
[![CircleCI](https://circleci.com/gh/TheBiggerGuy/bioarch/tree/master.svg?style=svg)](https://circleci.com/gh/TheBiggerGuy/bioarch/tree/master)
[![codecov](https://codecov.io/gh/TheBiggerGuy/bioarch/branch/master/graph/badge.svg)](https://codecov.io/gh/TheBiggerGuy/bioarch)
[![Documentation Status](https://readthedocs.org/projects/bioarch/badge/?version=latest)](https://bioarch.readthedocs.io/en/latest/?badge=latest)
[![](https://img.shields.io/github/issues-raw/TheBiggerGuy/bioarch.svg)](https://github.com/TheBiggerGuy/bioarch/issues)
[![](https://tokei.rs/b1/github/TheBiggerGuy/bioarch)](https://github.com/TheBiggerGuy/bioarch)
[![PyPI version](https://badge.fury.io/py/bioarch.svg)](https://badge.fury.io/py/bioarch)

A Python bioarchaeology library to help with modelling data in the archaeology/bioarchaeology field.

* Code at https://github.com/TheBiggerGuy/bioarch
* PyPI at https://pypi.org/project/bioarch/
* Docs at https://bioarch.readthedocs.io/en/latest/
django-compressor-js 0.1.0
Transpile JavaScript without running an extra node.js process.
License: MIT
Requires Python: >=3.6,<4.0
Keywords: django,django-compressor,babel,javascript

# django-compressor-js

Instead of running an extra node.js process watching for changes in your Javascript, this precompiler for `django-compressor` will convert any ES6 code into ES5 automagically.

# Install
1. `pip install django-compressor-js`
2. Add precompiler (`text/es6` can be anything, but it has to match the script type in the template)
```
COMPRESS_PRECOMPILERS = (
    ("text/es6", "django_compressor_js.precompilers.BabelCompiler"),
)
```
3. Add to HTML template
```
{% compress js %}
	<script src="{% static 'js/test-es6-code.js' %}" type="text/es6"></script>
{% endcompress %}
```

# Caveats
Most ES6 syntax seems to work pretty well, but requiring modules doesn't import correctly. Also, this approach adds some latency when compressing on the fly (i.e. `COMPRESS_OFFLINE = False`).

# Run tests
`poetry run pytest`

# Credits
`dukpy` and `django-compressor` for doing all the hard things.