Comments (1)
I think this can be easily implemented outside of the library, so there is no need to grow the API and add more attributes.
>>> import currency_converter as cc
>>> c = cc.CurrencyConverter()
>>> default_currency = "GBP"
>>>
>>> rate = c.convert(50, "PLN", default_currency)
>>> f"{rate:.2f} {default_currency}"
'9.33 GBP'
This way you can really format the output however you want.
from currencyconverter.
Related Issues (20)
- Documentation not working HOT 4
- fallback option not working HOT 1
- Human readable flag HOT 4
- ModuleNotFoundError: No module named 'currency_converter' HOT 2
- Data is wrong! HOT 1
- Doesnt Support TWD to EUR HOT 1
- Not supported currency HOT 1
- Is there a list with all supported currencys? HOT 1
- Use the worldbank dataset HOT 2
- Take current date is no date data is provided. HOT 1
- How can I access the actual date and rate used when a fallback method is specified? HOT 1
- Detecting target currency based on user's locale HOT 2
- QAR conversion is not supported. HOT 1
- Actual date in rates HOT 1
- Run
- custom file is not available
- Incorrect coversion rate found HOT 2
- Actual currency rates frozen on last release date HOT 2
- Upper bound of last_date maxes out at last_date=datetime.date(2023, 6, 26)) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from currencyconverter.