semvec/pypi-packages huggingface dataset:
scratchforumscli 0.0.1
Allows you to view Scratch forums in a command line interface
Requires Python: >=3.9

# AReallyRandomCLI

A TUI (and CLI) you to view Scratch forums in a command line interface. (I don't really care much about Scratch nor am I associated with their forums, it was just an excuse to use BeautifulSoup)

## Installation
```
pip install areallyrandomcli_normalperson543
```
## Usage
To go into the TUI home page:
```
areallyrandomcli
```
You'll first see the forums homepage, to go to a forum, type the corresponding ID (like 1) and press enter.

Now, you'll be in a forum page. To go to the first topic, type #1 and press Enter. For the second topic, type #2, etc.

The following shortcuts are available navigate the TUI:
```
of [forum ID] = Opens a forum
ot [topic ID] = Opens a topic
h = Goes to the homepage
bb = Goes back one parent page
n = Goes to the next forum/topic page
b = Goes back one forum/topic page
o = Opens the current page in the browser
p [number] = Jumps to a specific page in a forum/topic
#[number] = In a forum, goes to the n-th topic  
[number] = Goes to the forum/topic with that ID
```

### Using only the terminal
You don't have to use the TUI. You can open the homepage, forums and topics using only the terminal.

Print out the homepage:
```
areallyrandomcli gh
```

Print out a topic:
```
areallyrandomcli gt [topic ID]
```

Print out a forum:
```
areallyrandomcli gf [forum ID]
```


You can also type ``raw`` to get the raw output of any page just after it is parsed. I don't know how you would use that but it exists.
markdown-gfm-admonition 0.3.0
GFM admonition syntax for Python Markdown
Requires Python: >=3.9

markdown-gfm-admonition
=======================

[![PyPI][PyPI badge]][PyPI]
[![GitHub Actions status][GitHub Actions status badge]][GitHub Actions status]

This package is an extension of [Python Markdown] that enables
the [admonition syntax of GitHub Flavored Markdown][1].

There are five types of admonitions:

~~~~ markdown
> [!NOTE]
> Highlights information that users should take into account,
> even when skimming.

> [!TIP]
> Optional information to help a user be more successful.

> [!IMPORTANT]
> Crucial information necessary for users to succeed.

> [!WARNING]
> Critical content demanding immediate user attention due to potential risks.

> [!CAUTION]
> Negative potential consequences of an action.
~~~~

It generates the same HTML as [Python Markdown's built-in admonition
extension][2]:

~~~~ html
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>Highlights information that users should take into account,
even when skimming.</p>
</div>
~~~~

[PyPI badge]: https://img.shields.io/pypi/v/markdown-gfm-admonition
[PyPI]: https://pypi.org/project/markdown-gfm-admonition/
[GitHub Actions status badge]: https://github.com/dahlia/markdown-gfm-admonition/actions/workflows/build.yaml/badge.svg
[GitHub Actions status]: https://github.com/dahlia/markdown-gfm-admonition/actions/workflows/build.yaml
[Python Markdown]: https://github.com/Python-Markdown/markdown
[1]: https://github.com/orgs/community/discussions/16925
[2]: https://python-markdown.github.io/extensions/admonition/


Usage
-----

To use this extension, you need to install it first:

~~~~ bash
uv add markdown-gfm-admonition
# or
pip install markdown-gfm-admonition
~~~~

Then, you can use it in your Python code like this:

~~~~ python
from markdown import Markdown
from markdown_gfm_admonition import GfmAdmonitionExtension

md = Markdown(extensions=[GfmAdmonitionExtension()])
html = md.convert("""
> [!NOTE]
> Highlights information that users should take into account,
> even when skimming.
""")
~~~~

> [!TIP]
> Instead of importing `GfmAdmonitionExtension` directly, you can use
> the entry point `"gfm_admonition"` as well to load the extension:
>
> ~~~~ python
> md = Markdown(extensions=["gfm_admonition"])
> ~~~~
python-em511 0.0.1
Driver for Carlo Gavazzi EM511 Series Single Phase Energy Meters using Modbus RTU
Requires Python: >=3.10

[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/id8-engineering/python-em511/badge)](https://scorecard.dev/viewer/?uri=github.com/id8-engineering/python-em511)

## python-em511

python-em511 provides a simple, Pythonic interface for reading and writing data 
from Carlo Gavazzi EM511 series energy meters over Modbus RTU. It builds on top 
of [pymodbus](https://pypi.org/project/pymodbus/).

## Example usage:

```python
from em511 import Em511
from pymodbus.client import ModbusSerialClient

# Configure the Modbus client
client = ModbusSerialClient(
   port="COM3",  # or "/dev/ttyUSB0" on Linux
   baudrate=9600,
   parity="E",
   stopbits=1,
   bytesize=8,
   # datasheet specifies maximum response timeout of 500ms (typical 40ms)
   timeout=0.5,
)

# Device Modbus address
device_address = 1

# Initialize the EM511 driver
meter = Em511(device_address=device_address, client=client)

# Read voltage
voltage = meter.V
print(f"Voltage: {voltage} V")

# Example of writing a password-protected parameter
meter.password = 1234
```

## Report issues

If you run into problems, you can ask for help in our [issue tracker](https://github.com/id8-engineering/python-em511/issues) on GitHub.

## Contributing
See [CONTRIBUTING.MD](https://github.com/id8-engineering/python-em511/blob/main/CONTRIBUTING.MD) and [DEVELOPMENT.MD](https://github.com/id8-engineering/python-em511/blob/main/DEVELOPMENT.MD).