semvec/pypi-packages huggingface dataset:
python3-resolver 1.0.3
Module to resolve A/AAAA DNS records
Requires Python: >=3.3

# Python3 - DNS Resolver

This is a simple script to resolve DNS A/AAAA records.

It only uses builtin modules.

## Install

```bash
python3 -m pip install python3-resolver
```

See: [PyPI](https://pypi.org/project/python3-resolver/)

## Usage

### Shell

If ran from the shell - use the following parameters:

* **-n/--hostname** => The hostname/DNS-record to resolve
* **-p/--protocol** => IP-Protocol to return (_optional; one of '4/6/46'_)

```bash
python3 dns_resolver.py -h
> usage: DNS Resolver [-h] -n HOSTNAME [-p {4,6,46}]
> 
> Script to resolve A/AAAA DNS records
> 
> options:
>   -h, --help            show this help message and exit
>   -n HOSTNAME, --hostname HOSTNAME
>                         The hostname/DNS-record to resolve
>   -p {4,6,46}, --protocol {4,6,46}
>                         IP-Protocol to return

python3 dns_resolver.py -n superstes.eu
> ['89.43.33.99', '2a05:8280:f:42ea::3']

python3 dns_resolver.py -n superstes.eu -p 4
> ['89.43.33.99']

python3 dns_resolver.py -n unsetdomain.com
> []
```

### Programmatically

You can import the resolver from other python modules/scripts.

#### Installed via PIP

```python3
from dns_resolver import resolve, resolve_ipv4, resolve_ipv6

resolve('superstes.eu')
# list(['89.43.33.99', '2a05:8280:f:42ea::3'])

resolve_ipv4('superstes.eu')
# list(['89.43.33.99'])

resolve_ipv6('superstes.eu')
# list(['2a05:8280:f:42ea::3'])
```

#### Copied

Per example if the scripts are saved in the same directory.

```bash
ls .
> dns_resolver.py
> program.py
```

```python3
from dns_resolver import resolve, resolve_ipv4, resolve_ipv6

resolve('superstes.eu')
# list(['89.43.33.99', '2a05:8280:f:42ea::3'])

resolve_ipv4('superstes.eu')
# list(['89.43.33.99'])

resolve_ipv6('superstes.eu')
# list(['2a05:8280:f:42ea::3'])
```
netbox-giftwrap 2.0.1
Transform NetBox APIs into Business Ready Documents
Requires Python: >=3.8,<4.0

![Logo](/images/netbox_giftwrap.png)
# netbox_giftwrap
Transform NetBox APIs into Business Ready formats

## Installing netbox_giftwrap
To install netbox_giftwrap there are a few simple steps:
#### Ubuntu Linux 
##### The following instructions are based on Windows WSL2 and Ubuntu however any flavour of Linux will work with possibly slightly different commands.

##### Confirm Python 3 is installed

#####
```console

$ python3 -V
Python 3.9.10

```

##### Create and activate a virtual environment

######
```console

$ sudo apt install python3-venv
$ python3 -m venv netbox_giftwrap
$ source netbox_giftwrap/bin/activate
(netbox_giftwrap)$

```
##### Install the netbox_giftwrap
```console

(netbox_giftwrap)$pip install netbox_giftwrap

```

##### Create an output folder
```console

(netbox_giftwrap)$mkdir output

```
### Windows

#### [Download Python](https://python.org)
#### Create and activate a virtual environment
#####
```console

C:\>python3 -m venv netbox_giftwrap
C:\>netbox_giftwrap\Scripts\activate
(netbox_giftwrap) C:\>

```
#### Install netbox_giftwrap
```console

(message_room)$pip install netbox_giftwrap

```

##### Create an output folder
```console

(netbox_giftwrap)$mkdir output

```
## Using the bot
### Run the bot as an interactive session
```console

(netbox_giftwrap)$ cd output
(netbox_giftwrap)$~/output/netbox_giftwrap.py

```

### The form questions:

##### Question 1 - NetBox URL:

Enter the URL of your NetBox instance (e.g. https://demo.netbox.dev):

This can be set as an environment variable

##### Question 2 - NetBox API Token: 

Enter your NetBox API Token - you can create / retrieve one from https://URL/user/api-tokens/

This can be set as an environment variable

#### Current API Covera

aggregates

asns

cables

circuit-terminations

circuit-types

circuits

cluster-groups

cluster-types

clusters

console-port-templates

console-ports

contact-assignments

contact-groups

contact-roles

contacts

device-bay-templates

device-bays

device-roles

device-types

devices

front-port-templates

front-ports

groups

interface-templates

interfaces

inventory-items

ip-addresses

ip-ranges

locations

manufacturers

module-bay-templates

module-bays

module-types

modules

platforms

power-feeds

power-outlet-templates

power-outlets

power-panels

power-port-templates

power-ports

prefixes

provider-networks

providers

rack-reservations

rack-roles

racks

rear-port-templates

rear-ports

regions

rirs

roles

route-targets

service-templates

services

site-groups

sites

status

tenant-groups

tenants

tokens

users

virtual-chassis

virtual-interfaces

virtual-machines

vlan-groups

vlans
eris 1.0.0
Implementation of the Encoding for Robust Immutable Storage (ERIS) encoding
Requires Python: >=3.6

# python-eris

This is a Python implementation of the [Encoding for Robust Immutable Storage (ERIS)](http://purl.org/eris).

# Usage

```
import eris
import asyncio

async def main():

    # create a store
    store = eris.DictStore()

    # encode content
    encoder = eris.Encoder(eris.null_convergence_secret(), store, block_size = 1024)
    await encoder.write(b'Hello world!')
    read_capability = await encoder.close()

    # decode content
    decoder = eris.Decoder(store, read_capability)
    decoded = await decoder.readall()

    print(decoded)

asyncio.run(main())
```

See also the [online documentation](https://eris.codeberg.page/python-eris/) and the [examples](./examples/).

# Development

## Running Tests

```
python -m unittest tests/*.py
```

## Building Documentation

```
make -C docs html
```

## Publishing to PyPi

```
python -m build
python3 -m twine upload --repository pypi dist/*
```

# License

[AGPL-3.0-or-later](./LICENSE/AGPL-3.0-or-later)