semvec/pypi-packages huggingface dataset:
pywmataio 0.0.8
A simple async interface to the WMATA (Washington, DC Public Transit) API
Requires Python: >=3.10

# wmataio

`wmataio` is an easy to use Python interface to the [Washington Metropolitan Area Transit Authority API](https://developer.wmata.com) (Washington, DC Public Transit).

## Contents

- [wmataio](#wmataio)
  - [Contents](#contents)
  - [Requirements](#requirements)
  - [Installation](#installation)
  - [Usage](#usage)
    - [Getting Started](#getting-started)
    - [Design](#design)
      - [`MetroRail`](#metrorail)
        - [Using `MetroRail`](#using-metrorail)
      - [`MetroBus`](#metrobus)
        - [Using `MetroBus`](#using-metrobus)
  - [Credits](#credits)
  - [License](#license)

## Requirements

- Python 3.10

## Installation

```bash
pip install wmataio
```

## Usage

### Getting Started

```python
from wmataio import MetroRail, Station

client = MetroRail(api_key)
await client.load_data()
stations: dict[str, Station] = client.stations
lines: dict[str, Line] = client.lines
```

### Design

`wmataio` breaks the WMATA API into two components: `MetroRail` and `MetroBus`.

#### `MetroRail`

Provides access to all MetroRail related endpoints.

##### Using `MetroRail`

```python
import wmataio

client = wmataio.client(api_key)

trains = await client.rail.next_trains_at_station(client.rail.stations["A01"])
```

#### `MetroBus`

Provides access to all MetroBus related endpoints.

##### Using `MetroBus`

```python
import wmataio

client = wmataio.client(api_key)

routes = await client.bus.get_all_routes()
```

## Credits

Thanks to @emma-k-alexandra for [pywmata](https://github.com/emma-k-alexandra/pywmata) which I used as the base for this repo.

## License

`wmataio` is released under the MIT license. [See LICENSE](https://github.com/emma-k-alexandra/pywmata/blob/master/LICENSE) for details.
cybarpass 2.6
Minimalistic Passphrase Generation script with GUI
Requires Python: >=3.9

# CybarPass

## Minimalistic Passphrase Generation script with GUI

<img width="562" alt="image" src="https://user-images.githubusercontent.com/50134239/231045484-9d4fa669-832f-45a6-8389-0b702a6fe86e.png">

### Dependencies

-   Python \>= 3.9
-   `tkinter` module

**PS**: Also requires a word list file where each word is on a new line. You can supply your own, or, on MacOS and Linux, use `/usr/share/dict/words`.

### Installation

1.  Open terminal and run `python3 -m pip install cybarpass`
2.  Set a shell alias: `alias cybarpass="python3 -m cybarpass"`
3.  Run according to the instructions below

### Usage

1.  CLI mode: run `cybarpass` with optional parameter `-n`
2.  GUI mode: run `cybarpass -g`

#### Help Screen

> output of `cybarpass -h`

```
usage: cybarpass [-h] [-n NUM] [-g] [WORD_LIST]

Generate a secure passphrase

positional arguments:
  WORD_LIST          Path to dictionary file

options:
  -h, --help         show this help message and exit
  -n NUM, --len NUM  Minimum length of passphrase
  -g, --gui          Run the program in GUI mode

NOTE: -n | --len has no effect in GUI mode
```

#### Example Runs

```sh
$ cybarpass -h

$ cybarpass

$ cybarpass -g

$ cybarpass -g /usr/share/dict/words

$ cybarpass /usr/share/dict/words

$ cybarpass /usr/share/dict/words -n 512
```

### Resources

-   [Developing a Full Tkinter Object-Oriented Application](https://www.pythontutorial.net/tkinter/tkinter-object-oriented-application/) on [pythontutorial.net](https://www.pythontutorial.net/)
-   [Tkinter Grid](https://www.pythontutorial.net/tkinter/tkinter-grid/) on [pythontutorial.net](https://www.pythontutorial.net/)
-   [Tkinter Open File Dialog](https://www.pythontutorial.net/tkinter/tkinter-open-file-dialog/) on [pythontutorial.net](https://www.pythontutorial.net/)
-   [Tkinter – Read only Entry Widget](https://www.geeksforgeeks.org/tkinter-read-only-entry-widget/) on [GeeksforGeeks](https://www.geeksforgeeks.org/)
-   [tkinter — Python interface to Tcl/Tk](https://docs.python.org/3/library/tkinter.html) on [docs.python.org](https://docs.python.org/)
-   [Packaging Python Projects](https://packaging.python.org/en/latest/tutorials/packaging-projects/) on [packaging.python.org](https://packaging.python.org)
-   [The .pypirc file](https://packaging.python.org/en/latest/specifications/pypirc/) on [packaging.python.org](https://packaging.python.org)
-   [How to Create and Upload Your First Python Package to PyPI](https://www.freecodecamp.org/news/how-to-create-and-upload-your-first-python-package-to-pypi/) on [freecodecamp.org](https://www.freecodecamp.org)