semvec/pypi-packages huggingface dataset:
sizestr 1.2.1
Simple and fast formatting of sizes for Python
Requires Python: >=3.9
Keywords: file-size, human-readable, humanize, stringify

# sizestr

[![PyPI - Python Version](https://shields.monicz.dev/pypi/pyversions/sizestr)](https://pypi.org/project/sizestr)
[![Liberapay Patrons](https://shields.monicz.dev/liberapay/patrons/Zaczero?logo=liberapay&label=Patrons)](https://liberapay.com/Zaczero/)
[![GitHub Sponsors](https://shields.monicz.dev/github/sponsors/Zaczero?logo=github&label=Sponsors&color=%23db61a2)](https://github.com/sponsors/Zaczero)

Simple and fast formatting of sizes for Python.

## Installation

```sh
pip install sizestr
```

## Basic usage

```py
from sizestr import sizestr

sizestr(10000)  # '9.77 KiB'
sizestr(-42)  # '-42 B'
sizestr(float('inf'))  # '(inf)'
```
webtransport 0.0.1.dev0
A Python library for web transport protocols
Requires Python: >=3.12

WebTransport Sample
===
See https://googlechrome.github.io/samples/webtransport/client.html for a live demo of the client.

There's code for a sample local server at https://github.com/GoogleChrome/samples/blob/gh-pages/webtransport/webtransport_server.py

Learn more at https://chromestatus.com/feature/4854144902889472
hhttpcode 1.0.5
Quickly look up HTTP codes in the terminal
Requires Python: >=3.10

# HTTP Code Lookup

Allows you to very quickly view and search an offline version of the [Wikipedia's HTTP Codes](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) page.

## What the hell is this?

Look up specific codes

![code lookup](https://i.ibb.co/vBWgJS1/image.png)

Filter using wildcards

![wildcard lookup](https://i.ibb.co/CWZ3ZW1/image.png)

Don't know the status code?

![text lookup](https://i.ibb.co/9TQgxtw/image.png)

## How to Install

```bash
pipx install hhttpcode
```

### Arguments

The usage for the tool is as follows:

```bash
http-code <search_term> --output-as-json --no-pretty --indent-size --no-colour
```

- `<search_term>`
  - **Mandatory**: Can be either a 3 digit code (use x to replace unknowns, eg: 2xx for all codes starting with 2) or a text search.
- `--output-as-json`
  - _Optional_: Output as JSON, by default will pretty-print JSON... use `--no-pretty` to disable
- `--no-pretty`
  - _Optional_: Disable pretty printing of JSON, does nothing without `--output-as-json` flag set
- `--indent-size`
  - _Optional_: Change the default (2) indent size
- `--no-colour`
  - _Optional_: Disable colour for non-JSON output

## How to test

```bash
python tests/test.py
```

## Known Issues

- Tests don't run on Windows systems :|