semvec/pypi-packages huggingface dataset:
piston-cli 1.5.0
A cli tool with an terminal editor to compile over 35 languages instantly using the piston api.
License: MIT
Requires Python: >=3.9,<4.0
Keywords: shell,cli,code-editor,code-execution,compile,piston

# Piston CLI

[![Linting](https://img.shields.io/github/workflow/status/Shivansh-007/piston-cli/Linting?logo=github)](https://github.com/discord-modmail/modmail/actions/workflows/linting.yml "Lint")
[![Python](https://img.shields.io/static/v1?label=Python&message=3.9&color=blue&logo=Python&style=flat)](https://www.python.org/downloads/ "Python 3.8 | 3.9")
[![License](https://img.shields.io/github/license/discord-modmail/modmail?style=flat&label=License)](./LICENSE "License file")
[![Code Style](https://img.shields.io/static/v1?label=Code%20Style&message=black&color=000000&style=flat)](https://github.com/psf/black "The uncompromising python formatter")
______________________________________________________________________

**Documentation**: <a href="https://shivansh-007.github.io/piston-cli/" target="_blank">https://shivansh-007.github.io/piston-cli/</a>

**Source Code**: <a href="https://github.com/Shivansh-007/piston-cli" target="_blank">https://github.com/Shivansh-007/piston-cli</a>

______________________________________________________________________

## License

This project is licensed under the terms of the MIT license.
tripay 0.1.1
Tripay Client For Python (UNOFFICIAL)
License: MIT
Requires Python: >=3.8,<4.0
Keywords: tripay,payment gateway

# tripay

Tripay Client For Python (UNOFFICIAL)

Support:

* Sandbox & Production Mode
* Get Payment Instruction
* Fee Calculator
* Get Payment Channels
* Closed Payment

    * Helper to make order items
    * Automatic signature generation
    * Request payment
    * Detail transaction
    * List transaction

* Open Payment

    * Automatic signature generation
    * Request payment
    * Detail transaction
    * List transaction

* Easy to use

# Usage

Installation:

```
pip install tripay
```

Setup client:

```python
from tripay import TriPay

tripay = TriPay(
    api_key="DEV-xxx",
    merchant_code="xxx",
    merchant_private_key="xxx",
    debug=True # sandbox mode
)
```

Get Payment Instruction:

```python
tripay.get_payment_instruction("BRIVA").json()
```

Fee Calculator:

```python
tripay.fee_calculator(5000).json()
```

Get Payment Channels:

```python
tripay.get_payment_channel().json()
```

Closed Payment:

```python
# access to closed payments
cp = tripay.closed_payment

# creating items
items = []
items.append(
    cp.create_item(
        sku="099999888",
        name="sabun",
        price=2500,
        quantity=10
    )
)

# request payment
resp = cp.request(
    "BRIVA",
    2500 * 10,
    customer_name="Dadang",
    customer_email="someone@test.com",
    customer_phone="0899988234",
    order_items=items
).json()
print(resp)
```

Open Payment:

```python
# notes: for open payments currently does not support sandbox mode
tripay.debug = False

# access to open payments
op = tripay.open_payment

# request payment
resp = op.request("BCAVA").json()
print(resp)
```