semvec/pypi-packages huggingface dataset:
async-moip 0.0.4
Moip API wrapper for asyncio/aiohttp

## async_moip
asyncio/aiohttp (Python3.5+) Moip API wrapper based on [moip](https://pypi.org/project/moip/) providing asyncronous requests.

## Usage

```python
import async_moip
import aiohttp
import asyncio

async def main():
    moip = async_moip.Moip(environment='<production or sandbox', key='<key>', token='<token>')
    order = await moip.get_order('ORD-W121212121')
    print(order)

loop = asyncio.get_event_loop()
loop.run_until_complete(main())
```
## Functions 

```python
post_customer(params) # create new customer 
get_customer(parameters) # get customer data
post_creditcard(customer_id, parameters) # add new credit card to customer account
delete_creditcard(creditcard_id) # delete credit card
post_order(parameters) # create a new order
get_order(order_id) # get order by id
post_payment(order_id, parameters) # create a payment
get_payment(payment_id) # get payment data by id
capture_payment(payment_id) # capture of a preauthorized payment
void_payment(payment_id) # cancel the capture of a preauthorized payment
account_exists(account_id) # check if account exists
```
### params examples [here](https://dev.moip.com.br/page/api-reference)
SwitchCaseDev 0.1
Python implementation of Switch-Case

``SwitchCaseDev``
==============

``SwitchCaseDev`` is a command in python command which is similar to switch-case in java and python.
It is also a implementation of a simple Switch-Case in Python.

Basic Usage:
===============

``switch()``:
Basic Syntax:
.. code :: python
switch(case_list,default_value)

    where,
        case_list -> a dictionary item , it contains the dictionary of all the case in which switch will be applied
        default_value -> it is the default value which will excute if any of the given case is not applied.

``case()``:
Basic Syntax:
.. code :: python
case(value)

    where,
        value -> the case the need to be applied.


Example :
.. code-block::python
import Switch_Case
exg=Switch_Case.switch(case_list={"a":2,"b":4},default_value=0)
print(exg.case("a"))

Output:
2

Note: All name I tried are unavailable so I switch the name to SwitchCaseDev.