New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ISO code based constructor #257
Comments
Yeah I did this kind of table like that lately: https://github.com/Natim/Diggory/blob/master/diggory/calendar/__init__.py#L27 |
I see there is
Am I using it is a right way? |
Manual registration using ISO-3166 and ISO-3166-2 codes for non European calendars:
|
When will be the next release with the |
the latest to date, released yesterday, now contains the registry utility. Go for it! :o) |
Is there a reason why only European country are registered? |
@antvig it might be just because I started with one continent. When I have time I'll add some more. Feel free to contribute! ;o) |
I'm planning to work on this in the near future. stay tuned! |
refs #257 FYI, I've transformed the `oceania.py` into a module, for more consistency.
refs #257 FYI, I've transformed the `oceania.py` into a module, for more consistency.
refs #257 FYI, I've transformed the `oceania.py` into a module, for more consistency.
refs #257 FYI, I've transformed the `oceania.py` into a module, for more consistency.
It would be nice to have a constructor based on country ISO2 codes e.g. PL = Poland, FR = France etc.
This should be fairly easy for countries with no state, county specific holidays.
For USA it could be done by passing country + state code. State value would be skipped for other cases countries .
Not sure how counties are coded, nor if there exist any standard.
Perhaps a geonames admin code is a good start? www.geonames.org
The text was updated successfully, but these errors were encountered: