Here's a cheat sheet for the Polars Python package, covering many of its key functions and features:
pip install polars
# Install Polars with all optional dependencies:
pip install 'polars[all]'| [package] | |
| name = "dgc-decode" | |
| version = "0.1.0" | |
| edition = "2021" | |
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
| [dependencies] | |
| base45 = "3.0.0" | |
| ciborium = "0.2.0" |
| def paginate(method, **kwargs): | |
| client = method.__self__ | |
| paginator = client.get_paginator(method.__name__) | |
| for page in paginator.paginate(**kwargs).result_key_iters(): | |
| for result in page: | |
| yield result | |
| # usage: | |
| import boto3 |
| from boto3.session import Session | |
| from botocore.auth import SigV4Auth | |
| from botocore.awsrequest import AWSRequest | |
| from botocore.credentials import Credentials | |
| from http.client import HTTPConnection, HTTPSConnection | |
| import json | |
| import os | |
| from urllib.parse import urlparse | |
| def sigv4_request( |
| AWSTemplateFormatVersion: '2010-09-09' | |
| Transform: AWS::Serverless-2016-10-31 | |
| Description: EventBridge Rule Test | |
| Resources: | |
| CFNLogGroup: | |
| Type: AWS::Logs::LogGroup | |
| Properties: | |
| RetentionInDays: 3 | |
| LogGroupName: '/aws/events/eventbridgeLog' |
| --- | |
| Resources: | |
| Api: | |
| Type: 'AWS::ApiGatewayV2::Api' | |
| Properties: | |
| Name: !Ref 'AWS::StackName' | |
| ProtocolType: WEBSOCKET | |
| RouteSelectionExpression: '\$default' | |
| DefaultRoute: | |
| Type: 'AWS::ApiGatewayV2::Route' |
| AbortDocumentVersionUpload | |
| AbortEnvironmentUpdate | |
| AbortMultipartUpload | |
| AbortVaultLock | |
| AcceptAccountMapping | |
| AcceptCertificateTransfer | |
| AcceptDelegate | |
| AcceptDirectConnectGatewayAssociationProposal | |
| AcceptFxPaymentCurrencyTermsAndConditions | |
| AcceptHandshake |
| Resources: | |
| WorkshopKinesisStream: | |
| Type: "AWS::Kinesis::Stream" | |
| Properties: | |
| ShardCount: 1 | |
| IdentityPool: | |
| Type: "AWS::Cognito::IdentityPool" | |
| Properties: | |
| IdentityPoolName: WorkshopIdentityPool |
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
Quimby is Walmart's service layer for mobile clients' configuration, CMS, a-b testing setup, and a few other sundry related services. It stitches together a constellation of data sources into a concise menu of API calls that mobile clients make to intialize and configure themselves.
Quimby is a REST service layer based upon the Gogo micro-service framework that we in turn built with Node.js, Hapi, Zookeeper, and Redis. Gogo is able to expose an array of web servers as a single host, and offers the ability to isolate tasks into smaller focused processes, emphasizing scalability and failure recovery. For example, a failure in any micro-service will not affect the life cycle of a request. Gogo also offers the additional features required to build distributed services with shared state, such as leader election.