semvec/pypi-packages huggingface dataset:
minidlna-exporter 0.1.2
Export minidlna metrics for prometheus
License: MIT

# minidlna_exporter.py

A prometheus exporter for minidlna written in Python 3.
The exporter scrapes minidlna's status site and exposes it as prometheus metrics.

![Grafana Dashboard](grafana.png)
See [grafana_dashboard.json](grafana_dashboard.json)

# Content
- [minidlna_exporter.py](#minidlnaexporterpy)
- [Content](#content)
- [Metrics](#metrics)
- [Setup](#setup)
	- [pip](#pip)
	- [manual](#manual)
	- [Docker](#docker)
		- [docker-hub](#docker-hub)
		- [manual](#manual)
- [Usage](#usage)
	- [Usage Example](#usage-example)


# Metrics

    # HELP python_info Python platform information
    # TYPE python_info gauge
    python_info{implementation="CPython",major="3",minor="7",patchlevel="0",version="3.7.0"} 1.0
    # HELP minidlna_files file metrcis
    # TYPE minidlna_files gauge
    minidlna_files{type="audio_files"} 3624.0
    minidlna_files{type="video_files"} 1865.0
    minidlna_files{type="image_files"} 60241.0
    # HELP minidlna_clients client metrics
    # TYPE minidlna_clients gauge
    minidlna_clients{hw_address="00:71:47:40:36:c5",ip_address="192.168.0.186",type="generic upnp 1.0"} 1.0
    minidlna_clients{hw_address="74:75:48:57:3f:21",ip_address="192.168.0.107",type="generic upnp 1.0"} 1.0
    minidlna_clients{hw_address="ff:ff:ff:ff:ff:ff",ip_address="127.0.0.1",type="unknown"} 1.0

# Setup

## pip
    pip3 install --upgrade git+https://github.com/dr1s/minidlna_exporter.py.git

## manual
    git clone https://github.com/dr1s/minidlna_exporter.py.git
    cd minidlna_exporter.py
    pip3 install -r requirements.txt
    cd minidlna_exporter
    ./minidlna_exporter.py

## Docker

### docker-hub
    docker pull dr1s/minidlna_exporter:latest
    docker run --net=host -t dr1s/minidlna_exporter

### manual
    git clone https://github.com/dr1s/minidlna_exporter.py.git
    docker build -t dr1s/minidlna_exporter .
    docker run -d -p 9312:9312 -t dr1s/minidlna_exporter

# Usage
    usage: minidlna_exporter.py [-h] [-m MINIDLNA] [-p PORT] [-i INTERFACE]

    minidlna_exporter

    optional arguments:
      -h, --help            show this help message and exit
      -m MINIDLNA, --minidlna MINIDLNA
                            minidlna adress
      -p PORT, --port PORT  port minidlna_exporter is listening on
      -i INTERFACE, --interface INTERFACE
                            interface minidlna_exporter will listen on

## Usage Example

    minidlna_exporter --minidlna localhost:8200 --interface 0.0.0.0 --port 9312

The previous used arguements are the default options. If nothing needs to be changed, minidlna_exporter can be started without arguments.
posetta 0.0.5
The Universal Translator of Geodetic Coordinate File Formats
License: MIT
Requires Python: >=3.6
Keywords: geodesy,coordinate,position,format,converter

# Posetta, the Universal Translator of Geodetic Coordinate File Formats

Posetta is a command line and GUI utility for translating between different
file formats used for representing geodetic coordinates.

**Note:** Posetta is still in pre-alpha status. Its functionality will change,
  and it should not be depended on in any production-like setting.

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)


## Installing Posetta

Posetta is available at [PyPI](https://pypi.org/project/posetta/). You can
install it by simply running

    pip install posetta


## Installing Posetta from source

Posetta depends on other brilliant Python packages, like for instance numpy. We
recommend using the Anaconda distribution to ease the installation of these
dependencies.

### Install Anaconda

Go to [www.anaconda.com/download](https://www.anaconda.com/download), and
download Anaconda for Python 3.


### Download the Posetta source code

If you have not already done so, download the Posetta source code, from
[GitHub](https://github.com/NordicGeodesy/posetta). Then enter the main
`posetta` directory before running the install commands below.

    cd posetta


### Install dependencies

You should now install the necessary dependencies using the
`environment.yml`-file. You can do this either in your current conda
environment, or choose to create a new `posetta`-environment. In general, you
should install `posetta` in its own environment.

To install `posetta` in a new environment named `posetta` and activate it, do

    conda env create -n posetta -f environment.yml
    conda activate posetta

To instead install `posetta` in your current environment, do

    conda env update -f environment.yml


### Install the Posetta package

To do the actual installation of Posetta, use the `flit` packaging tool:

    flit install --dep production

If you want to develop the Posetta package, install it in editable mode using

    flit install -s

On Windows, you can install in editable mode using

    flit install --pth-file


## Using Posetta

Posetta can be used either as a command line application, or a graphical (GUI)
application.


### Posetta at the command line

You can use Posetta as a command line tool. Run the following to see instructions:

    posetta --help


### Posetta as a graphical (GUI) application

Posetta can also be used as a simple point and click GUI application. Run the
following command to start it:

    posetta_gui