semvec/pypi-packages huggingface dataset:
nelly 0.7.2
Python Test Case Generator
License: MIT

=====
nelly
=====
A grammar-based generator.
--------------------------
Matthew Shaw <mshaw.cx@gmail.com>

.. code-block::

  <%pre
      import sys
  %>

  ::NT(start)
      : 'A' # comment
      | 'B' <% print($$) %>
      ;

  <%post
      print($$)
  %>

Constants
=========

Constants in productions can consist of double-quoted strings, single-quoted strings, decimal, hexadecimal.

.. code-block::

    A: "A" | 'A' | \d65 | \x41;

Concatenation
=============

Productions are concatenated when they are seperated by white-space.

.. code-block::

    CONCAT: "CONC" \x41 "TEN" \d65 "TION";

Selection
=========

When multiple productions are present one is chosen at random.

.. code-block::

    NUMBER: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9';

Grouping
========

.. code-block::

    GRP: ('A'|'B') ('C'|'D');

Possible values are 'AC', 'AD', 'BC', or 'BD'.

Ranges
======

.. code-block::

    NUM1: ('0'|'1'|'2'|'3'|'4'|'5'|'6'|'7'|'8'|'9'){3};
    NUM2: ('0'|'1'|'2'|'3'|'4'|'5'|'6'|'7'|'8'|'9'){1,5};

NUM1 will generate a 3-digit number while NUM2 will generate a number of random length between 1 and 5 digits.

Slicing
=======

A sub-string of a production can be referenced using indices.

.. code-block::

    SLICE1: "0123456789" [:];    // 0123456789
    SLICE2: "0123456789" [4];    // 4
    SLICE3: "0123456789" [:4];   // 0123
    SLICE4: "0123456789" [4:];   // 456789
    SLICE5: "0123456789" [2:8];  // 234567
    SLICE6: "0123456789" [-4];   // 6
    SLICE7: "0123456789" [-4:];  // 6789
    SLICE8: "0123456789" [:-4];  // 012345
    SLICE9: "0123456789" [2:-2]; // 234567

The output of each production is documented in the comment proceeding it.

Inline Python
=============

.. code-block::

    <%pre
        import base64
    %>

    NT: %base64.b64encode('string');

Non-Terminals
=============

.. code-block::

    NT1: "The value of NT2 is " NT2;
    NT2: "substitution";

Semantic Actions
================

$$

.. code-block::

    PSA1: PSA2 <% var = $$ %>;
    PSA2: "one" | "two";

In this example the Python variable **var** will contain either 'one' or 'two' for future use.

Variable Non-Terminals
======================

$*

.. code-block::

    NT1: $NT2;

    $NT2:
      "I WILL BE SUBSTITUTED INTO NT1 IN LOWERCASE"
      <%
        $* = $$.lower()
      %>
      ;


Back Reference
==============

.. code-block::

    BR: "A" | "B";
    NT: BR \BR;

.. code-block::

    $BR: ("a"|"b") <% $* = $$.upper() %>;
    NT: $BR \$BR;

In both cases **NT** will generate the string 'AA' or 'BB' but not 'AB' or 'BA'.
pyvortex 0.2.3
Polar vortex edge detection using Nash criteria
License: MIT
Requires Python: >=3.6

### About

The module `pyvortex` consists of functions to calculate the [equivalent latitude](https://journals.ametsoc.org/doi/citedby/10.1175/1520-0469%282003%29060%3C0287%3ATELADT%3E2.0.CO%3B2) and edge of a polar vortex using [Nash criteria](https://agupubs.onlinelibrary.wiley.com/doi/10.1029/96JD00066).

### Installation

```
pip install pyvortex
```

install the latest version using 
```
pip install git+https://github.com/pankajkarman/pyvortex.git

```

## Documentation

Latest documentation is available [here](https://pankajkarman.github.io/pyvortex/).


### Usage

`pyvortex` is easy to use. Just import:

```python
import pyvortex as vr
```

#### Northern Hemisphere

Instantiate the `PolarVortex` class using: 
```python
pol = PolarVortex(pv, uwind)
```
Get equivalent lqtitude for the provided vorticity data as:
```python
eql = pol.get_eql()
```
If you want to get both equivalent latitude and Vortex edge, just use:
```python
eql = pol.get_edge(min_eql=30)
```
Example:
![Arctic Vortex](./example/arctic_polar_vortex_20110201.gif)

#### Southern Hemisphere

Flip pv and uwind along latitude dimension and multiply pv by -1. All other things will be the same.

Example:

![Polar Vortex](./example/antarctic.gif)
pybetaface 1.1
Use the BetaFace API in Python
License: MIT

# pybetaface

Python libary for using the BetaFace API.

To install do 

```pip install pybetaface```

# Example Usage
```python
# Import the Libary
from pybetaface import FaceData

# Initialise FaceData
f = FaceData()

# Upload the file with the default API Key
data = f.uploadFile("https://www.williamd47.net/betaface/man.jpg", key="d45fd466-51e2-4701-8da8-04351c872236")

# Print the output
print(data)

```