semvec/pypi-packages huggingface dataset:
afterpay 0.4.0
Python library for interacting with Afterpay API

# afterpay-python
Python library for interacting with Afterpay API, based on the `braintree_python` project

## Note
This library may be functional but is still in development. Features still need to be tested
and code refactored.

## Dependencies
* requests
* certifi

This project has only been tested with Python 3.9
stbimage 1.0.2
Python bindings for stb_image and stb_image_writer libraries. Contains binary modules for Python 2.7 and Python 3.6-3.9, builded for Windows.
Requires Python: !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7

# What is it

This is Python Windows bindings for stb_image and stb_image_write c++ libraries ([link](https://github.com/nothings/stb)). These libraries used for reading and writing images in png, jpg, bmp, tga and hdr formats. Created by using [PyBind11](https://github.com/pybind/pybind11). Works in Python 2.7 and 3.6-3.9, but use different binary modules for different versions of the Python.

# How to use

Install by

```
pip install stbimage
```

Import module

```python
import stbimage as stbi
```

The module contains 4 functions: two function for loading images and two ones for writing it.

```python
stbi.load(filepath)
stbi.load_float(filepath)
```

These functions load image by it full path and return the tuple (width, height, channels, pixels). Pixels are plane list of integers or floats (for `load_float` function), which contains data for each pixel of the image. At first it contains several values for the first pixel, then for the second one and so on...

When an image is loaded in float mode (by using `load_float` function), then pixels values returned without gamma compensation. For example, if the pixel in LDR mode has values `[128, 128, 128]` then in HDR mode it has values `[0.22, 0.22, 0.22]`.

```python
stbi.write(filepath, width, height, components, pixels)
stbi.write_float(filepath, width, height, components, pixels)
```

These function write pixels to images. Input parameters have the same sense as in load functions. Each write function return `True`, if the file was created successfully and `False` in other case.
subsetsum 0.0.2
A Python module for finding all solutions to the SUBSET-SUM problem
Requires Python: >=3.6

# subsetsum

The `subsetsum` Python module can enumerate all combinations within a list of integers which sums to a specific value. It works for both negative and positive `target` sum values, as well as negative, positive, and repeating values in the list of input numbers. `subsetsum` can also quickly answer whether or not _there exists_ a subset of integers in the input list which sums to `target`.

## Installation

```
pip install subsetsum
```

## Example usage

```
import subsetsum

target = 0
nums = [-2, -1, 0, 1, 2]

has_solution = subsetsum.has_solution(nums, target)
print(f"Can {nums} sum to {target}? {has_solution}")

for solution in subsetsum.solutions(nums, target):
    # `solution` contains indices of elements in `nums`
    subset = [nums[i] for i in solution]
    sum_value = sum(subset)
    print(f"{subset} sums to {sum_value}")
```

## API

```
import subsetsum


subsetsum.has_solution(nums: List[int], target: int) -> bool:
    Determines if there is a subset of `nums` which sums to
        `target`. If `nums` is empty, the result is always False.

    Args:
        nums (List[int]): A list of integers (positive or negative)
            for the SUBSET-SUM problem
        target (int): The target value (positive or negative) which
            will be used in the SUBSET-SUM problem

    Returns:
        bool: True if there exists a subset of `nums` which sums to
            `target`, otherwise false


subsetsum.solutions(nums: List[int], target: int) -> Iterator[List[int]]:
    Enumerates all solutions to SUBSET-SUM. If `nums` is empty,
    no solutions will be generated.

    Args:
        nums (List[int]): A list of integers (positive or negative)
            from which subsets will be generated
        target (int): The target value (positive or negative) for the
            sum of each subset

    Returns:
        Iterable: An iterator over the set of solutions, where each
            solution is a list of integers that index into the original
            list `nums` to form a subset
```
simemobilecity 0.1.0
Charging infrastructure simulation suite.
Requires Python: >=3.5

# SimeMobileCity: Charging Infrastructure Simulation Suite

[![PyPI Version](https://img.shields.io/badge/PyPI-0.1.0-orange)](https://pypi.org/project/simemobilecity/)
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://github.com/Ajax23/SimeMobileCity/blob/master/LICENSE)
[![DOI](https://zenodo.org/badge/393620742.svg)](https://zenodo.org/badge/latestdoi/393620742)
[![Build Status](https://github.com/Ajax23/SimeMobileCity/actions/workflows/workflow.yml/badge.svg)](https://github.com/Ajax23/SimeMobileCity/actions/workflows/workflow.yml)
[![codecov](https://codecov.io/gh/Ajax23/SimeMobileCity/branch/master/graph/badge.svg?token=AXx3JTujap)](https://codecov.io/gh/Ajax23/SimeMobileCity)
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/Ajax23/SimeMobileCity.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Ajax23/SimeMobileCity/context:python)

## Documentation

Online documentation is available at [ajax23.github.io/SimeMobileCity](https://ajax23.github.io/SimeMobileCity/).

The docs include an [API reference](https://ajax23.github.io/SimeMobileCity/api.html).

## Dependencies

SimeMobileCity supports Python 3.5+.

Installation requires [osmnx](https://osmnx.readthedocs.io/en/stable/), [scikit-learn](https://scikit-learn.org/stable/index.html), [pandas](https://pandas.pydata.org/) and [seaborn](https://seaborn.pydata.org/).


## Installation

The latest stable release (and older versions) can be installed from PyPI:

    pip install simemobilecity

You may instead want to use the development version from Github:

    pip install git+https://github.com/ajax23/simemobilecity.git#egg=simemobilecity

    pip install git+https://github.com/ajax23/simemobilecity.git@develop#egg=simemobilecity

Or download the repository and install in the top directory via:

    pip install .


## Testing

To test SimeMobileCity, run the test in the test directory.


## Development

SimeMobileCity development takes place on Github: [www.github.com/Ajax23/SimeMobileCity](https://github.com/Ajax23/SimeMobileCity)

Please submit any reproducible bugs you encounter to the [issue tracker](https://github.com/Ajax23/SimeMobileCity/issues).


## How to Cite SimeMobileCity

When citing SimeMobileCity please use the current **Zenodo DOI** corresponding to the used SimeMobileCity version. (Current DOI is listed in the badges.)