semvec/pypi-packages huggingface dataset:
webpay-bahamta 0.1.1
Python package for Webpay gateway API.
License: MIT

Python package for `Webpay <https://webpay.bahamta.ir>`__ gateway API
=====================================================================

Installation
------------

Install from PyPI:

.. code:: bash

    pip install webpay-bahamta

For async support:

.. code:: bash

    pip install webpay-bahamta[async]

Usage
-----

Simple example:

.. code:: python

    from webpay import WebpayAPI

    API_KEY = "webpay:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx:zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz"
    webpay = WebpayAPI(API_KEY)

    # Make a payment
    payment_url = webpay.payment(
        reference='payment#1',
        amount_irr=100000,
        callback_url='https://example.com',
        payer_mobile='+989111111111',  # Optional
        trusted_pan=None  # Optional
    )

    # Verify payment
    try:
        payment_data = webpay.verify(
            reference='payment#1',
            amount_irr=100000
        )
        if payment_data.get("status") == "paid":
            print("Payment confirmed")
        else:
            print("Payment not confirmed")
    except Exception as exc:
        if exc.error_key == 'NOT_CONFIRMED':
            print("Payment not confirmed")
        else:
            raise exc

Async example:

.. code:: python

    import asyncio
    from webpay import AsyncWebpayAPI

    API_KEY = "webpay:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx:zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz"
    webpay = AsyncWebpayAPI(API_KEY)


    async def main():
        # Make a payment
        payment_url = await webpay.payment(
            reference='payment#1',
            amount_irr=100000,
            callback_url='https://example.com',
            payer_mobile='+989111111111',  # Optional
            trusted_pan=None  # Optional
        )

        # Verify payment
        try:
            payment_data = await webpay.verify(
                reference='payment#1',
                amount_irr=100000
            )
            if payment_data.get("status") == "paid":
                print("Payment confirmed")
            else:
                print("Payment not confirmed")
        except Exception as exc:
            if exc.error_key == 'NOT_CONFIRMED':
                print("Payment not confirmed")
            else:
                raise exc

    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())

payment\_url will be like:

::

    https://webpay.bahamta.com/api/…

payment\_data will be like:

.. code:: json

    {
        "state": "paid",
        "total": 1000000,
        "wage": 5000,
        "gateway": "sep",
        "terminal": "11223344",
        "pay_ref": "GmshtyjwKSu5lKOLquYrzO9BqjUMb/TPUK0qak/iVs",
        "pay_trace": "935041",
        "pay_pan": "123456******1234",
        "pay_cid": "77CB1B455FB5F60415A7A02E4502134CFD72DBF6D1EC8FA2B48467DFB124AA75A",
        "pay_time": "2019-11-12T16:39:57.686436+03:30"
    }

API Documentation
-----------------

https://webpay.bahamta.com/doc/api
Extract-Media-PowerPoint 0.6
Extract video PowerPoint
License: MIT

# Extract Media PowerPoint



Example:

```python
from extract import PowerPoint
'''
DEFAULT:

default_permission_video = ['mp4', 'avi', 'mpg', 'mpeg', 'wmv']
default_permission_image = ['png', 'jpeg', 'jpg', 'bmp', 'svg']
output_directory = 'temp'
'''

if __name__ == '__main__':
    ppt = PowerPoint(pptx, 'video', 'temp, 'wmv','mp4','avi')
#or
    #ppt = PowerPoint(pptx, 'video')
#or
    #ppt = PowerPoint(pptx, 'image', 'temp, 'svg','png','jpg')
#or
    #ppt = PowerPoint(pptx, 'image')
#extract all media audio,video and image
    ppt.extractAllMedia() 
    ppt.extract()
```

### Install Requires

```shell script
pip install python-pptx
```

```python
              .:.               
             .::::.             
..         ..::::::''::         
::::..  .::''''':::    ''.      
':::::::'         '.  ..  '.    
 ::::::'            : '::   :   
  :::::     .        : ':'   :  
  :::::    :::       :.     .'. 
 .::::::    ':'     .' '.:::: : 
 ::::::::.         .    ::::: : 
:::::    '':.... ''      '''' : 
':::: .:'              ...'' :  
 ..::.   '.........:::::'   :   
  '':::.   '::'':'':::'   .'    
        '..  ''.....'  ..'      
           ''........''

```
beautifulsoup4-helpers 0.0.1
Frequently used functions for html parsing with beautifulsoup4 https://pypi.org/project/beautifulsoup4/
License: MIT
Requires Python: >=3.7.0
Keywords: python3 beautifulsoup4_helpers parser html

