Category : architecture

Consider the following (very simplified) project structure: project/ src/ collections/ validators/ foo/ bar/ The "collections" sub-directory name shadows the Python’s "collections" module. The "validators" sub-directory name shadows "validators" 3rd-party package name. Question: Is it an anti-pattern to have sub-directories with the same names as Python modules or 3rd-party packages? Note, the real project structure has ..

Read more

I’m receiving a bunch of data via. osc in my application and the ‘osc-receiver’ part runs in a different process. Assuming the applications consists of: Process A (GUI) Process B (Osc-Receiver) Now, since i need to handle multiple values that are send to different addresses, i’d ideally like to have a datastructure that the retrieved ..

Read more

I’m currently quite undecided on what is actually the best approach to tackle this problem. Assuming the program only consists of: GUI using imgui and glfw OSC Server that listens for incoming messages The gui cannot block and the osc server constantly needs to be able receive new messages. So first of all, would it ..

Read more

I have a scraping module on my application that uses Beautiful Soup and Selenium to get website info with this function: def get_page(user: str) -> Optional[BeautifulSoup]: """Get a Beautiful Soup object that represents the user profile page in some website""" try: browser = webdriver.Chrome(options=options) wait = WebDriverWait(browser, 10) browser.get(‘https://somewebsite.com/’ + user) wait.until(EC.presence_of_element_located((By.TAG_NAME, ‘article’))) except TimeoutException: ..

Read more

I am working on an application that turns client’s geographic polygon files (geojson, shapefile, kml) and do some hard processing (temporal and spatial interpolation) using these data. The hard processing should be done on the application server side and when it is finished, the interpolation results should be available to the user as maps, charts ..

Read more