Tag: python
-
Using pytest fixtures in parametrized tests
Currently i'm working on a project that is supposed to consume all AWS Cloudwatch logs and send them to Datadog. But before sending them to Datadog i need to make series of manipulations with this logs(formatting, sensitive information obfuscating and other nice things). Since Datadog already has serverless forwarder…
-
How to list all lambda subscription filters to every Cloudwatch log group that you have
Recently i was working on a project that was listening to all our projects cloduwatch log groups and was forwarding them to Datadog. This adapter was doing some data enrichments of the log records and was also doing some obfuscation of sensitive data. At some point i wanted to find…
-
How to fix "PackageNotFoundError: importlib_metadata" error in Serverless AWS Lambda
I was building recently a serverless python microservice and for one of the endpoints i needed to implement jsonschema validation. Locally i have built it, covered with unit tests and everything was working just fine. But when i tried to deploy it to AWS Lambda with serverless framework, i ended…
-
Handy converting of data in CSV into JSON
Currently i'm working on my fabricator.js library , which is basically a javascript analog of my already existing scala fabricator library. The reason i'm doing this is that i would like to use my fake data generator in node cli tool and also i would like to make a Chrome…
-
Easy way of getting all fields available in your JIRA instance
Recently i needed to get a full list of all fields that we have in jira just to build a map between screens and fields we want to have in each screen on every transition. I'm lazy and therefore , i decided to just write a small python script to achieve…