semvec/pypi-packages huggingface dataset:
tarifafedextest 0.5
Test de tarifa fedex. Prueba para Manuable
License: MIT

# Tarifa Fedex Test

Prueba: funcion que consulta Web Service de Fedex para cotizar tarifas.



## Pre-Requisitos.

Python 3.5 o superior



## Instalar dependencias

pip install requests

pip install xmltodict




## Instalar

pip install tarifafedextest==0.5



## Ejemplo uso

### Importamos la clase CotizarTarifa

from tarifafedextest.cotizatarifa import CotizaTarifa

import json



### Creamos el nuevo objeto de la clase CotizarTarifa

ct = CotizaTarifa()



### Creamos objeto json con las credenciales del cliente

credentials = json.dumps({"Key":"bkjIgUhxdghtLw9L","Password":"6p8oOccHmDwuJZCyJs44wQ0Iw","AccountNumber":"510087720","MeterNumber":"119238439","LanguageCode":"es","LocaleCode":"mx"})



### Creamos objeto json con la informacion de paquete a enviar

quote_params = json.dumps({"address_from": {"zip": "64000","country": "MX"},"address_to": {"zip": "64000","country": "MX"},"parcel": {       "length": 25.0,"width": 28.0,"height": 46.0,"distance_unit": "cm","weight": 6.5,"mass_unit": "kg"}})



### Ejecutamos la funcion get, para obtener la cotizacion

ct.get(credentials,quote_params)



### Ejemplo de respuesta

 [

   {

      "price":"14.71",

      "currency":"USD",

      "service_level":{

         "name":"Priority Overnight",

         "token":"PRIORITY_OVERNIGHT"

      }

   },

   {

      "price":"11.34",

      "currency":"USD",

      "service_level":{

         "name":"Fedex Express Saver",

         "token":"FEDEX_EXPRESS_SAVER"

      }

   },

   {

      "price":"12.1",

      "currency":"USD",

      "service_level":{

         "name":"Standard Overnight",

         "token":"STANDARD_OVERNIGHT"

      }

   }

 ]
explode-json-schema 0.1.0
To explode the nested json in key value pair to read the dynamodb columns directly from spark dataframe
License: MIT
Keywords: explode,dynamodb,json,struct

This is a code to breakdown the json and presents the output as a key value pair for using it to retrieve the columns
in an easy manner


It accepts the mandatory argument as a dynamodb json struct which you can copy and paste by going in any one of the tables in DynamoDB and use it.

Change Log
==========

0.0.1 (07/04/2022)
---------------------
- First Release