semvec/pypi-packages huggingface dataset:
sfcurves 1.0.0
utilities for space filling curves

Utilities (mapping, unmapping, calculating enclosing polygon) for space filling curves (currently only Hilbert). Future plans include minimizing the enclosing polygon, calculating centroids, and supporting more curves like Peano.

### Examples:

Map 31 from the 1-dimension domain [0,64) to x,y in [0,16):

```python
>>> from sfcurves import hilbert
>>> hilbert.forward(31, 64)
(3, 4)
```

Reverse map (3,4) to the 1-dimension [0,64):

```python
>>> hilbert.reverse(3, 4, 64)
31
```

If you're mapping the entire domain, then using the generator is considerably faster:

```python
>>> g = hilbert.generator(64)
>>> next(g)
(0, 0)
>>> next(g)
(0, 1)
```

Calculate an enclosing polygon for the mapped points 0 thru 6 in the 1-dimension domain [0,64) 

```python
>>> hilbert.outline(0, 6, 64)
[(0, 0), (1, 0), (2, 0), (3, 0), (3, 1), (3, 0), (2, 0), (1, 0), (1, 1), (0, 1)]
```
python-unittest-cogent 1.0.1
Python unittest runner and result generator in three different formats json, xml, html
Requires Python: >=3
Keywords: python unittest html-result cogent python-unittest unittest-result-generator

## python-unittest-cogent
A custom tests runner which gives output in three different formats (xml, json and html).

### Quickstart
Installation:
```shell
pip install python-unittest-cogent
```
Usage: In example.py
```python
import cogent
from cogent.tests import TestCase

class TestClassOne(TestCase):
    def test1(self):
        expected_number = 90
        actual_number = 90
        print('Test output foe test case 1')
        self.assertEqual(expected_number, actual_number)

if __name__ == "__main__":
    cogent.main()
```

### To change the settings:
You can change the different-different settings like - 
```python
PROJECT_NAME = "Test Report"
APPLICATION_NAME = "Test APP"
APP_VERSION = "App Version 5.3"
PLATFORM = "Linux/Ubuntu 14.04"

HTML_TEST_REPORT_FILENAME = "Report.html"
XML_TEST_REPORT_FILENAME = "Report.xml"
JSON_TEST_REPORT_FILENAME = "Report.json"

DEFAULT_CONVERTER = "HTML" 
```
In example.py
```python
import cogent
from cogent.tests import TestCase
from cogent import settings

settings.DEFAULT_CONVERTER = "XML"

class TestClassOne(TestCase):
    def test1(self):
        expected_number = 90
        actual_number = 90
        print('Test output foe test case 1')
        self.assertEqual(expected_number, actual_number)

if __name__ == "__main__":
    cogent.main.settings = settings
    cogent.main()
```

In case any queries you can contact me on my email - harshittrivedi78@gmail.com