semvec/pypi-packages huggingface dataset:
metlink-status 2.0.0
Python CLI application to check the Metlink Wellington service updates.
Requires Python: >=3.0

# metlink-status
CLI tool for checking Metlink Wellington service updates.

![Example Output Screenshot](https://git.sr.ht/~finncodes/metlink-status/blob/master/docs/example_output.png)

## Installation
```shell script
python setup.py install
```

## Usage
```
usage: metlink-status-runner.py [-h] [-b BUS] [-t TRAIN] [-s STOP]

Prints Metlink service updates

optional arguments:
  -h, --help            show this help message and exit
  -b BUS, --bus BUS     Specifies a bus route
  -t TRAIN, --train TRAIN
                        Specifies a train line
  -s STOP, --stop STOP  Specifies a stop or station
```

## Examples

- To show all service updates:
    ```shell script
    metlink-status
    ```

- To show any service updates for the number 2 bus:
    ```shell script
    metlink-status -b 2
    ```
    or
    ```shell script
    metlink-status --bus 2
    ```

- To show any service updates for the KPL (Kapiti) train line:
    ```shell script
    metlink-status -t KPL
    ```
    or
    ```shell script
    metlink-status --train KPL
    ```

- To show service updates for all services and departures for stop 1234:
  ```shell script
  metlink-status -s 1234
  ```
  or
  ```shell script
  metlink-status --stop 1234
  ```

- To show service updates and departures at stop 1234 for the number 2 bus:
  ```shell script
  metlink-status -b 2 -s 1234
  ```
  or
  ```shell script
  metlink-status --bus 2 --stop 1234
  ```

- To show service updates and departures at WELL (Wellington Station) for the KPL (Kapiti) train line:
  ```shell script
  metlink-status -t KPL -s WELL
  ```
  or
  ```shell script
  metlink-status --train KPL --stop WELL
  ```
opyrators 1.0.0
Manipulate quantum many-body operators
Requires Python: >=2.7

# Opyrators
Opyrators is a lightweight python package that represents many-body fermion- and spin-operators as strings.

For example, the fermionic string "012003" stands for
a 6-site operator formed by a creation operator on site 2, an annihilation operator on site 3, a density operator on site 6 and identity operators on the rest. [See the encodings below](#encodings).

In this representation, operator manipulations such as addition and multiplication are easily implemented. Super useful if you want to quickly compute commutators (and/or use this for research projects). [See the example below](#example).

## Installation
```python
pip install opyrators
```

## Example
Here is a quick example showing some of the basic features of fermionic opyrators.

```python
# Import the fermion operators.
from fermions import operator

# The operator takes a dictionary as input, with its key-value pairs being
# the operator string and its coefficient.
A = operator({"112233":1.3})
B = operator({"221133":0.34})
C = A * B - B * A

# The output of the print operation shows that this complex
# operator consists of 6 terms, but is fully diagonal.
print(C)
# Term 0: 330033 0.442
# Term 1: 330333 -0.442
# Term 2: 333033 -0.442
# Term 3: 003333 -0.442
# Term 4: 033333 0.442
# Term 5: 303333 0.442

# As another example, here is an operator describing the hopping terms on a
# 3-site periodic lattice.
J = operator({"120":1, "012":1, "201":1})
J = J + J.conj()
```

## Encodings
### Fermions
For particles, the encoding works as follows:
* 0 = Identity operator
* 1 = Creation operator
* 2 = Annihilation operator
* 3 = Density operator

### Spins
For spin-1/2 operators, the encoding works as follows:
* 0 = Identity operator
* 1 = Pauli-X operator
* 2 = Pauli-Y operator
* 3 = Pauli-Z operator

An operator with X on site 2, Y on site 4 and Z on site 5, in a system of 8 sites, hence would be "01023000".