Saravanan666/pypi-org huggingface dataset:
Package: purplship
purplship is a multi-carrier shipping SDK.The key features are:Unified API: A standardized set of models representing the common shipping data (Address,Parcel,Shipment...)Intuitive API: A library that abstracts and unifies the typical shipping API services (Rating,Shipping,Tracking...)Multi-carrier: Integrate purplship once and connect to multiple shipping carrier APIsCustom carrier: A framework to integrate a shipping carrier services within hours instead of monthsRequirementsPython 3.7+Installation# install purplship corepipinstallpurplship# eg: install the purplship canadapost extentionpipinstallpurplship.canadapostAdditional carrier extensionspurplship.aramexpurplship.australiapostpurplship.canadapostpurplship.canparpurplship.dhl-expresspurplship.dhl-universalpurplship.dicompurplship.fedexpurplship.purolatorpurplship.royalmailpurplship.sendlepurplship.sf-expresspurplship.tntpurplship.upspurplship.uspspurplship.usps-internationalpurplship.yanwenpurplship.yunexpressUsageRates FetchingFetch shipping ratesimportpurplshipfrompurplship.core.modelsimportAddress,Parcel,RateRequestfrompurplship.mappers.canadapost.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["canadapost"].create(Settings(username="6e93d53968881714",password="0bfa9fcb9853d1f51ee57a",customer_number="2004381",contract_id="42708517",test=True))# Fetching shipment rates# Provide the shipper's addressshipper=Address(postal_code="V6M2V9",city="Vancouver",country_code="CA",state_code="BC",address_line1="5840 Oak St")# Provide the recipient's addressrecipient=Address(postal_code="E1C4Z8",city="Moncton",country_code="CA",state_code="NB",residential=False,address_line1="125 Church St")# Specify your package dimensions and weightparcel=Parcel(height=3.0,length=6.0,width=3.0,weight=0.5,weight_unit='KG',dimension_unit='CM')# Prepare a rate requestrate_request=RateRequest(shipper=shipper,recipient=recipient,parcels=[parcel],services=["canadapost_xpresspost"],)# Send a rate request using a carrier gatewayresponse=purplship.Rating.fetch(rate_request).from_(canadapost)# Parse the returned responserates,messages=response.parse()print(rates)# [#     RateDetails(#         carrier_name="canadapost",#         carrier_id="canadapost",#         currency="CAD",#         transit_days=2,#         service="canadapost_xpresspost",#         discount=1.38,#         base_charge=12.26,#         total_charge=13.64,#         duties_and_taxes=0.0,#         extra_charges=[#             ChargeDetails(name="Automation discount", amount=-0.37, currency="CAD"),#             ChargeDetails(name="Fuel surcharge", amount=1.75, currency="CAD"),#         ],#         meta=None,#         id=None,#     )# ]ResourcesDocumentationCommunity DiscussionsIssue TrackerBlogJoin us on Discord
Package: purplship.aramex
purplship.aramexThis package is a Aramex extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.aramexUsageimportpurplshipfrompurplship.mappers.aramex.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["aramex"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.asendia-us
purplship.asendia_usThis package is a Asendia US extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.asendia_usUsageimportpurplshipfrompurplship.mappers.asendia_us.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["asendia_us"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.australiapost
purplship.carrier_nameThis package is a Australia Post extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.australiapostUsageimportpurplshipfrompurplship.mappers.australiapost.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["australiapost"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.boxknight
purplship.boxknightThis package is a BoxKnight extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.boxknightUsageimportpurplshipfrompurplship.mappers.boxknight.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["boxknight"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.canadapost
purplship.canadapostThis package is a Canada Post extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.canadapostUsageimportpurplshipfrompurplship.mappers.canadapost.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["canadapost"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.canpar
purplship.canparThis package is a Canpar extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.canparUsageimportpurplshipfrompurplship.mappers.canpar.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["canpar"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.dhl-express
purplship.dhl_expressThis package is a DHL Express extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.dhl_expressUsageimportpurplshipfrompurplship.mappers.dhl_express.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["dhl_express"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship-dhl-poland
purplship.dhl_polandThis package is a DHL Parcel Poland extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.dhl_polandUsageimportpurplshipfrompurplship.mappers.dhl_poland.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["dhl_poland"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.dhl-universal
purplship.dhl_universalThis package is a DHL Universal Tracking extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.dhl_universalUsageimportpurplshipfrompurplship.mappers.dhl_universal.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["dhl_universal"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.dicom
purplship.dicomThis package is a Dicom extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.dicomUsageimportpurplshipfrompurplship.mappers.dicom.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["dicom"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.eshipper
purplship.eshipperThis package is a eShipper extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.eshipperUsageimportpurplshipfrompurplship.mappers.eshipper.settingsimportSettings# Initialize a carrier gatewayeshipper=purplship.gateway["eshipper"].create(Settings(...))Check thepurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.fedex
purplship.fedexThis package is a FedEx extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.fedexUsageimportpurplshipfrompurplship.mappers.fedex.settingsimportSettings# Initialize a carrier gatewayfedex=purplship.gateway["fedex"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.fedex-express
purplship.fedex_expressThis package is a FedEx Express extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.6+Installationpipinstallpurplship.fedex_expressUsageimportpurplshipfrompurplship.mappers.fedex_express.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["fedex_express"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.freightcom
purplship.freightcomThis package is a freightcom extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.freightcomUsageimportpurplshipfrompurplship.mappers.freightcom.settingsimportSettings# Initialize a carrier gatewayfreightcom=purplship.gateway["freightcom"].create(Settings(...))Check thepurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.ics-courier
purplship.ics_courierThis package is a ICS Courier extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.ics_courierUsageimportpurplshipfrompurplship.mappers.ics_courier.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["ics_courier"].create(Settings(...))Check thepurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.purolator
purplship.purolatorThis package is a Purolator extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.purolatorUsageimportpurplshipfrompurplship.mappers.purolator.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["purolator"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.purolator-courier
purplship.purolator_courierThis package is a Purolator Courier extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.purolator_courierUsageimportpurplshipfrompurplship.mappers.purolator_courier.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["purolator_courier"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship-python
purplship-pythonPurplship is a Multi-carrier Shipping API that simplifies the integration of logistic carrier services.Visitpurplship.comto deploy your private cloud multi-carrier shipping API instance.DocumentationSee the fullPython API docs.RequirementsPython >= 3.6Installation & Usagepip installpipinstallpurplship-pythonThen import the package:importpurplshipUsagePlease follow theinstallation procedureand then run the following:from__future__importprint_functionimportpurplshipfrompurplship.restimportApiExceptionfrompprintimportpprint# Configure API key authorization: Tokenpurplship.api_key='YOUR_API_KEY'purplship.host='https://instance.purplship.api'try:api_response=purplship.carriers.list()pprint(api_response)exceptApiExceptionase:print("Exception when calling purplship.Carriers->list:%s\n"%e)Documentation For ModelsAddressAddressDataAddressListAddressValidationCarrierListCarrierSettingsChargeCommodityCommodityDataCustomsCustomsDataCustomsListDutyErrorResponseMessageMetadataOperationOperationConfirmationOperationResponseParcelParcelDataParcelListPaymentPickupPickupCancelDataPickupCancelRequestPickupDataPickupListPickupRequestPickupResponsePickupUpdateDataPickupUpdateRequestRateRateRequestRateResponseReferencesShipmentShipmentCancelRequestShipmentDataShipmentListShipmentPurchaseDataShipmentRateDataShippingRequestTokenObtainPairTokenPairTokenRefreshTokenVerifyTrackerListTrackingEventTrackingResponseTrackingStatusWebhookWebhookDataWebhookListWebhookTestRequestAuthorPurplship Team |hello@purplship.com|purplship.com
Package: purplship.royalmail
purplship.royalmailThis package is a Royal Mail extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.royalmailUsageimportpurplshipfrompurplship.mappers.royalmail.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["royalmail"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.sendle
purplship.sendleThis package is a Sendle extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.sendleUsageimportpurplshipfrompurplship.mappers.sendle.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["sendle"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.sf-express
purplship.sf_expressThis package is a SF-Express extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.sf_expressUsageimportpurplshipfrompurplship.mappers.sf_express.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["sf_express"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.tnt
purplship.tntThis package is a TNT extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.tntUsageimportpurplshipfrompurplship.mappers.tnt.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["tnt"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.ups
purplship.upsThis package is a UPS extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.upsUsageimportpurplshipfrompurplship.mappers.ups.settingsimportSettings# Initialize a carrier gatewayups=purplship.gateway["ups"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.ups-ground
purplship.upsThis package is a UPS extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.ups_groundUsageimportpurplshipfrompurplship.mappers.ups_ground.settingsimportSettings# Initialize a carrier gatewayups=purplship.gateway["ups_ground"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.ups-package
purplship.ups_packageThis package is a UPS Package extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.6+Installationpipinstallpurplship.ups_packageUsageimportpurplshipfrompurplship.mappers.ups_package.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["ups_package"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.usps
purplship.uspsThis package is a USPS extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.uspsUsageimportpurplshipfrompurplship.mappers.usps.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["usps"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.usps-international
purplship.usps_internationalThis package is a USPS International extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.usps_internationalUsageimportpurplshipfrompurplship.mappers.usps_international.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["usps"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.yanwen
purplship.yanwenThis package is a Yanwen extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.yanwenUsageimportpurplshipfrompurplship.mappers.yanwen.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["yanwen"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purplship.yunexpress
purplship.yunexpressThis package is a Yunexpress extension of thepurplshipmulti carrier shipping SDK.RequirementsPython 3.7+Installationpipinstallpurplship.yunexpressUsageimportpurplshipfrompurplship.mappers.yunexpress.settingsimportSettings# Initialize a carrier gatewaycanadapost=purplship.gateway["yunexpress"].create(Settings(...))Check thePurplship Mutli-carrier SDK docsfor Shipping API requests
Package: purrito
PurritoPurrito is an open source ETL tool which transfers collections from MongoDB to PostgreSQL.Featuresquick setupgenerate schema based on existing MongoDB collections or use a custom schemakeep syncing with MongoDB real-timeupdate the schema while syncing without stopping anythinghandle connectivity issuesview collection transfer statisticsSupportMongoDB 3.4PostgreSQL 9.6InstallationCheck out anexampleor set things up on your own:install Purrito by typingpip install purritostart MongoDB as a replica setcreate a source database in MongoDB and add a collection with a couple of documentscreate a destination database in Postgresgenerate the schema (collections.yml):purrito -m -mdb mongodb://localhost:27017 -n source_dbstart Purrito:purrito -cf collections.yml -pg postgres://localhost:5432/destination_db -mdb mongodb://localhost:27017 -n source_db -tDocumentationFor more details about Purrito check out ourDocumentation.ContributeWant to help us and the community with perfecting Purrito? Take a look at our contributionGuidelinesand submit a PR.
Package: purrsong
purrsongInstallationpip install purrsongStartimportpurrsongaspsps.__version__>>>0.1.6Create Anaconda Environment(Optional)conda create -n purrsong python=3.6conda activate purrsongRequirmentstensorflowopencv-pythontqdmrequestspandasmatplotlibAuto-download-extract-load of datasets, modelsetsBelow function automatically download data or models and save locally
If data is already exists, returns data directory or model filepathimportpurrsongaspsmodel_list=ps.list_models()# or ps.list_models(fresh=True)print(model_list)ps.load_model('bbs')# or ps.load_model('bbs', fresh=True)dataset_list=ps.list_datasets()# or ps.list_datasets(fresh=True)print(dataset_list)ps.load_dataset('cat')# or ps.load_dataset('cat', fresh=True)Manipulating cats datasetYou can play with auto downloadedcatsdataset by below example.
Try changingfactorarg, which will return different size of bounding boxes.load cats datasetimportpurrsongaspsimportmatplotlib.pyplotaspltcats=ps.load_cats()showing cat imageimg=cats[0]['image']plt.imshow(img)plt.show()showing cat image with landmarkimg=cats[0]['image']lmk=cats[0]['landmark']x,y=lmk.Tplt.imshow(img)plt.scatter(x,y)plt.show()showing cat face imageimg=cats.face_img(44)# or img = cats.face_img(idx=44, factor=1.7)plt.imshow(img)plt.show()showing cat left eye imageimg=cats.left_eye_img(44)# or img = cats.face_img(idx=44, factor=1.7)plt.imshow(img)plt.show()available data featuresimportpurrsongaspscats=ps.load_cats()cat=cats(0)# or cats(idx=0, factor=1.7)cat['image']# cats.image(0)cat['landmark']# cats.landmark(0)cat['face']# cats.face(0, factor=1.7)cat['face_bb']# cats.face_bb(0, factor=1.7)cat['face_img']# cats.face_img(0, factor=1.7)cat['face_lmk']# cats.face_lmk(0, factor=1.7)cat['eye']# cats.eye(0, factor=1.7)cat['left_eye_bb']# cats.left_eye_bb(0, factor=1.7)cat['left_eye_img']# cats.left_eye_img(0, factor=1.7)cat['right_eye_bb']# cats.right_eye_bb(0, factor=1.7)cat['right_eye_img']# cats.right_eye_img(0, factor=1.7)cat['nose']# cats.nose(0, factor=1.7)cat['nose_bb']# cats.nose_bb(0, factor=1.7)cat['nose_img']# cats.nose_img(0, factor=1.7)cat['ear']# cats.ear(0, factor=1.7)cat['left_ear_bb']# cats.left_ear_bb(0, factor=1.7)cat['left_ear_img']# cats.left_ear_img(0, factor=1.7)cat['right_ear_bb']# cats.right_ear_bb(0, factor=1.7)cat['right_ear_img']# cats.right_ear_img(0, factor=1.7)left dict form is much more intuitive and good
when you have to handle many of features at the same time.right method way is good when you access specific feature.
Package: pursuitlib-django
Pursuit Library - DjangoThis package provides utility functions and classes for Django (and Select2).It also contains static files for:Jquery3.6.0Select24.1.0-rc.0Bootstrap5.1.3 (JS only, a customized CSS must be provided)FontAwesome5.15.4ConfigurationThe following values should be added to the Django configuration:frompursuitlib.utilsimportget_envVERSION="PROJECT_VERSION"DEV_STAGE="PROJECT_DEV_STAGE"DISPLAY_VERSION=VERSIONifDEV_STAGEisNoneelseVERSION+" "+DEV_STAGEDOMAIN=get_env('PROJECTNAME_DOMAIN')USE_HTTPS=get_env('PROJECTNAME_USE_HTTPS').lower()=='true'BASE_URL=("https://"ifUSE_HTTPSelse"http://")+DOMAINError handlingTo enable error handling, add he following lines to your mainurls.pyfile:# Error handlinghandler400="pursuitlib_django.errors.error_400"handler403="pursuitlib_django.errors.error_403"handler404="pursuitlib_django.errors.error_404"
Package: pursuitlib-sso
Pursuit Library - SSOThis package provides SSO functions for Django.ConfigurationCreate aSSO_CONFIGobject in yoursettings.py:SSO_CONFIG = {
    "saml2": {
        "entityid": "saml_entity_id",
        "organization": {
            "name": "organization_name",
            "verbose_name": "Organization Name"
        },
        "contacts": [
            {
                "name": "Contact 1",
                "email": "contact1@mydomain.com"
            }
        ],
        "idp": [
            {
                "id": "idp_id",
                "entity": "idp_entity_id",
                "metadata": "https://url/to/idp/metadata.xml",
                "debug_identity": {
                    "email": "user@example.com",
                    "first_name": "John",
                    "last_name": "Doe"
                }
            }
        ]
    },
    "default_redirect": "home:index",
    "get_or_create_user": get_or_create_user
}Theget_or_create_userfinds an existing user or create a new one based on the IDP's response:defget_or_create_user(idp:str,user_data)->User:get_user_from_db(user_data)DebuggingWhen debugging on a local machine, you can defineSSO_DEBUG = Truein yoursettings.pyto bypass the remote IDP, and instead use thedebug_identityobject.
Package: pursuit-newproject
New Project templaterThis tool can be used to create a new project based on a project template, with the following syntax:newproject <template path / Git URL> <project name> [output]When the output isn't specified, the project name is used instead.InstallingThis tool can be installed with the following command:pip install pursuit-newprojectProject manifestThe template must contain aproject.ymltemplate with the following sections:template_name: The name of the project templatetemplate_files: A list of files that will be treated asJinja2templates. These files can reference the project name using the{{ project_name }}syntax.template_paths: A list of files or directories that need to be moved to Jinja2-compatible paths---template_name:Template nametemplate_files:-"templated_file"template_paths:"templated_dir":"{{project_name}}"LicenseThis project is licensed under theGNU GPLv3 license.
Package: purus
puruspurusparses parameters provided from Lambda@Edge on CloudFront, and it manipulates request and response.
It is named after The Purus River, or a tributary of The Amazon River.Install$pipinstallpurusUsageCloudFront:Lambda@Edgepuruscan parse parameters ofviewer-requestorigin-requestorigin-responseviewer-response# Lambda@Edgefrompurus.amazon_cloudfrontimportCloudFrontLambdaEdge# on viewer-request or origin-requestdeflambda_handler(event:dict,_):# load datalambda_edge=CloudFrontLambdaEdge.from_event(event=event)# return on errorifsome_error_occurred:pseudo_payload=lambda_edge.add_pseudo_response(status="400",status_description="error_occurred")returnpseudo_payload.response.format()# redirectifredirect_condition:pseudo_payload=lambda_edge.add_pseudo_redirect_response(status="307",status_description="Redirect",location_url="https://redirect.example.com")returnpseudo_payload.response.format()# add headers to requestmodified_request=lambda_edge.append_request_header(key="X-Original-Header",value="Your data").append_request_header(key="X-Original-Header",value="Your additional data")# to requestreturnmodified_request.request.format()