semvec/pypi-packages huggingface dataset:
reprise 1.0.0
REtrospective and PRospective Inference SchEme
License: MIT

========================================================
reprise - REtrospective and PRospective Inference SchEme
========================================================

*reprise* is an implementation of the REtrospective and PRospective Inference SchEme in python.

Installation
============

The easiest way to install *reprise* is using
`pip <https://pip.pypa.io/en/stable/>`_:

.. code:: bash

    pip install --user reprise

For more information have a look at the `Installation Guide
<http://reprise.readthedocs.io/en/latest/installation.html>`_.


Documentation
=============

*reprise* uses ``sphinx`` to create a documentation manual. The documentation is
hosted on `Read the Docs <http://reprise.readthedocs.io/en/latest/>`_.


Getting involved
================

The *reprise* project welcomes help in the following ways:

* Making Pull Requests for
  `code <https://github.com/CognitiveModeling/reprise/tree/master/reprise>`_,
  `tests <https://github.com/CognitiveModeling/reprise/tree/master/tests>`_
  or `documentation <https://github.com/CognitiveModeling/reprise/tree/master/doc>`_.
* Commenting on `open issues <https://github.com/CognitiveModeling/reprise/issues>`_
  and `pull requests <https://github.com/CognitiveModeling/reprise/pulls>`_.
* Helping to answer `questions in the issue section
  <https://github.com/CognitiveModeling/reprise/labels/question>`_.
* Creating feature requests or adding bug reports in the `issue section
  <https://github.com/CognitiveModeling/reprise/issues/new>`_.

For more information on how to contribute to *reprise* have a look at the
`development section <http://reprise.readthedocs.io/en/latest/development.html>`_.


Authors and Contributers
========================

*reprise* was mainly developed by
`Fedor Scholz <https://github.com/fedorsc>`_. For the full list of
contributers have a look at `Github's Contributor summary
<https://github.com/CognitiveModeling/reprise/contributors>`_.

Currently, it is maintained by `Fedor Scholz <https://github.com/fedorsc>`_.
esx 0.0.4
A port of Javascript API to python. Useful for interoperability, porting js code and more...
License: MIT
Requires Python: >=3.6
Keywords: Javascript,JavaScript,js,html,json,web,javascript,es6,es7,es8,es9

<h1 align="center">
    esx
    <br>
    <sup><sub><sup>JS API in python 3!</sup></sub></sup>
    <br>
</h1>

[![PyPI version](https://badge.fury.io/py/esx.svg)](https://badge.fury.io/py/esx.svg) 
[![Downloads](https://pepy.tech/badge/esx)](https://pepy.tech/project/esx)
[![Python version](https://img.shields.io/pypi/pyversions/esx.svg?style=flat)](https://img.shields.io/pypi/pyversions/esx.svg?style=flat)
[![Build status](https://travis-ci.com/byteface/esx.svg?branch=master)](https://travis-ci.com/byteface/esx.svg?branch=master)
[![Python package](https://github.com/byteface/esx/actions/workflows/python-package.yml/badge.svg?branch=master)](https://github.com/byteface/esx/actions/workflows/python-package.yml)


#### Contains

• js API in python 3

(A downsteam of the domonic js API)

#### API


```python
from esx.javascript import Math
print(Math.random())

from esx.javascript import Array
myArr=Array(1,2,3)
print(myArr.splice(1))

from esx.javascript import URL
url = URL('https://somesite.com/blog/article-one#some-hash')
print(url.protocol)
print(url.host)
print(url.pathname)
print(url.hash)

# you can use Global class to import all the js methods from the global namespace i.e
# from esx.javascript.esx import Global
# Global.decodeURIComponent(...
# Global.encodeComponent(...
# Global.setInterval(...

# from esx.javascript.esx import Date, String, Number
# etc..
```

You can use setInterval and clearInterval with params

```python

from esx.javascript import setInterval, clearInterval

x=0

def hi(inc):
    global x
    x = x+inc
    print(x)

test = setInterval(hi, 1000, 2)
import time
time.sleep(5)
clearInterval(test)
print(f"Final value of x:{x}")

```

Or for a single delayed function call use setTimeout, clearTimeout

```python

from esx.javascript import setTimeout, clearTimeout

timeoutID = setTimeout(hi, 1000)

```

## DOCS

https://esx.readthedocs.io/

### notes

currently forking over from domonic.

### Join-In
Feel free to contribute if you find it useful.

Email me, message me directly if you like or create a discussion on here.

If there are any methods you want that are missing or not complete yet or you think you can help make it better just update the code and send a pull request.

I'll merge and releaese asap.


### run tests

There are tests used during dev. They are useful as code examples and to see what still needs doing.

See Makefile to run all tests:

```bash
make test
```

or to test a single function:
```bash
python -m unittest tests.test_esx.TestCase.test_esx_array
```

or to test a whole module
```bash
python -m unittest tests.test_esx
```

to see coverage
```bash
coverage run -m unittest discover tests/
coverage report
```