semvec/pypi-packages huggingface dataset:
pfsense-netbox-sync 0.1.0
Allows to synchronize NetBox IPAM DNS information to a pfSense instance
Requires Python: >=3.8

# pfsense-netbox-sync

Allows to synchronize NetBox IPAM DNS information to a pfSense instance.
This allows automatic DNS resolution on the pfSense based on the DNS names stored in Netbox.

## How does it work?

This script work by pulling IP addresses with DNS name from NetBox (source of truth) and create/update/delete
corresponding DNS entries on pfSense DNS resolver.

## Installation

## Configuration

### On NetBox

You'll need to create a dedicated user (ex: pfsense-netbox-sync) on your NetBox instance and then create a read only API
token.

The following env variables will need to be set:

- **NB_API_URL**: The URL to your NetBox instance. (ex: https://netbox.example.org)
- **NB_API_TOKEN**: The token created previously. (ex: f74cb99cf552b7005fd1a616b53efba2ce0c9656)

### On pfSense

pfSense does not provide any REST API out of the box. Therefore, you'll first need to install
the [pfrest package](https://pfrest.org/INSTALL_AND_CONFIG/#).

Once it's done you can create a user dedicated for this application (ex: pfsense-netbox-sync).
You'll then need to grant the account all permissions for ``/api/v2/services/dns_resolver/*`` (Effective Privileges in
the user page).

Note: You **should** restrict API access to the IP who are using it.

The following env variables will need to be set:

- **PF_API_URL**: The URL to your pfSense instance. (ex: https://fw.example.org)
- **PF_API_USER**: The username of the account created previously. (ex: pfsense-netbox-sync)
- **PF_API_PASS**: The password of the account created previously. (ex: MQILv21OJIJ_x4dO0hZgJtwl)

## Executing the script

You can then execute the script using the following command:

```
PF_API_URL=xx PF_API_USER=xx PF_API_PASS=xx NB_API_URL=xx NB_API_TOKEN=xx python3 -m app
```

The script will indicate any change made.
pyRIMLS 0.0.2
A PyTorch implementation of the RIMLS reconstruction algorithm.
Requires Python: >=3.7

# Robust Implicit Moving Least Squares in PyTorch

The package has been released on pypi and can be installed with the following:
```sh
pip install pyRIMLS
```

### Quick Start: 

```python
import torch 
import pyrimls as pyr
from diso import DiffMC
import tqdm

reconstructor = pyr.RobustImplicitMLS()

differentiable_marching_cubes  = DiffMC(dtype=torch.float32)

# (1) Setup the pointcloud data
points, normals = torch.from_numpy(points).float(), torch.from_numpy(normals).float()


# (2) Setup the MC grid
min_plc, max_plc = -1, 1 # Bounds of the marching cube box.
N = 100                  # march cubes resolution


grid_points = torch.stack(torch.meshgrid(torch.linspace(min_plc, max_plc, N),
                                         torch.linspace(min_plc, max_plc, N),
                                         torch.linspace(min_plc, max_plc, N)),
                                         dim=-1)


grid_points = grid_points.reshape(-1, 3)

# (3) Compute the potential/SDF values
batch_size = 10000

values = []
for i in tqdm(range(0, len(grid_points), batch_size)):
    batch = grid_points[i:i+batch_size]
    potential = reconstructor.potential(batch, points, normals)
    values.append(potential)

sdf = torch.cat(values)
sdf = sdf.reshape(N, N, N)


# (4) Marching cubes
verts, faces = differentiable_marching_cubes(sdf, None, isovalue=0)
```
tkdm 0.2.0
kdm9's toolkit
Requires Python: >=3.9

# tkdm

`kdm9`'s toolkit of miscellaneous goodies. MPL2 license.


# `tkdm autogallery`

Automatically generate an HTML lightbox + gallery from a directory of images.

```
$ tree images
images/
    a/
        img1.jpg
        img2.jpg
    b/
        img3.jpg
        img4.jpg
$ tkdm autogallery -i ./images -o ./webgallery/ -t 8
```

# `tkdm genautoindex`

Automatically generate an index.html like Apache's autoindex, or caddy's `file_server browse`, only for static sites.

```
$ tkdm genautoindex
```