semvec/pypi-packages huggingface dataset:
lpips-jax 0.1.0
LPIPS Similarity metric for Jax

# LPIPS-Jax
Jax port of the original [PyTorch](https://github.com/richzhang/PerceptualSimilarity) implementation of [LPIPS](https://richzhang.github.io/PerceptualSimilarity/). The current version supports pretrained AlexNet and VGG16, and pretrained linear layers.

# Installation
`pip install lpips_jax`

# Usage
For `replicate=False`:
```python
import lpips_jax
import numpy as np

images_0 = np.random.randn(4, 224, 224, 3)
images_1 = np.random.randn(4, 224, 224, 3)

lpips = lpips_jax.LPIPSEvaluator(replicate=False, net='alexnet') # ['alexnet', 'vgg16']
out = lpips(images_0, images_1)
```

For `replicate=True`
```python
import lpips_jax
import numpy as np
import jax

n_devices = jax.local_device_count()
images_0 = np.random.randn(n_devices, 4, 224, 224, 3)
images_1 = np.random.randn(n_devices, 4, 224, 224, 3)

# replicate=True is the default setting
lpips = lpips_jax.LPIPSEvaluator(net='alexnet') # ['alexnet', 'vgg16]
out = lpips(images_0, images_1) # internally calls jax.pmap
```
panda3d-flatpak 0.1.2
Flatpak support for Panda3D
Requires Python: >=3.8

NOTE ==========================================================================

This works on Linux only.

INSTALLATION ==================================================================

pip install panda3d-flatpak

USAGE =========================================================================

In your setup.py file, add the following:

from direct.dist.commands import bdist_apps
from p3d_flatpak import FlatpakBuilder

class BDistAppsCmd(bdist_apps):
    def run(self):
        bdist_apps.run(self)
        bld = FlatpakBuilder(
            self,
            'com.yourCompany.YourProject',
            '/home/you/path/to/flatpak_repo',
            'D43B...B5',
            '/home/you/path/to/gpg',
	    'http://www.yourdomain.org/flatpak')
        bld.build()

setup(
    ...
    cmdclass={"bdist_apps": BDistAppsCmd},
    ... )

This article
(https://blogs.gnome.org/alexl/2017/02/10/maintaining-a-flatpak-repository/)
contains a section which explains how to create GPG keys for signing Flatpak
repos.

UPDATES =======================================================================

If you built a Flatpak repo, and later you modify your code and execute 'python
setup.py bdist_apps' again, your Flatpak repo will be updated. So, your users
can do their 'flatpak update' command to update your project.

EXAMPLE =======================================================================

Let's build a Flatpak repository for the Panda3D's Asteroids example.

First of all, create your GPG key (look at the article cited earlier).

Modify the file setup.py
(https://github.com/panda3d/panda3d/blob/master/samples/asteroids/setup.py)
adding these lines:

from direct.dist.commands import bdist_apps
from p3d_flatpak import FlatpakBuilder

class BDistAppsCmd(bdist_apps):
    def run(self):
        bdist_apps.run(self)
        bld = FlatpakBuilder(
            self,
            'org.panda3d.Asteroids',
            '/home/you/panda3d/samples/asteroids/dist/flatpak_repo',
            'D43B...B5',
            '/home/you/path/to/gpg',
	    'file:///home/you/panda3d/samples/asteroids/dist/flatpak_repo')
        bld.build()

setup(
    ...
    cmdclass={"bdist_apps": BDistAppsCmd},
    ... )

Then, launch the standard Panda3D build command:

python setup.py bdist_apps

At the end of the process, you will get the builds created by Panda3D, your
Flatpak repository in dist/flatpak_repo/ and a .flatpakref file in dist/.

Let's install Asteroids:
flatpak --user install file:///home/you/panda3d/samples/asteroids/dist/asteroids-stable.flatpakref

Let's run Asteroids:
flatpak run org.panda3d.Asteroids

Now, you can delete build/ and dist/, then you can rebuild it changing the URL
(from file:///... to https://...), so you can use it online (in place of
locally): just upload the repo to the path you specified and the .flatpakref
somewhere and everything should work.
helloworld-tal1948-3 0.0.1
Say Hello

Hello World
===========

This is an example project demonstrating how to publish a python module to PyPI.

Installation:
~~~~~~~~~~~~~

Run the following to install:

``pip install helloworld``

Usage:
~~~~~~

.. code-block:: python

    from helloworld import say_hello()

    # Generate "Hello, World!"
    say_hello()

    # Generate "Hello, Tal!"
    say_hello("Tal")


Developing Hello World:
~~~~~~~~~~~~~~~~~~~~~~~

To install helloworld, along with the tools you need to develop and run tests,
run the following in your virtualenv:

``pip install -e .[dev]``
helloworld-tal1948 0.0.1
Say Hello

Hello World
===========

This is an example project demonstrating how to publish a python module to PyPI.

Installation:
~~~~~~~~~~~~~

Run the following to install:

``pip install helloworld``

Usage:
~~~~~~

.. code-block:: python

    from helloworld import say_hello()

    # Generate "Hello, World!"
    say_hello()

    # Generate "Hello, Tal!"
    say_hello("Tal")


Developing Hello World:
~~~~~~~~~~~~~~~~~~~~~~~

To install helloworld, along with the tools you need to develop and run tests,
run the following in your virtualenv:

``pip install -e .[dev]``