Spam detection software, running on the system "avery.infomotions.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see eric_morgan_at_infomotions.com for details. Content preview: I break out utility functions and validators into their own files and import them, but I actually kind of like having all the command functions in a single file. https://stackoverflow.com/a/39228156/4074877 has an approach that looks good, though. [...] Content analysis details: (1.5 points, 0.5 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [66.175.211.245 listed in wl.mailspike.net] 1.6 URIBL_SBL Contains an URL's NS IP listed in the SBL blocklist [URIs: stackoverflow.com] 0.1 URIBL_SBL_A Contains URL's A record listed in the SBL blocklist [URIs: stackoverflow.com] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 3.0 SINGLE_HEADER_3K A single header contains 3K-4K characters -0.6 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 T_HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders
attached mail follows:
I break out utility functions and validators into their own files and import them, but I actually kind of like having all the command functions in a single file. https://stackoverflow.com/a/39228156/4074877 has an approach that looks good, though. Ben On 7/29/21, 4:42 PM, "Code for Libraries on behalf of Eric Lease Morgan" <CODE4LIB_at_LISTS.CLIR.ORG on behalf of emorgan_at_ND.EDU> wrote: On Jul 29, 2021, at 12:46 PM, Eric Lease Morgan <emorgan_at_nd.edu> wrote: > So far, Click has been working for me: https://click.palletsprojects.com/en/8.0.x/ My Click script is coming along quite nicely, but now I have a Python noobie question. My script is getting longer and longer with various definitions looking something like this: @click.command() def config() : # do cool stuff here @click.command() @click.argument( 'location' ) def list( location ) : # do more cool stuff @click.command() @click.argument( 'carrel' ) def harvest( carrel ) : # do even more cool stuff What is the technique I should use if I want to put each of these little functions into individual files? In the end, I'd like to have a whole set of little files where each one does a specific operation. I suppose I could create file full of functions, but then that file would be very long. -- Eric "Sort Of Embarrassed" MorganReceived on Thu Jul 29 2021 - 16:39:57 EDT