semvec/pypi-packages huggingface dataset:
typer-router 1.1.0
Build Typer CLI Apps with File System-Based Routing
License: MIT



[![](https://codecov.io/gh/nickderobertis/typer-router/branch/main/graph/badge.svg)](https://codecov.io/gh/nickderobertis/typer-router)
[![PyPI](https://img.shields.io/pypi/v/typer-router)](https://pypi.org/project/typer-router/)
![PyPI - License](https://img.shields.io/pypi/l/typer-router)
[![Documentation](https://img.shields.io/badge/documentation-pass-green)](https://nickderobertis.github.io/typer-router/)
![Tests Run on Ubuntu Python Versions](https://img.shields.io/badge/Tests%20Ubuntu%2FPython-3.8%20%7C%203.9%20%7C%203.10-blue)
![Tests Run on Macos Python Versions](https://img.shields.io/badge/Tests%20Macos%2FPython-3.8%20%7C%203.9%20%7C%203.10-blue)
![Tests Run on Windows Python Versions](https://img.shields.io/badge/Tests%20Windows%2FPython-3.8%20%7C%203.9%20%7C%203.10-blue)
[![Github Repo](https://img.shields.io/badge/repo-github-informational)](https://github.com/nickderobertis/typer-router/)


#  typer-router

## Overview

Build Typer CLI Apps with File System-Based Routing

## Getting Started

Install `typer-router`:

```
pip install typer-router
```

A simple example:

```python
import typer_router
from my_package import my_app

router = typer_router.Router.from_app_module(my_app)
app = router.to_typer(name="my_app_name")
```

See a
[more in-depth tutorial here.](
https://nickderobertis.github.io/typer-router/tutorial.html
)

## Development Status

This project is currently in early-stage development. There may be
breaking changes often. While the major version is 0, minor version
upgrades will often have breaking changes.

## Developing

First, you need a couple global dependencies installed, see their documentation for details:
- [pipx](https://pypa.github.io/pipx/installation/)
- [direnv](https://direnv.net/docs/installation.html)

Then clone the repo and run `npm install` and `mvenv sync dev`. Make your changes and then run `just` to run formatting,
linting, and tests.

Develop documentation by running `just docs` to start up a dev server.

To run tests only, run `just test`. You can pass additional arguments to pytest,
e.g. `just test -k test_something`.

Prior to committing, you can run `just` with no arguments to run all the checks.

## Author

Created by Nick DeRobertis. MIT License.

## Links

See the
[documentation here.](
https://nickderobertis.github.io/typer-router/
)
hash-calc 1.1.0
Calculates MD5 and SHA256 hashes for a given file or bytes
License: MIT

# Description

Calculates MD5 and SHA256 hashes for a given file

# Installation

`pip install hash_calc`

# Usage

**From command line:**

`python -m hash_calc [-h] --path PATH`


| Option | Short | Type | Default | Description |
|---|---|---|---|---|
|--path | -p | String | - | Path of the file to be hashed |

**Programmatically:**

```python
from hash_calc.HashCalc import HashCalc

# 1.) Hash a file
pathToFile = "/path/to/file/test.txt

hashCalc = HashCalc(pathToFile)

print(hashCalc.md5)
print(hashCalc.sha256)

# 2.) Hash bytes
h = HashCalc.fromBytes(b"\x01\x02\x03")

print(h.sha256)
print(h.md5)

```

# Example

`python -m hash_calc -p test.txt`

Creates the follwing result:

```
##############################################################################################

Hash Calc by 5f0
Calculates MD5 and SHA256 hashes for a given file

Current working directory: /path/to/hash_calc
        Investigated file: test.txt

                 MD5 Hash: 265e08df10ed62d756e5e0bb6fadd69c
              SHA256 Hash: 1675aa3766017a42980e686132eff094ba789bc3dc44de3e53f2fb05a7a513ff

                 Datetime: 01/01/1970 10:20:30

##############################################################################################

Execution Time: 0.003022 sec
```

# License

MIT