I want to create a system that works similar to stripe. There’ll be live API keys, as well as test API keys. I have been thinking of how to implement this architecture, and I am not sure the best way to go about it. I found a similar question on this but it didn’t help ..
I have a scenario where I have to analyze logs in an S3 bucket in a Cross account and send logs if any suspicious activity found. I can access the S3 bucket and can put cross-account lambda which will trigger if any log comes into the bucket. but how I can send the logs which ..
suppose that i have a module like below class B: def … def … class A: b: B def … def … I use class B only as member variable of class A when i try to abstract this module for my buisness logic, what should i do? one big interface, which has abstract method ..
I have two dataclasses in a file as below: @dataclass class FileData(): name: str steps: StepData @dataclass class StepData(): time_step: int number_of_atoms: int box_data: pd.DataFrame atom_data: pd.DataFrame As the top dataclass references the bottom data class in its type declarations I get this error when running the code: NameError: name ‘StepData’ is not defined This ..
I recently posted a question: How to dynamically create and close infinitely running Celery tasks using Django Channels . But Django channels seems to be a fairly niche area of development so I’d like to open up the question as a question about general architecture patterns. I would ultimately like users of my application to ..
I was wondering about the huge number of programming languages that exist today. But I don’t understand the reason for these many languages. Why can’t we use C++/Java for web development instead of JS (for front end ) and why is C++ so fast. Moreover, why did people create Java when C++ was already there. ..
i like to write useful cli scripts for my colleagues at work and we have always the same problem with different operating systems. I found following question but in contrast to those solutions with higher frameworks like BeeWare I am seeking for very low level scripts which run on the cli and are very readable ..
I’m developing a Python app based on Neo4j, and I’m facing a challenge to write unit-tests in isolation from the Neo4j database, so I can run my unit-tests without depending on starting a full-blown database. The Neo4j Java SDK includes an "In-Memory / Impermanent database" Unfortunately, the Python driver doesn’t have that. Ideas Mocks I ..
I have a bunch of different Python objects. Each object contains the location for a cartesian point in space (X, Y, Z). I didnt create these objects and dont control their definition – so I just get a reference to them. For instance I might have vertex, point and Point3D all of which contain the ..
I’m creating a module which successively deletes points from a numpy array by dividing the point space using planes. The task is sufficiently complicated that I feel it would be easier to define the order and style of deletion using a new class, however I’m not sure if architecturally it’s the best decision to include ..