# beautifulsoup4-helpers

Frequently used functions for html parsing with [beautifulsoup4](https://pypi.org/project/beautifulsoup4/)

[![PyPI version](https://badge.fury.io/py/beautifulsoup4_helpers.svg)](https://badge.fury.io/py/beautifulsoup4_helpers)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://github.com/eugen1j/aioscrapy/blob/master/LICENSE)
[![Build Status](https://travis-ci.org/eugen1j/beautifulsoup4-helpers.svg?branch=master)](https://travis-ci.org/eugen1j/beautifulsoup4-helpers)
[![codecov](https://codecov.io/gh/eugen1j/beautifulsoup4-helpers/branch/master/graph/badge.svg?token=hRKoGsa5QI)](https://codecov.io/gh/eugen1j/beautifulsoup4-helpers)


## Installing

    pip install beautifulsoup4_helpers

## Examples

See more examples in [tests.py](https://github.com/eugen1j/beautifulsoup4-helpers/blob/master/tests.py)
motion-photo-splitter 1.1.0
CLI for splitting motion photo files into separate picture and vide file.
License: MIT
Requires Python: >=3.5

# Motion photo splitter

Take list of filenames containing joined photo and video and split them in two separate files.

Usefull eg for [samsung motion photo files](https://www.samsung.com/global/galaxy/what-is/motion-photo/)

## Install

The package is ready on PYPI, python3.5+ needed.

```bash
pip3 install motion-photo-splitter
```

## Usage

```bash
Usage: motion_photo_splitter [OPTIONS] [FILENAMES]...

  Take list of filenames containing joined photo and video and split them in
  two separate files.

  Works for samsung motion photos by default - they contain
  "MotionPhoto_data" edge marker - but any other marker text can be passed.

  NOTE: how the output file names are constructed:

  `{path_prefix}{fname_orig}{pic_suffix}` - for picture files
  `{path_prefix}{fname_orig}{vid_suffix}` - for video files

  WARNING: If you set empty string as the file suffix, the original file
  gets overwritten! WARNING: If using the `path-prefix`, you should create
  the folders yourself.

Options:
  -q, --quiet         supress all output
  -m, --marker TEXT   The utf-8 encoded edge marker text. Default is for
                      samsung motion photos  [default: MotionPhoto_Data]

  --pic-suffix TEXT   Suffix of the splitted picture file.  [default: .jpg]
  --vid-suffix TEXT   Suffix of the splitted video file.  [default: .mp4]
  --path-prefix TEXT  Prefix of the splitted files path - eg to put them in
                      subfolder `out/`.  [default: ]

  --help              Show this message and exit.
```

## Examples

### One file
```bash
> motion_photo_splitter images/pic.jpg
image/pic.jpg :: exporting image/pic.jpg.jpg [3.69 MB] && image/pic.jpg.mp4 [1.13 MB]
```

### Multiple files with different suffixes
```bash
> motion_photo_splitter --pic-suffix=.jpeg --vid-suffix=.mpeg4 images/pic1.jpg images/pic2.jpg
image/pic1.jpg :: exporting image/pic1.jpg.jpeg [3.69 MB] && image/pic1.jpg.mpeg4 [1.13 MB]
image/pic2.jpg :: exporting image/pic2.jpg.jpeg [3.69 MB] && image/pic2.jpg.mpeg4 [1.13 MB]
```

### Prefix folder
```bash
> mkdir out
> motion_photo_splitter pic.jpg --path-prefix="out/"
pic.jpg :: exporting out/pic.jpg.jpg [3.69 MB] && out/pic.jpg.mp4 [1.13 MB]
```

## Links

Wrote from scratch.

Other projects with the similar goal:
- https://github.com/cliveontoast/GoMoPho
- https://github.com/joemck/ExtractMotionPhotos
- https://forum.xda-developers.com/android/general/tool-to-extract-samsung-motion-photos-t3568899