semvec/pypi-packages huggingface dataset:
basqet-python 1.0
A python library to consume Basqet API
License: MIT
Keywords: Basqet python library


# Basqet Python SDK

The Official Python library for the Basqet API.

## Installation

Install Python

```bash
     pip install basqet-python
```

## Usage/Examples

#### Fetch Available currency

```python
from basqet import BasqetClient

basqet = BasqetClient("pub_test_Y4oKBXgfTU1JbJiHeGFc66rc1FFivg-",
                    "sec_test_eOX9Tp7z-EgK6sw9ijghAWqC9xR_rP0",)

# Fetch all fiat currency
currencies = basqet.fetch_all_currency("FIAT")

```


#### Initialize transaction


```python
from basqet import BasqetClient

basqet = BasqetClient("pub_test_Y4oKBXgfTU1JbJiHeGFc66rc1FFivg-",
                    "sec_test_eOX9Tp7z-EgK6sw9ijghAWqC9xR_rP0",)

payment_data = {
     "customer": {
          "name": "tunde",
          "email": "customer@example.com"
     },
     "amount": "1000",
     "currency": "NGN",
     "meta": {
          "reference": "bghggbbvv"
     }
}

transaction_obj = basqet.initialize_transaction(payment_data);

```


#### Initiate transaction

```python
from basqet import BasqetClient

basqet = BasqetClient("pub_test_Y4oKBXgfTU1JbJiHeGFc66rc1FFivg-",
                    "sec_test_eOX9Tp7z-EgK6sw9ijghAWqC9xR_rP0",)

transaction_obj = basqet.initiate_transaction(<transactionId>, {'currency_id': <currency_id>})

```


#### Verify transaction

```javascript
from basqet import BasqetClient

basqet = BasqetClient("pub_test_Y4oKBXgfTU1JbJiHeGFc66rc1FFivg-",
                    "sec_test_eOX9Tp7z-EgK6sw9ijghAWqC9xR_rP0",)

transaction_obj = basqet.verify_transaction(<transactionId>)

```

#### Mock webhook events

```javascript
from basqet import BasqetClient

basqet = BasqetClient("pub_test_Y4oKBXgfTU1JbJiHeGFc66rc1FFivg-",
                    "sec_test_eOX9Tp7z-EgK6sw9ijghAWqC9xR_rP0",)

transaction_obj = basqet.mock_webhook_event(<transactionId>, { status: 'SUCCESSFUL' })

```

## Documentation/API reference

[Documentation](https://docs.basqet.com/docs)
rowantree.client.api 0.1.0
Rowan Tree Client API
License: MIT
Requires Python: >=3.9

# The Rowan Tree Client API
               Bless all forms of intelligence.

Overview
--------
API for client interface consumption.

Deployment
----------
**Start the service (development only):**
```
uvicorn src.rowantree.client.api.main:app --reload
```

**Production Deployment**

Create the docker container using the build script 'build.sh'.

Launch the container:
```
docker run -p 5000:80 --env API_DATABASE_SERVER='127.0.0.1' --env API_DATABASE_NAME='dev_trt' trt_client_api
```

Consumption
-----------
Default URL for API: `http(s)://{hostname}:5000/`


### Anonymous End-Points


* **Get Service API Version**

For verification of service API version.

```
    [GET] /api/version
```

Result:
`
{
    "version": "String"
}
`

* **Get Service Health**
 
For use in load balanced environments.

```
    [GET] /health/plain
```
Result:
`true` or `false` with a `201` status code.


### Authentication Required End-Points


**Request Header**

The below end-points require several headers to be present on the request.

```
    'Content-type': 'application/json',
    'API-ACCESS-KEY': 'String',
    'API-VERSION': 'String'
```

* API-ACCESS-KEY: 'A unique (secret) guid used for authorization'
* API-VERSION: 'Version of the API to use'


End Points
----------
* /api/version
* /health/plain


* /api/user/state
* /api/user/transport


* /api/user/merchants
* /api/merchant/transform


* /api/user/create
* /api/user/delete
* /api/user/active/set
* /api/user/active/state


* /api/user/active/feature
* /api/user/feature


* /api/user/population
* /api/user/income/set
* /api/user/income


* /api/user/stores