Re: money field question

2018-05-29 Thread Mike Dewhirst
On 29/05/2018 10:10 PM, Melvyn Sopacua wrote: On dinsdag 29 mei 2018 11:03:56 CEST Mike Dewhirst wrote: > Also, despite using decimal.Decimal under the covers it wants its money > as strings. > > Python 3.6.3 > > >>> from money import money > >>> print(money.Money(23.45, 'AUD')) > > AUD

Re: money field question

2018-05-29 Thread Melvyn Sopacua
On dinsdag 29 mei 2018 11:03:56 CEST Mike Dewhirst wrote: > Also, despite using decimal.Decimal under the covers it wants its money > as strings. > > Python 3.6.3 > > >>> from money import money > >>> print(money.Money(23.45, 'AUD')) > > AUD 23.449289457264239899814128875732421875

Re: money field question

2018-05-29 Thread Mike Dewhirst
On 29/05/2018 6:06 AM, Simon McConnell wrote: Work with what you've got (that being procrastination): http://www.structuredprocrastination.com You should see the pile of stuff I'm avoiding. It's worth a PhD in procrastination poswald/python-money does the same and looks interesting. Might

Re: money field question

2018-05-28 Thread Mike Dewhirst
On 29/05/2018 6:06 AM, Simon McConnell wrote: On Mon., 28 May 2018, 7:50 pm Mike Dewhirst, > wrote: On 24/05/2018 12:03 PM, Mike Dewhirst wrote: > On 23/05/2018 12:31 PM, Simon McConnell wrote: >> I'm in a similar boat at the moment. There >> is h

Re: money field question

2018-05-28 Thread Mike Dewhirst
On 29/05/2018 6:06 AM, Simon McConnell wrote: https://github.com/limist/py-moneyed/blob/master/moneyed/localization.py only has the localisation configured for a handful of currencies, and not our precious AUD :). The shortest party would be adding them all in or doing https://github.com/limi

Re: money field question

2018-05-28 Thread Simon McConnell
On Mon., 28 May 2018, 7:50 pm Mike Dewhirst, wrote: > On 24/05/2018 12:03 PM, Mike Dewhirst wrote: > > On 23/05/2018 12:31 PM, Simon McConnell wrote: > >> I'm in a similar boat at the moment. There > >> is https://github.com/vimeo/py-money too. > > > > I looked at that but it probably won't ever

Re: money field question

2018-05-28 Thread Mike Dewhirst
On 24/05/2018 12:03 PM, Mike Dewhirst wrote: On 23/05/2018 12:31 PM, Simon McConnell wrote: I'm in a similar boat at the moment. There is https://github.com/vimeo/py-money too. I looked at that but it probably won't ever support exchange rates. Not sure yet if that is a show stopper because m

Re: money field question

2018-05-23 Thread Mike Dewhirst
On 23/05/2018 12:31 PM, Simon McConnell wrote: I'm in a similar boat at the moment.  There is https://github.com/vimeo/py-money too. I looked at that but it probably won't ever support exchange rates. Not sure yet if that is a show stopper because maybe forex is a separate thing anyway. I do

Re: money field question

2018-05-22 Thread Simon McConnell
I'm in a similar boat at the moment. There is https://github.com/vimeo/py-money too. Note that django-money uses py-moneyed which does not yet use Babel, so rendering of the correct symbol is limited to a few hardcoded currencies. https://github.com/python-babel/babel On Tuesday, 22 May 20

money field question

2018-05-21 Thread Mike Dewhirst
I have just read ... * Martin Fowler's Money base pattern (P488 to 495) https://martinfowler.com/eaaCatalog/money.html * https://github.com/poswald/python-money * https://github.com/django-money/django-money * https://github.com/limist/py-moneyed ... and I am spoiled for choice. I was going to