semvec/pypi-packages huggingface dataset:
chunkifypy 0.0.1
ChunkifyPy is a Python package designed to simplify the process of breaking down sizable Python objects into smaller, manageable chunks. This package is an invaluable tool for applications requiring seamless streaming or transmission of data in controlled portions.
Requires Python: >=3.10,<4.0

# Usage
```python
from ChunkifyPy.chunkify import chunkify
long_list = list(range(0, 10**6))  # 1 million elements list
# create a generator of elements where each chunk is of size 0.01 MB (10 KB) or less
result = chunkify(long_list, 0.01)
for chunk in result:
    print(chunk)
```
artdirector 0.0.3
Crop your image to different resolutions without missing the subject.
Requires Python: >=3.6

# artdirector

Set a focal point and "artdirector" crop your image to different resolutions without missing the subject. Ideal to create images for mixed or responsive media.

## Example

Original Image (by me)

![Original size](https://raw.githubusercontent.com/jdnumm/artdirector/main/example/example.jpeg)

Variants

```
artdirector --focus-x 260 --focus-y 440 --height 600 --width 600 --zoom 0.0 --edge 3.0 example.jpeg test-1.jpeg
artdirector --focus-x 260 --focus-y 440 --height 600 --width 300 --zoom 0.2 --edge 3.0 example.jpeg test-2.jpeg
artdirector --focus-x 260 --focus-y 440 --height 600 --width 600 --zoom 0.7 --edge 3.0 example.jpeg test-3.jpeg
```

![Crop 1](https://raw.githubusercontent.com/jdnumm/artdirector/main/example/test-1.jpeg)
![Crop 2](https://raw.githubusercontent.com/jdnumm/artdirector/main/example/test-2.jpeg)
![Crop 3](https://raw.githubusercontent.com/jdnumm/artdirector/main/example/test-3.jpeg)

## Installation

    pip3 install artdirector

## Usage

Use it as a command-line tool:

```
$ artdirector --help
usage: artdirector [-h] [--width WIDTH] [--height HEIGHT] [--focus-x FOCUS_X] [--focus-y FOCUS_Y] [--zoom ZOOM]
                      INPUT_FILE OUTPUT_FILE

positional arguments:
  INPUT_FILE         Input image
  OUTPUT_FILE        Output image

options:
  -h, --help         show this help message and exit
  --width WIDTH      Crop width
  --height HEIGHT    Crop height
  --focus-x FOCUS_X  Focal point
  --focus-y FOCUS_Y  Focal point
  --zoom ZOOM        Zoom between 0.0 - 1.0 (0.0. Default)
  --edge EDGE        Edge (size/n) around the focal target area

```

As a Python module


```
from artdirector import ArtDirector

ad = ArtDirector()
ad.load('input.jpg')
ad.crop([400, 400], focus=[600, 300], zoom=0.3)
ad.save('output.jpg')
ad.filter_blur().filter_bw()
ad.save('output-blur-bw.jpg')

print(ad.image) # PIL Image
```
xpan 0.0.1
An API library for BaiduNetdisk
Requires Python: >=3.6
Keywords: BaiduNetdisk,openapi_client


## BaiduNetdisk OpenAPI Client

An API library for [BaiduNetdisk](https://pan.baidu.com/union/doc/Kl4gsu388)

Generated by: [https://openapi-generator.tech](https://openapi-generator.tech)



### Library Struct

```
xpan
│  api_client.py
│  configuration.py
│  exceptions.py
│  model_utils.py
│  rest.py
│  __init__.py
│
├─api
│      auth_api.py
│      fileinfo_api.py
│      filemanager_api.py
│      fileupload_api.py
│      multimediafile_api.py
│      userinfo_api.py
│      __init__.py
│
└─model
        oauth_token_authorization_code_response.py
        oauth_token_device_code_response.py
        oauth_token_device_token_response.py
        oauth_token_refresh_token_response.py
        quotaresponse.py
        uinforesponse.py
        __init__.py
```



### Example

```python
import os,sys
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(BASE_DIR)
import xpan
from xpan.api import userinfo_api
from xpan.model.quotaresponse import Quotaresponse
from xpan.model.uinforesponse import Uinforesponse
from pprint import pprint

def user_quota():
    """
    user_quota demo
    """
    # Enter a context with an instance of the API client
    with xpan.ApiClient() as api_client:
        # Create an instance of the API class
        api_instance = userinfo_api.UserinfoApi(api_client)
        access_token = "123.56c5d1f8eedf1f9404c547282c5dbcf4.YmmjpAlsjUFbPly3mJizVYqdfGDLsBaY5pyg3qL.a9IIIQ" # str | 
        checkexpire = 1 # int |  (optional)
        checkfree = 1 # int |  (optional)

        # example passing only required values which don't have defaults set
        # and optional values
        try:
            api_response = api_instance.apiquota(access_token, checkexpire=checkexpire, checkfree=checkfree)
            pprint(api_response)
        except xpan.ApiException as e:
            print("Exception when calling UserinfoApi->apiquota: %s\n" % e) 


def user_info():
    """
    user_info demo
    """
    # Enter a context with an instance of the API client
    with xpan.ApiClient() as api_client:
        # Create an instance of the API class
        api_instance = userinfo_api.UserinfoApi(api_client)
        access_token = "123.56c5d1f8eedf1f9404c547282c5dbcf4.YmmjpAlsjUFbPly3mJizVYqdfGDLsBaY5pyg3qL.a9IIIQ" # str | 

        # example passing only required values which don't have defaults set
        try:
            api_response = api_instance.xpannasuinfo(access_token)
            pprint(api_response)
        except xpan.ApiException as e:
            print("Exception when calling UserinfoApi->xpannasuinfo: %s\n" % e)


```