All Projects → dinsaw → kines

dinsaw / kines

Licence: MIT license
Friendly CLI for Amazon Kinesis Data Streams

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to kines

amazon-kinesis-client-go
Amazon Kinesis Client for Go
Stars: ✭ 15 (-67.39%)
Mutual labels:  kinesis, kinesis-stream, aws-kinesis
pg2k4j
Postgresql To Kinesis For Java
Stars: ✭ 69 (+50%)
Mutual labels:  kinesis, kinesis-stream
aws-kinesis-consumer
Consume an AWS Kinesis Data Stream to look over the records from a terminal.
Stars: ✭ 23 (-50%)
Mutual labels:  kinesis, kinesis-stream
CloudWatch2S3
Logging infrastructure for exporting all CloudWatch logs from multiple accounts to a single S3 bucket
Stars: ✭ 31 (-32.61%)
Mutual labels:  kinesis
gokini
A pure Golang port of the Kinesis Consumer Library
Stars: ✭ 55 (+19.57%)
Mutual labels:  kinesis
database-journal
Databases: Concepts, commands, codes, interview questions and more...
Stars: ✭ 50 (+8.7%)
Mutual labels:  kinesis
amazon-kinesis-timestream-grafana
Sample serverless application that reads events from Amazon Kinesis Data Streams and batches records to Amazon Timestream via Apache Flink app, visualizing results via Grafana.
Stars: ✭ 16 (-65.22%)
Mutual labels:  amazon-kinesis
twitter
A serverless social network that's under development with some cool stuff, such as Serverless Framework, AppSync, GraphQL, Lambda, DynamoDB, Cognito, Kinesis Firehose, and Algolia ☁️
Stars: ✭ 29 (-36.96%)
Mutual labels:  kinesis-stream
Hello-AWS-Data-Services
Sample code for AWS data service and ML courses on LinkedIn Learning
Stars: ✭ 144 (+213.04%)
Mutual labels:  kinesis
pg-bifrost
PostgreSQL Logical Replication tool into Kinesis, S3 and RabbitMQ
Stars: ✭ 31 (-32.61%)
Mutual labels:  kinesis
frizzle
The magic message bus
Stars: ✭ 14 (-69.57%)
Mutual labels:  kinesis
Trackie
A Chrome extension to enhance debugging of some frequently-used tag management platforms (Google Tag Manager, Tealium, Commanders Act, DTM) in combination with some frequently-used tags (Google Analytics, Google Analytics 4, GA Audiences, Ddm, Criteo, Adobe Analytics/Omniture, Floodlight, Comscore, Facebook, Bluekai, Youbora, Kinesis, Webtrekk, …
Stars: ✭ 23 (-50%)
Mutual labels:  kinesis
Streamalert
StreamAlert is a serverless, realtime data analysis framework which empowers you to ingest, analyze, and alert on data from any environment, using datasources and alerting logic you define.
Stars: ✭ 2,634 (+5626.09%)
Mutual labels:  kinesis
kinetic
High-Performance AWS Kinesis Client for Go
Stars: ✭ 20 (-56.52%)
Mutual labels:  kinesis
docker-Kinesis-local
Docker build for AWS Kinesis local
Stars: ✭ 43 (-6.52%)
Mutual labels:  amazon-kinesis
amazon-kinesis-archiver
An AWS Lambda module and node.js library to facilitate Amazon Kinesis archival and replay
Stars: ✭ 29 (-36.96%)
Mutual labels:  kinesis
data-migrator
A declarative data-migration package
Stars: ✭ 15 (-67.39%)
Mutual labels:  kinesis
terraform-aws-lambda
A Terraform module to create AWS Lambda ressources.
Stars: ✭ 40 (-13.04%)
Mutual labels:  kinesis
artillery-engine-kinesis
Experimental AWS Kinesis support for Artillery 🕳
Stars: ✭ 12 (-73.91%)
Mutual labels:  kinesis
Awesome Aws
A curated list of awesome Amazon Web Services (AWS) libraries, open source repos, guides, blogs, and other resources. Featuring the Fiery Meter of AWSome.
Stars: ✭ 9,895 (+21410.87%)
Mutual labels:  kinesis

Kines

PyPI version PyPI downloads Build Status codecov

Friendly Command Line Interface for Amazon Kinesis Data Streams

Kines Demo

Install

  • pip install kines

Setup

  • aws configure

Commands

List all Kinesis Stream
  • kines ls

This command lists streams with their open shard count, enhanced consumers count, retention period and encryption type. Internally this command calls list-streams and describe_stream_summary methods of Boto3 Kinesis client.

Kines ls

List Kinesis Stream Shards
  • kines lss <stream-name>

This command will show you open as well as closed shards of a Kinesis stream.

  • For detailed output Run kines lss <stream-name> -d

Kines lss

Find shard for partition key
  • kines find prod-clickstream -p 123455 -p 8900

From Kinesis Docs

A partition key is used to group data by shard within a stream. Kinesis Data Streams segregates the data records belonging to a stream into multiple shards. It uses the partition key that is associated with each data record to determine which shard a given data record belongs to. Partition keys are Unicode strings with a maximum length limit of 256 bytes. An MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. When an application puts data into a stream, it must specify a partition key.

This command comes handy when you want to determine shard for a partition key. This Command can accept multiple partition keys.

Kines find

Walk through kinesis records

  • kines walk <stream-name> <shard-id> -s <sequence-number> -n <number-of-records-per-call>

You can use this command to debug kinesis records. This command internally creates a Shard Iterator. If you don't specify sequence-number then a ShardIterator is created with type TRIM_HORIZON, which allows you to fetch from oldest Kinesis records in shard. When you specify sequence-number a ShardIterator is created with AT_SEQUENCE_NUMBER type, which fetches data from the specified sequence number. The Kinesis record's data is decoded using base64 decoder. You can press ⏎ to fetch more records or type n to abort.

Kines Walk

  • Use -t option to get records from 1 hour 10 minutes ago. Example: kines walk click-stream 000000000000 -t '1h10m'

  • Use -l option to start from latest records. Example: kines walk click-stream 000000000000 -l

  • Use -f option to poll records repeatedly. Example: kines walk click-stream 000000000000 -l -f

Get report for Kinesis Stream

The report command gives you statistics about your Kinesis Stream. Internally, this command calls get_metric_data of Boto3 Cloudwatch client.

Please take a look at legends command for shortforms used in this report.

Kines Report 60 hours 6 hours

View all short forms and legends

  • kines legends

Kines Legends

How to build in Dev?

  • pip install --editable .

How to publish to pypi?

  • python3 setup.py sdist bdist_wheel
  • twine upload --skip-existing dist/*
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].