Packages
Creating Custom Modules for the ARCsoft Library
by Lee Napthine, 9 December 2024
At ARCsoft we have begun building a repository of custom Helpers libraries that will be included in future projects. First on the docket was looking at several giant UI test code blocks in Django. These often span dozens of modules and thousands of lines of code. Quite common throughout was the use of repetitive and non-descriptive JsonResponse
calls. Let’s walk through how we compartmentalized these calls into a more cohesive set of custom JsonResponse
classes and how we added them to our repository of custom methods that we will use here at ARCsoft. Along the way we will document the setup of the Helpers repository and the essential inclusions to a project for the package to be able to be used, imported, and published.