semvec/pypi-packages huggingface dataset:
sanwei 0.0.1
Render random chinese text in 3D
Requires Python: >=3.10

# sanwei

[![PyPI - Version](https://img.shields.io/pypi/v/sanwei.svg)](https://pypi.org/project/sanwei)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/sanwei.svg)](https://pypi.org/project/sanwei)

-----

**Table of Contents**

- [Installation](#installation)
- [License](#license)

## Installation

```nix
nix shell git+https://github.com/fetsorn/sanwei

```

```console
pip install sanwei
```

## Usage

``` nix
# render a random chinese character with WenQuanYi Zen Hei font
nix build git+https://github.com/fetsorn/sanwei#image
```

``` console
sanwei --binary /path/to/blender \
       --font-path "/path/to/font" \
       --font-name "Font Name Regular"
```

## Docs

 - "--binary", required, path to Blender binary executable, e.g. "/Applications/Blender.app/Contents/MacOS/Blender"
 
 - "--font-path", required, path to chinese font, e.g. "./path/to/chinese.ttc"
 
 - "--font-name", required, name of the font in bpy.data.fonts, e.g. "Chinese Font Regular"
 
 - "--output", optional, name for output file without the .png extension, defaults to "/tmp/sanwei" and creates a "/tmp/sanwei.png" file
 
 - "--input", optional, arbitrary text to render, defaults to a random chinese character
 
 - "--resolution", optional, percentage scale for render resolution, int in [1, 32767], default 100
 
 - "--samples", optional, number of samples for the Cycles render engine, default 128

## License

`sanwei` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
preface 0.1.5
Some helper functions and classes that I want in nearly every project.

Python Preface
==============

**preface** is a set of basic utility functions that I'd like to be global in Python, and some utility types.
Stuff like getting any element from a set, flattening a list, etc.

These functions should be appropriately named but also not conflict with other names in the global space.

The name is a joke based on Haskell's prelude.

There is also a SumType that's useful for defining Python enums is an easier manner.
nrp 0.0.1.1
Package for root computation of math functions
Requires Python: >=3.6

# nrp

This is a small package for computing roots of a given function using newton-raphson method.

The user needs to supply an initial root guess, the function as well as the first derivative of the function as callbacks.

## Usage

(We are actively adding support for passing functions as callback.)
**Example:**
```python
from nrp import newton_raphson
from lpython import f64, i32


def check():
    x0: f64 = 20.0
    c: f64 = 3.0
    maxiter: i32 = 20
    x: f64
    x = newton_raphson(x0, c, maxiter)
    assert abs(x - 3.0) < 1e-5

check()
```
youtube-urls-validator 0.0.1
Validator for YouTube URLs.
Keywords: python,validation,youtube

# youtube_urls_validator

Library for validating YouTube urls and brings them to one standart.

# How method works?

1. Add prefix "https://"
2. Change all hostnames to "www.youtube.com"


# Examples

```python
from youtube_urls_validator import validate_url

validated_url = validate_url(url='youtube.com/youtube/')
# >> https://youtube.com/youtube

validated_url = validate_url(url='youtu.be/youtube')
# >> https://youtube.com/youtube
```


# Installing

```commandline
pip3 install youtube_urls_validator
```