semvec/pypi-packages huggingface dataset:
werf-chart-repo-doit-tasks 1.0.6
Doit Tasks for managing Werf chart repo
License: MIT

werf_chart_repo_doit_tasks
==========================

.. image:: https://img.shields.io/pypi/v/werf_chart_repo_doit_tasks.svg
    :target: https://pypi.python.org/pypi/werf_chart_repo_doit_tasks
    :alt: Latest PyPI version

Doit Tasks for managing Werf chart repo

Usage
-----

Installation
------------

Requirements
^^^^^^^^^^^^

Compatibility
-------------

Licence
-------

Authors
-------

`werf_chart_repo_doit_tasks` was written by `Ilya Lesikov <ilya@lesikov.com>`_.
b-utils 1.0.1
Some useful Python utilities to write better code.
License: MIT
Requires Python: >=3.7
Keywords: utils maybe

# Python utils (`b-utils`) 🔧
*Some useful Python utilities to write better code.*

![PyPI - Python Version](https://img.shields.io/badge/python-3.7%2B-blue)
![PyPI](https://img.shields.io/pypi/v/b-utils)
![PyPI - License](https://img.shields.io/pypi/l/b-utils)

## Installation
This module can be easily installed using pip. It can be used with `import utils`.
```
$ pip install b-utils
```

## Features & usage
This module contains many utility features, which I add as I need them. Feel free to sumbit your own by opening a PR.

- [`maybe()` : Implementation of the maybe pattern in Python](#maybe--implementation-of-the-maybe-pattern-in-python)

#### `maybe()` : Implementation of the maybe pattern in Python

Maybe is a programming pattern that allows to **treat None values the same ways as non-None values**. This is done by
wrapping the value in a wrapper class. This implementation also allows to **ignore some errors when using chained
methods**, which is an useful alternative to ugly try/except blocks.

The implementation is based on two classes, `Some` and `Nothing`. They're instanced using the `maybe()` function, and
are children of the `Maybe` metaclass. 

```python
from utils import maybe

my_list = ["Hello", "world"]

assert maybe(my_list)[0].upper().unwrap() == "HELLO"
# * Maybe instances can be treated as containers (like dict or list)
# when wrapping an object that implement this feature.
# * Methods called on Some are forwarded to the wrapped object, and the 
# returned value is wrapped again into a Maybe instance.
# * The unwrap method return the wrapped object, or None if called on Nothing.

assert maybe(my_list)[3].upper().or_default("Unknown") == "Unknown"
# * When using an invalid index/key with a Maybe instance, Nothing is returned
# instead of raising an error.
# * Methods called on Nothing are ignored.
# * The or_else method return the wrapped object, or the passed value if called
# on Nothing.

my_number = 5

assert (maybe(my_number) * 2).unwrap() == 10
# Basic math operators are supported (+ - * / // % **).
# Any operation involving Nothing return Nothing.

assert maybe(my_number) < 10
# Comparison operators are also supported.
# In this case, this is equivalent to : my_number is not None and my_number < 10
# Any comparison involving Nothing return False (even Nothing == Nothing)

assert maybe(",", ignored=TypeError).join().unwrap() == None
# Normally, a TypeError error should be raised, because join need an argument.
# Using the keyword-only "ignored" parameter, you can specify errors that will be
# caught when executing method. In this case, Nothing will be returned.
# Note that works only for methods, not for operators. 
```

The `Maybe` class supports generic types (eg. `Maybe[str]`), but cannot infer types returned by methods or operators, 
so it returns `Maybe[Any]`. **Async method are currently not supported**, any help to implement that would be welcome
uconvert 0.0.2
This contains common unit conversions
License: MIT
Requires Python: >=3.6
Keywords: unit,convert,conversion

# Unit Converter
This contains common conversions such as units convert of __length__, __temperature__, __area__, __volume__, __time__, __weight__.
Specifically contains:
## 1. Lenght
* Meter
* Yard
* Mile
* Foot
* Inch
* Light Year
## 2. Temperature
* Celsius
* Kelvin
* Fahrenheit
## 3. Area
* Square meter
* Hectare
* Square Mile
* Square Yard
* Square Foot
* Square Inch
* Acre
## 4. Volume
* Cubic Meter
* Cubic Kilometer
* Cubic Centimeter
* Cubic Millimeter
* Liter
* Milliliter
* US Gallon
* US Quart
* US Pint
* US Cup
* US Fluid Ounce
* US Table Spoon
* US Tea Spoon
* Imperial Gallon
* Imperial Quart
* Imperial Pint
* Imperial Fluid Ounce
* Imperial Table Spoon
* Imperial Tea Spoon
* Cubic Mile
* Cubic Yard
* cubic Foot
* Cubic Inch
## Time
* Second
* Minute
* Hour
* Day
* Week
* Month
* Year
## weight
* Kilogram
* Gram
* Millimeter
* Metric Ton
* Long Ton
* Short Ton
* Pound
* Ounce
* Carat
* Atomic Mass Unit (Dalton)