semvec/pypi-packages huggingface dataset:
pytest-duration 1.0.1
Pytest plugin reporting fixtures and test functions execution time.
License: MIT
Requires Python: >=3.6.2
Keywords: test

## Introduction

A pytest plugin to measure fixtures and tests duration.

In order to get the pure test setup/teardown durations, plugin subtracts time taken by shared fixtures (which scope is larger than "function").

## Installation

```shell
$ pip install pytest-duration
```

## Example or report

```
============================= fixture duration top =============================
total          name          num avg            min            max           
0:00:00.063821 fake_reporter   4 0:00:00.015300 0:00:00.014831 0:00:00.018389
0:00:00.068513   grand total  22 0:00:00.000117 0:00:00.000110 0:00:00.000132
============================ test call duration top ============================
total          name                          num avg            min            max           
0:00:00.527693      test_plugin_with_options   4 0:00:00.041085 0:00:00.040256 0:00:00.405267
0:00:00.041535           test_plugin_disable   1 0:00:00.041535 0:00:00.041535 0:00:00.041535
0:00:00.018607 test_get_current_ticks_frozen   1 0:00:00.018607 0:00:00.018607 0:00:00.018607
0:00:00.590297                   grand total  10 0:00:00.000706 0:00:00.000706 0:00:00.000706
=========================== test setup duration top ============================
total          name                                     num avg            min            max           
0:00:00.018670                 test_report_measurements   1 0:00:00.018670 0:00:00.018670 0:00:00.018670
0:00:00.015979 test_report_measurements_with_rows_limit   1 0:00:00.015979 0:00:00.015979 0:00:00.015979
0:00:00.015100 test_report_measurements_with_time_limit   1 0:00:00.015100 0:00:00.015100 0:00:00.015100
0:00:00.015079   test_report_measurements_empty_results   1 0:00:00.015079 0:00:00.015079 0:00:00.015079
0:00:00.005076                 test_plugin_with_options   4 0:00:00.001138 0:00:00.001030 0:00:00.001770
0:00:00.071377                              grand total  10 0:00:00.015079 0:00:00.015079 0:00:00.015079
========================== test teardown duration top ==========================
total          name        num avg            min            max           
0:00:00.001990 grand total  10 0:00:00.000128 0:00:00.000128 0:00:00.000128
============================== 10 passed in 0.71s ==============================
```

## Development

Project uses [poetry](https://python-poetry.org/) for dependencies management, [pytest](https://pytest.org/) for testing and [pre-commit](https://pre-commit.com/) for style formatting.

```shell
$ pip install poetry
$ poetry install
$ pre-commit install
$ pytest tests
```

## Change Log

### 1.0.1 (Feb 14, 2022)
 
* First Release
namecheap-ddns 0.0.5
CLI to update dynamic dns records for Namecheap.
License: MIT
Requires Python: >=3.6

A python-based CLI tool for updating your Namecheap dynamic DNS records.

## Prerequisites

Follow the instructions here to set up Dynamic DNS:

https://www.namecheap.com/support/knowledgebase/article.aspx/36/11/how-do-i-start-using-dynamic-dns/

## Installation

I recommend using [pipx](https://github.com/pypa/pipx):

```
pipx install namecheap-ddns
```

## Usage

After namecheap-ddns is installed, simply run:

```
ncddns @ mycooldomain.tld e747d77054a844409c486973cb
```

You can set this up using crontab too:

```
* * * * * ncddns -s @ mycooldomain.tld e747d77054a844409c486973cb
```