semvec/pypi-packages huggingface dataset:
pointofvue 0.1.1
A simple, opinionated way to incorporate VueJS into Django apps

# PointOfVue

A simple, opinionated way to incorporate VueJS into your Django applications

## Installation

```
pip install PointOfVue
```

Add `pointofvue` to your Django installed apps:
```python
INSTALLED_APPS = [
    # other apps ...
    'pointofvue',
]
```

## Basic Usage

In your view, import `pointofvue` and send a `pointofvue.VueContext` instance to your template
```python
import pointofvue

def view_handler(request):
    vue_ctx = pointofvue.VueContext()
    vue_ctx.set_data('var1', 'My value')

    return render(request, 'template.html', {
        "vue_ctx": vue_ctx,
    })
```

In your template, write your Vue code in a `#app` element and use `${` and `}` for accessing Vue data. Then load the `pointofvue` templates and call the `{% vue %}` tag with your `VueContext` to load VueJS and create an app.

```html
<div id='app'>
    The value of 'var1' is <b>${ var1 }</b>
</div>

{% load pointofvue %}
{% vue vue_ctx %}
```

## Custom JavaScript

It is likely that you won't be able to get away with just writing HTML Vue alone, you may need to define methods and other JS native entities in custom JavaScript.

 > **Note:** pointofvue encourages you to not write inline JavaScript in your Django HTML templates. Write separate JS files and serve them via staticfiles instead

Define a Vue entry point that exports your Vue data. It may look like this:
```javascript
import MyCustomComponent from './my-component.js';

const components = {
    MyCustomComponent,
};

export {
    components,
};
```

Build that JS file (target as a library if using vue-cli-service). Then register your script with the Python VueContext in your view:
```python
vue_ctx.add_script('myscript')
```

Now you can use your custom component in your template:
```html
<div id="app">
    <b>My Custom Component</b>
    <MyCustomComponent />
</div>
```

## Development

### Releasing
I use [bump2version](https://github.com/c4urself/bump2version) to manage version bumping. This will update the version number in the library, commit it, and create a version tag.

```bash
bump2version minor
git push --follow-tags
```
deepKoopman 1.0.0
Deep Koopman-based Modeling and Control
Requires Python: >=3.8

# DeepKoopman

Package requirements: Torch 1.7.0+cpu
                                      Numpy 1.23.0
                                      Scipy 1.4.1
                                      Matplotlib 3.2.3
                                      Argparse 1.1
                                      Control 0.8.3	


To test the model with pretrained weights
```
python model.train()
python model.save()
python model.load()
```
py-bitmap-sparse-array 0.1.2
Pure python implementation of a sparse array.
Requires Python: >=3.8

This code has been transpiled from `js-sparse-array <https://github.com/pgte/js-sparse-array/commit/a489406f6abb5aa4bb7b536b8b73289944bf4343>`_ and has minimal changes. 

Usage
-----

SparseArray implements `MutableSequence`.

We suggest you import the SparseArray as follows:

>>> from bitmap_sparse_array import SparseArray

Setting and getting
^^^^^^^^^^^^^^^^^^^

>>> sa = SparseArray()
>>> sa[1000000] = 'value'
>>> sa[1000000]
'value'
>>> sa[1]
IndexError()
>>> len(sa)
1000001

Iterating
^^^^^^^^^
Due to the sparse nature of `SparseArray`, it does not make sense to iterate over all values in the traditional sense because of possible omitted indices. Therefore, you cannot iterate over the `SparseArray` itself. Instead, 3 generators are provided.

>>> sa = SparseArray()
>>> sa[0] = '0'
>>> sa[2] = '2'

`SparseArray.indices()` returns a generator of indices that have values.

>>> list(sa.indices())
[0, 2]

`SparseArray.items()` returns a generator of tuples of indices and values, similar to `Mapping.items()`.

>>> list(sa.items())
[(0, '0'), (2, '2')]

`SparseArray.values(*, default=None, start=0, end=None)` returns a generator of values with a default value for non-set indices.

>>> list(sa.values())
['0', None, '2']
>>> list(sa.values(default='default'))
['0', 'default', '2']

For the same reasons, you cannot get or set slices of a `SparseArray`, nor `insert()`