architecture

Best way to build application triggering reminder at certain time

Best way to build application triggering reminder at certain time Question: I want to build a python app sending reminder at certain time. It would have several subscribers. Each subscriber sets specific moment when they want to be notified. For example, John wants to have a reminder every days whereas Cassandra wants it every months. …

Total answers: 1

How to distinguish autostart of a program from opening it directly?

How to distinguish autostart of a program from opening it directly? Question: My task is to launch the desktop cleaning program along with windows, but the interface (program settings) should only be launched when the program is opened directly (for example, through a shortcut). I made a similar program device: But it has two entry …

Total answers: 1

How to write in python a parser for a character-based protocol

How to write in python a parser for a character-based protocol Question: I’m implementing a client for an already existing (old) standard for exchanging information between shops and providers of some specific sector, let’s say vegetables. It must be in python, and I want my package to read a plaintext file and build some objects …

Total answers: 1

Notifications with clean architecture

Notifications with clean architecture Question: There is a case for creating a client. Controller -> CreateClientRequest -> CreateClientUseCase -> ClientEntity [assigned: UserEntity] The client is assigned a responsible person assigned. After creation, i need to notify the client about the assigned user, and the user about the incoming client. In this case, the user has …

Total answers: 1

Is there any library like arch unit for Django?

Is there any library like arch unit for Django? Question: I’ve been searching for a library or tool to test my Django project architecture, check the dependencies, layers, etc. like Arch Unit for Java. But until now, I didn’t find anything. I don’t even know if it’s viable doing these kinds of tests in Python/Django …

Total answers: 3

Visualizing your code's architecture

Visualizing your code's architecture Question: Each weekend I’m coding on a personal project which over time has reached a certain complexity by now, where I have sequences of different functions that take my input, that I save in some class objects, chop it up, process it and then finally output it. Since I make large …

Total answers: 3

Python – instance attribute defined outside __init__()

Python – instance attribute defined outside __init__() Question: I get the warning in question for the following code: from tkinter import * from tkinter import ttk class Autocomplete(Frame, object): def __init__(self, *args, **kwargs): super(Autocomplete, self).__init__(*args, **kwargs) self.list = [] def build(self, width, height, entries): # I get the warning for the following 8 lines: self._entries …

Total answers: 2

django npm and node packages architecture

django npm and node packages architecture Question: On the project I am joining this is the architecture for the node_packages: |- Django project |– app1 |– app2 |– node_modules |— foundation-sites |— grunt |– static |— css |— images |— js |–urls.py |–settings.py |–package.json I personally think node_packages should be in the static under the …

Total answers: 3