semvec/pypi-packages huggingface dataset:
benstats 0.0.3
A Python package for calculating Benford's Law statistics on images
Requires Python: >=3.7
Keywords: benford,image,statistics

# benstats
A Python package for calculating Benford's Law statistics on images

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

-----

**Table of Contents**

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

## Installation

```console
pip install benstats
```

## Usage

### Importing the package

```python
import benstats
```

### Read an image
```python 
image = benstats.read("path/to", "image.png")
```
Supported image formats: bmp, dib, jpeg, jpg, jpe, jp2, png, webp, pbm, pgm, ppm, pxm, pnm, sr, ras, tiff, tif, exr, hdr, pic

### Calculate Benford's Law statistics
```python
benstats.benstats(image, channels=['rgb', 'gray'], scale=1, min=0, max=255)
```
- `channels`: list of channels to calculate statistics for. Possible values: `rgb`, `hsv`, `gray`, `lab`, `luv`, `xyz`, `ycbcr`
- `scale`: scale factor for the image. If `scale` is less than 1, the image will be downsampled. If `scale` is greater than 1, the image will be upsampled.
- `min`: new range min to map pixel values into. Default: 0
- `max`: new range max to map pixel values into. Default: 255

Returns a dictionary of channelwise statistics.

### Plotting Benford's Law statistics
```python
benstats.benplot(image, channels=['rgb'], scale=1, min=0, max=255)
```
Same parameters as above.

## License

`benstats` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.

-----
Built by @gv-sh @bhaumikdebanshu
netatmoapi 1.1.1
A simple Python wrapper of the Netatmo Connect API
Requires Python: >=3.7

# netatmoapi

This is a simple Python 3 wrapper of the Netatmo Connect API.

It contains user authentication and nearly the full functionality of the Netatmo Connect API.

## Installation

You can install the library using [pip](https://pip.pypa.io/en/stable/):

`pip install netatmoapi`

## Preparations

- Netatmo account
- Netatmo Connect App ([read more](https://dev.netatmo.com/apps/createanapp#form))
- At least one Netatmo device

## How to use

```python
# import the API
from netatmoapi import Client
from netatmoapi import Station

# create a client
c = Client(
    "xxxxxxxxxxxxxxxxxxxxxxxx",  # client id
    "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",  # client secret
    "user@mail",
    "password",
)

# add a weather station
ws = Station.Weather(c)

# 'getstationsdata()' returns a <requests.Response object>
print(
    ws.getstationsdata("70:ee:50:XX:XX:XX").text
)  # turn it into text using the '.text' attribute
```

## Note

This is **not** in any way an official software made by Netatmo. I've made this purely for personal use and decided to share it to the community.

This is still a very early version and is still missing all the documentation. I would recommend only using this library if you know your way around Python classes. Feel free to edit the code to your needs.
prymbr 0.0.9.4
A library adding useful and diverse functions such as prime related fuinctions.
Requires Python: >=3.6

# prymbr

A Package to simplify the usage of prime numbers, fractions, and other simple yet time consuming operations.

### Features:
+ Check if a number is prime
+ Decompose a number into a sequence of prime factors
+ Find gcd and lcm of 2 numbers
+ Create fractions
+ Simplify fractions to the maximum
+ Convert fractions back to decimals
+ And more!

### Incoming Update:
+ Faster calculations with the use of [Simd](https://pypi.org/project/simd/) library
+ More calculation options

### Usage:

Install `prymbr` on your system with pip:

```
pip install prymbr
```

### Example:

```python
import prymbr

print(prymbr.isprime(51)) #False

print(prymbr.decomp(78)) #[2, 3, 13]

print(prymbr.pgcd(45, 63)) #7
print(prymbr.gcd(45, 63)) #7

print(prymbr.ppcm(45, 63)) #405
print(prymbr.lcm(45, 63)) #405

fraction = prymbr.frac(88, 48) #88/48
print(fraction)

print(prymbr.simp(fraction)) #11/6

print(prymbr.deci(fraction)) #1.8333

print(prymbr.frac(fraction)) #True

print(prymbr.frac(1.6424)) #2053/1250
```
archetypewsgi 1.0.6
Python WSGI implementation for Archetype. Archetype provides packages that automatically handles API user auth and an SDK for managing your APIs.
Requires Python: >=3.6

# Archetype? 

#### Everything you need to build and manage API Subscriptions

Archetype is a powerful, reliable purchase server with cross-platform support. Our open-source framework provides a backend and a wrapper around Stripe to make implementing API keys and creating quotas and subscriptions easy. 

Whether you are building a new API or already have millions of customers, you can use Archetype to:

-   Fetch products, make purchases, and check subscription status with our  [native SDKs](https://docs.archetype.dev/docs/installation).
-   Host and  [configure products](https://docs.archetype.dev/docs/products)  remotely from our dashboard.
-   Analyze the most important metrics for your app business  [in one place](https://docs.archetype.dev/docs/analytics).
-   See customer transaction histories, chart lifetime value, and  [grant promotional subscriptions](https://docs.archetype.dev/docs/customers).

Sign up to  [get started for free](https://beta.archetype.dev/signup).


# Getting started resources

[](https://docs.archetype.dev/docs/welcome#getting-started-resources)

With Archetype, you can keep track of all your app transactions in one place — whether your customers are charged through iOS, Android, or the web. As the single source of truth for your app business, we make sure your users’ subscription status is always up to date.

Here are a few ways to get started:

Jump right in with our  [Quickstart Guide](https://docs.archetype.dev/docs/getting-started)

Use  [our API](https://docs.archetype.dev/reference)  to create or modify customers.

# Ready to start building?

Simplified payments for your API are just a few lines of code away.

## [Sign up to  **launch your API today**](https://app.archetype.dev/signup)

## **[Explore the docs](https://docs.archetype.dev/docs/getting-started)**