On Tue, Mar 12, 2019, at 3:08 PM, Derek Lambert wrote: > What package is the Python API client in? Is this what's documented at > https://mailman.readthedocs.io/en/latest/src/mailman/model/docs/model.html? > > This is what I was referring to by core.
That project is what we call Mailman Core as a whole. REST API is a part of it. We also have MailmanClient[1], which is Python API to help you talk to Core's REST API. [1]: https://mailmanclient.readthedocs.io/en/latest/ > Thanks, > Derek > > On 3/12/19, 4:48 PM, "Abhilash Raj" <maxk...@asynchronous.in> wrote: > > On Tue, Mar 12, 2019, at 2:01 PM, Derek Lambert wrote: > > I was referring to importing and using the core interfaces and > models directly. > > > > Based on your response I'm hearing that's probably not the best > idea? > > Besides not being the best idea, there is no need to. > > We have a Python API Client and an HTTP REST API, which should be > easy enough to use. I would say it is probably harder for you to figure > out internal models and their relationships to tinker with the > models/database directly. > > Also, the private APIs can change over time and it is preferable to > the public APIs so that your out-of-band scripts don't break as we > change internals of Mailman. > > thanks, > Abhilash > > > > > Thank, > > Derek > > > > On 3/12/19, 12:34 PM, "Abhilash Raj" <maxk...@asynchronous.in> > wrote: > > > > On Tue, Mar 12, 2019, at 9:19 AM, Derek Lambert wrote: > > > I’m writing some code to update maillist owners based on > data from > > > another system. > > > > > > Are there any specific recommendations around using either > the REST API > > > or core over the other? Either should work for my case. > > > > Core is the server which serves the REST API. If you meant > REST API over > > command line, then I would suggest that you go with REST API, > which has way > > more feature than CLI. > > > > > Thanks, > > > > > > Derek Lambert > > > > > > > > > _______________________________________________ > > > Mailman-Developers mailing list -- > mailman-developers@python.org > > > To unsubscribe send an email to > > mailman-developers-le...@python.org > > > > > > https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.python.org_mailman3_lists_mailman-2Ddevelopers.python.org_&d=DwIGaQ&c=PzM68gSF_5r1R7BCE75oeA&r=GgD_LHpJpzqCgYl9euxHhlqYAOmF-LRf0L_q26FThVM&m=QAkYorciYIa-uBBr4N2QiycF0nnfaCT-k4ATfGCk96M&s=krrJ0P6SRMfknUGnDT6UpMvvZHu8dsN6ekoZP9x19dw&e= > > > Mailman FAQ: > > > https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.list.org_x_AgA3&d=DwIGaQ&c=PzM68gSF_5r1R7BCE75oeA&r=GgD_LHpJpzqCgYl9euxHhlqYAOmF-LRf0L_q26FThVM&m=QAkYorciYIa-uBBr4N2QiycF0nnfaCT-k4ATfGCk96M&s=D-3uczrl8I2YfeH6PLI_e8jQma2isgfmHhABGaC1nr0&e= > > > > > > Security Policy: > > > https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.list.org_x_QIA9&d=DwIGaQ&c=PzM68gSF_5r1R7BCE75oeA&r=GgD_LHpJpzqCgYl9euxHhlqYAOmF-LRf0L_q26FThVM&m=QAkYorciYIa-uBBr4N2QiycF0nnfaCT-k4ATfGCk96M&s=RuTdcxrQ4IJr9Da424UGNy99rc7msxFhCsYRhuoacT8&e= > > > > > > > -- > > thanks, > > Abhilash Raj (maxking) > > _______________________________________________ > > Mailman-Developers mailing list -- > mailman-developers@python.org > > To unsubscribe send an email to > mailman-developers-le...@python.org > > > > > https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.python.org_mailman3_lists_mailman-2Ddevelopers.python.org_&d=DwIGaQ&c=PzM68gSF_5r1R7BCE75oeA&r=GgD_LHpJpzqCgYl9euxHhlqYAOmF-LRf0L_q26FThVM&m=QAkYorciYIa-uBBr4N2QiycF0nnfaCT-k4ATfGCk96M&s=krrJ0P6SRMfknUGnDT6UpMvvZHu8dsN6ekoZP9x19dw&e= > > Mailman FAQ: > > > https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.list.org_x_AgA3&d=DwIGaQ&c=PzM68gSF_5r1R7BCE75oeA&r=GgD_LHpJpzqCgYl9euxHhlqYAOmF-LRf0L_q26FThVM&m=QAkYorciYIa-uBBr4N2QiycF0nnfaCT-k4ATfGCk96M&s=D-3uczrl8I2YfeH6PLI_e8jQma2isgfmHhABGaC1nr0&e= > > > > Security Policy: > > > https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.list.org_x_QIA9&d=DwIGaQ&c=PzM68gSF_5r1R7BCE75oeA&r=GgD_LHpJpzqCgYl9euxHhlqYAOmF-LRf0L_q26FThVM&m=QAkYorciYIa-uBBr4N2QiycF0nnfaCT-k4ATfGCk96M&s=RuTdcxrQ4IJr9Da424UGNy99rc7msxFhCsYRhuoacT8&e= > > > > > > > > -- > thanks, > Abhilash Raj (maxking) > > > -- thanks, Abhilash Raj (maxking) _______________________________________________ Mailman-Developers mailing list -- mailman-developers@python.org To unsubscribe send an email to mailman-developers-le...@python.org https://mail.python.org/mailman3/lists/mailman-developers.python.org/ Mailman FAQ: https://wiki.list.org/x/AgA3 Security Policy: https://wiki.list.org/x/QIA9