semvec/pypi-packages huggingface dataset:
pingpy 0.1.1
A cross-platform Python wrapper around the `ping` utility.
License: MIT
Requires Python: >=3.11

# PingPy

![GitHub commit activity](https://img.shields.io/github/commit-activity/y/redjax/pingpy?style=flat)
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/redjax/pingpy?style=flat)
[![tests](https://github.com/redjax/pingpy/actions/workflows/tests.yml/badge.svg)](https://github.com/redjax/pingpy/actions/workflows/tests.yml)

A cross platform wrapper for the `ping` utility written in Python.

## Links

| Name | Link |
| ---- | ---- |
| 📝 redjax/pingpy | [github.com/redjax/pingpy](https://github.com/redjax/pingpy)
| 🐍 `pingpy` | [pypi.org/project/pingpy](https://pypi.org/project/pingpy) |

## Description

`pingpy` is a Python interface that uses `subprocess` to call the platform's `ping` utility. The `pingpy` CLI accepts a subset of `ping`'s args and unifies the interface (i.e. `-c` now always means "count" with `pingpy`), and translates the `pingpy` args to the platform's `ping` implementation.

## Usage

Run `pingpy --help` to see usage instructions.

```shell title="pingpy usage" linenums="1"
usage: pingpy [-h] [-c COUNT] [-v] [-d] [-f FILE] [-o] [-a] [-s SLEEP] target

Ping a specified target with options for repeat count, debugging & verbosity level, and optional logging to file.

positional arguments:
  target                Target IP address or hostname to ping

options:
  -h, --help            show this help message and exit
  -c COUNT, --count COUNT
                        Number of times to ping. Default: 3, 0=infinite.
  -v, --verbose         Enable verbose output
  -d, --debug           Enable debug logging
  -f FILE, --file FILE  Path to the log file
  -o, --overwrite       Overwrite the log file if it exists
  -a, --append          Append to the log file if it exists
  -s SLEEP, --sleep SLEEP
                        Number of seconds to wait between pings. Default: 1.
```
otoole 1.1.5
A Python toolkit to support use of OSeMOSYS
License: MIT
Requires Python: >=3.9

==================================================
otoole: OSeMOSYS tools for energy work
==================================================

.. image:: https://joss.theoj.org/papers/e93a191ae795b171beff782a68fdc467/status.svg
    :target: https://joss.theoj.org/papers/e93a191ae795b171beff782a68fdc467
    :alt: JOSS status

.. image:: https://img.shields.io/pypi/v/otoole.svg
    :target: https://pypi.org/project/otoole/
    :alt: PyPI

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/psf/black
    :alt: Code Style

.. image:: https://img.shields.io/badge/python-3.9_|_3.10_|_3.11|_3.12-blue.svg
    :target: https://crate.io/packages/otoole/
    :alt: Python Version

.. image:: https://img.shields.io/badge/License-MIT-green.svg
    :target: https://opensource.org/licenses/MIT
    :alt: License

|

.. image:: https://coveralls.io/repos/github/OSeMOSYS/otoole/badge.svg?branch=master&kill_cache=1
    :target: https://coveralls.io/github/OSeMOSYS/otoole?branch=master
    :alt: Code Coverage

.. image:: https://github.com/OSeMOSYS/otoole/actions/workflows/python.yaml/badge.svg?branch=master
    :target: https://github.com/OSeMOSYS/otoole/actions/workflows/python.yaml
    :alt: GitHub CI

.. image:: https://readthedocs.org/projects/otoole/badge/?version=latest
    :target: https://otoole.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status

Description
===========

OSeMOSYS tools for energy work, or otoole, is a Python package
to support the users of OSeMOSYS. The aim of the package is to provide commonly
used pre- and post-processing steps for OSeMOSYS.

**otoole** aims to support different ways of storing input data and results,
including csv files and Excel workbooks, as well as different implementations
of the OSeMOSYS model. This improves interoperability of analyses and
generally makes life a little bit easier.

.. image:: docs/_static/workflow.png

Installation
============

``otoole`` can be installed through ``pip``::

    pip install otoole

For instructions of the use of the tool, run the command line help function::

    otoole --help

Documentation
=============
Detailed documentation of otoole, including examples, can be found here:
https://otoole.readthedocs.io/en/latest/

Contributing
============

New ideas and bugs `should be submitted <https://github.com/OSeMOSYS/otoole/issues/new>`_
to the repository issue tracker. Please do contribute by discussing and developing these
ideas further.

To contribute directly to the code and documentation development, please see
the `contribution guidelines <https://otoole.readthedocs.io/en/latest/contributing.html>`_.
citerate 0.1.1
Python bi-dimensional matrix iterator starting from any point (x, y) iterating layer by layer around some starting coordinates.
License: MIT
Requires Python: ==3.*

# Circular iterator (Citerate)

Python bi-dimensional matrix iterator starting from any point (x, y) iterating layer by layer around some starting coordinates.

## Usage

    pip install citerate

As of __14 july 2021__ it contains one method `citerator`

    from citerate import citerator

## Examples

Using the example data set:

    DATA = [
        [10, 11, 12, 13, 14],
        [25, 2,  3,  4,  15],
        [24, 9,  1,  5,  16],
        [23, 8,  7,  6,  17],
        [22, 21, 20, 19, 18],
    ]

Iterate over the set layer by layer starting from coordinates (x=2, y=2) and print each layer as a list of it's corresponding values.

    for layer in citerator(DATA, x=2, y=2, layer=True):
        print(layer)

Yields:

    [1]
    [2, 3, 4, 5, 6, 7, 8, 9]
    [10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]


Iterate over the set value by value starting from coordinates (x=2, y=2) and print each value individually.

    for value in citerator(DATA, x=2, y=2):
        print(value, end=' ')

Yields:

    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

# Footnotes

- It is NOT mandatory to iterate starting from the central coordinates or for the matrix to be uniform.
- It HAS to be bi-dimenstional and follow a "list of lists" pattern.
fabutils-cciw 0.1.1
A set of utilties around Fabric, used by CCiW
License: MIT
Requires Python: >=3.10

fabutils-cciw
=============

Small library of reusable utilities for fabfiles, used by:

- https://github.com/cciw-uk/cciw.co.uk
- https://github.com/learnscripture/learnscripture.net/

See comments in src/fabutils/connections.py for some rationale behind
design/constraints of these utilities.