11"""Python currencies"""
22
3- __version__ = '1.0.0'
3+ __version__ = "1.1.0"
44
55
6- from .core .currency import (
7- currency , currencydb , ccypair , currency_pair ,
8- dump_currency_table
9- )
106from .core .country import (
11- country , countryccy , set_new_country ,
12- countries , set_country_map , country_map ,
13- CountryError , eurozone , print_eurozone
7+ CountryError ,
8+ countries ,
9+ country ,
10+ country_map ,
11+ countryccy ,
12+ eurozone ,
13+ print_eurozone ,
14+ set_country_map ,
15+ set_new_country ,
1416)
15- from .core .daycounter import getdc , ActActYears , alldc
17+ from .core .currency import (
18+ ccypair ,
19+ currency ,
20+ currency_pair ,
21+ currencydb ,
22+ dump_currency_table ,
23+ )
24+ from .core .daycounter import ActActYears , alldc , getdc
1625from .dates .converters import (
17- todate , date2timestamp , timestamp2date , yyyymmdd2date ,
18- date2yyyymmdd , juldate2date , date2juldate , date_from_string ,
19- jstimestamp
26+ date2juldate ,
27+ date2timestamp ,
28+ date2yyyymmdd ,
29+ date_from_string ,
30+ jstimestamp ,
31+ juldate2date ,
32+ timestamp2date ,
33+ todate ,
34+ yyyymmdd2date ,
2035)
2136from .dates .futures import future_date_to_code , future_month_dict
22- from .dates .period import period , Period
23-
37+ from .dates .period import Period , period
2438
2539__all__ = [
26- 'currency' , 'currencydb' , 'ccypair' , 'currency_pair' ,
27- 'dump_currency_table' ,
40+ "currency" ,
41+ "currencydb" ,
42+ "ccypair" ,
43+ "currency_pair" ,
44+ "dump_currency_table" ,
2845 #
29- 'getdc' , 'ActActYears' , 'alldc' ,
46+ "getdc" ,
47+ "ActActYears" ,
48+ "alldc" ,
3049 #
31- 'country' , 'countryccy' , 'set_new_country' ,
32- 'countries' , 'set_country_map' , 'country_map' ,
33- 'CountryError' , 'eurozone' , 'print_eurozone' ,
34- 'future_date_to_code' , 'future_month_dict' ,
35- 'period' , 'Period' ,
36- 'todate' , 'date2timestamp' , 'timestamp2date' ,
37- 'yyyymmdd2date' , 'date2yyyymmdd' , 'juldate2date' ,
38- 'date2juldate' , 'date_from_string' , 'jstimestamp'
50+ "country" ,
51+ "countryccy" ,
52+ "set_new_country" ,
53+ "countries" ,
54+ "set_country_map" ,
55+ "country_map" ,
56+ "CountryError" ,
57+ "eurozone" ,
58+ "print_eurozone" ,
59+ "future_date_to_code" ,
60+ "future_month_dict" ,
61+ "period" ,
62+ "Period" ,
63+ "todate" ,
64+ "date2timestamp" ,
65+ "timestamp2date" ,
66+ "yyyymmdd2date" ,
67+ "date2yyyymmdd" ,
68+ "juldate2date" ,
69+ "date2juldate" ,
70+ "date_from_string" ,
71+ "jstimestamp" ,
3972]
4073
4174
@@ -45,22 +78,22 @@ def cross(code):
4578
4679
4780def crossover (code ):
48- return currency (code ).as_cross ('/' )
81+ return currency (code ).as_cross ("/" )
4982
5083
5184def all ():
5285 return currencydb ().keys ()
5386
5487
5588def g7 ():
56- return [' EUR' , ' GBP' , ' USD' , ' CAD' ]
89+ return [" EUR" , " GBP" , " USD" , " CAD" ]
5790
5891
5992def g10 ():
60- return g7 () + [' CHF' , ' SEK' , ' JPY' ]
93+ return g7 () + [" CHF" , " SEK" , " JPY" ]
6194
6295
6396def g10m ():
6497 """modified g10 = G10 + AUD, NZD, NOK
6598 """
66- return g10 () + [' AUD' , ' NZD' , ' NOK' ]
99+ return g10 () + [" AUD" , " NZD" , " NOK" ]
0 commit comments