semvec/pypi-packages huggingface dataset:
hoop-stats 0.1.3
A Python package for scraping NBA data from Basketball Reference.
Requires Python: <4.0,>=3.11

# NBA Web Scraping Project

`hoop-stats` can be accessed [here](https://pypi.org/project/hoop-stats/) on PyPi.

This project serves as a proof of concept (POC) for web scraping NBA data from Basketball Reference. The primary motivation is to explore the intersection of data science and software engineering by building a reliable NBA-focused Python package. The long-term objective of this project is to evolve into the backend of a full-stack application, providing users with seamless access to NBA statistics through an intuitive and user-friendly interface.

## Installation

Install the package using the following command:

```python
pip install hoop-stats
```
nba-web-scraping 0.1.2
A Python package for scraping NBA data from Basketball Reference.
Requires Python: <4.0,>=3.11

# NBA Web Scraping Project

`nba-web-scraping` can be accessed [here](https://pypi.org/project/nba-web-scraping/) on PyPi.

This project serves as a proof of concept (POC) for web scraping NBA data from Basketball Reference. The primary motivation is to explore the intersection of data science and software engineering by building a reliable NBA-focused Python package. The long-term objective of this project is to evolve into the backend of a full-stack application, providing users with seamless access to NBA statistics through an intuitive and user-friendly interface.

## Installation

Install the package using the following command:

```python
pip install nba-web-scraping
```
pattern-auto-generator 0.1
A Python package for generating various patterns.
Requires Python: >=3.6

# Pattern Generator

The `pattern_generator` module provides functions to generate various kinds of patterns, including star patterns, number patterns, grid patterns, and more. This module is designed to help you visualize different types of patterns for educational and development purposes.

## Features

- **Star Pattern**: Generates a symmetrical star pattern.
- **Number Pattern**: Prints incremental numbers in each row.
- **Grid Pattern**: Displays a grid with `+` and `-` characters.
- **Pyramid Pattern**: Creates a pyramid shape made of stars.
- **Inverted Pyramid Pattern**: Forms an inverted pyramid shape made of stars.
- **Diamond Pattern**: Displays a diamond shape made of stars.
- **Right-Angle Triangle Pattern**: Shows a right-angle triangle shape made of stars.
- **Hollow Square Pattern**: Produces a square shape with stars on the border and spaces inside.
- **Fibonacci Pattern**: Prints the first `n` Fibonacci numbers in a line.
- **Number Pyramid Pattern**: Creates a pyramid of numbers.
- **Hollow Diamond Pattern**: Displays a diamond shape made of stars with hollow space inside.

## Installation

You can install the `pattern_generator` module via pip:

```bash
pip install pattern_generator


## Usage
from pattern_generator import pattern_generator

# Generate various patterns
pattern_generator.star_pattern(5)
pattern_generator.number_pattern(5)
pattern_generator.grid_pattern(4, 5)
pattern_generator.pyramid_pattern(5)
pattern_generator.inverted_pyramid_pattern(5)
pattern_generator.diamond_pattern(5)
pattern_generator.right_angle_triangle_pattern(5)
pattern_generator.hollow_square_pattern(5)
pattern_generator.fibonacci_pattern(10)
pattern_generator.number_pyramid_pattern(5)
pattern_generator.hollow_diamond_pattern(5)
pymsbuild-rust 0.1.8
A pymsbuild extension for compiling native modules written in Rust.
Keywords: build, pep-517, msbuild, packaging, rust

# pymsbuild-rust

This is a [pymsbuild](https://pypi.org/project/pymsbuild) extension for
compiling native modules written in Rust.

# Quick Start

In your `_msbuild.py`, import `RustPydFile` and `Cargo` from `pymsbuild_rust`
(using `import *` is okay).

While Cargo is used to run the build, all files need to be specified from your
`_msbuild.py` file to be collected when building an sdist, and to handle
incremental builds correctly.

```python
from pymsbuild import *
from pymsbuild_rust import *

METADATA = {...}

PACKAGE = Package(
    'package',
    PyFile("__init__.py"),
    RustPydFile(
        "native",
        Cargo("Cargo.toml"),
        SourceFile("src/lib.rs"),
        source="native"
    ),
)
```

The `Cargo` element refers to your `Cargo.toml`, which should specify that a
`cdylib` is to be built. The name of the lib should match the name provided to
`RustPydFile`, which will also be the resulting extension module's name.

```toml
[lib]
name = "native"
crate-type = ["cdylib"]
```

Other than this, the module may build in any way it likes. Most likely, you
will use [PyO3](https://pyo3.rs/), and so should follow their documentation for
instructions on setting up the rest of your project (ignoring the parts that
refer to other build backends such as Maturin).

Other files listed in the `RustPydFile` will be included in your sdist, and will
be used to determine whether the module needs to be recompiled.

Theoretically, multiple `Cargo` elements will trigger multiple builds. However,
as they will all be directed into the same directory, this may not do what you
hope. Advanced users may find some value regardless.
dutch-flag 0.1.2
A minimalistic python library solving the Dutch national flag problem.

# dutch_flag

`dutch_flag` is a simple Python library that provides a function to sort an array of three distinct values (representing different colors) in linear time using the Dutch National Flag problem algorithm.

## Installation

You can install the package using `pip`:

```bash
pip install dutch_flag
```

## Usage

Once installed, you can use the `sort` function to sort an array of three distinct values. By default, the function sorts an array containing the values 0, 1, and 2, but you can customize the values if needed.

### Example

```python
from dutch_flag import sort

# Example with default values (0 = red, 1 = white, 2 = blue)
arr = [2, 0, 1, 2, 1, 0]
sorted_arr = sort(arr)
print(sorted_arr)  # Output: [0, 0, 1, 1, 2, 2]
```

You can also customize the values that represent the colors:

```python
### Example with custom values (r = 'r', w = 'w', b = 'b')

```python
arr = ['w', 'b', 'r', 'w', 'r', 'b']
sorted_arr = sort(arr, r='r', w='w', b='b')
print(sorted_arr)  # Output: ['r', 'r', 'w', 'w', 'b', 'b']
```

```
### Function Definition

```python
def sort(arr, r=0, w=1, b=2):
    """
    Sorts an array of three distinct values (default: r=0, w=1, b=2) in place.

    Args:
        arr (list): The array to sort.
        r (int, optional): The value representing the 'red' color. Default is 0.
        w (int, optional): The value representing the 'white' color. Default is 1.
        b (int, optional): The value representing the 'blue' color. Default is 2.

    Returns:
        list: The sorted array.
    
    Raises:
        ValueError: If the array contains a value other than r, w, or b.
    """
```

### Edge Cases

- **Empty array**: The function will return an empty array without raising an error.
- **Invalid values**: If the array contains values other than `r`, `w`, or `b`, the function will raise a `ValueError`.

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.