Giter VIP home page Giter VIP logo

holiday_jp-python's People

Contributors

4geru avatar bry-c avatar dependabot-preview[bot] avatar gabriel-tessier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

holiday_jp-python's Issues

travis

add the travis.yml file

support more string date format

Now:
if HolidayJp('1990-01-01').is_holiday:
print('True')

After
if HolidayJp('31/12/1990', 'DD/MM/YYYYY').is_holiday:
print('True')

  • set a configuration default date format
    DEFAULT_STR_DATE_FORMAT = 'YYYY-MM-DD'

More custom holiday

Now we handle the case if the user want to replace the holidays datasets with his own, may be better to set a custom datasets that will be merged with the official one so the user can add and overwrite values. (He can already do it by overwrite the datasets that is a dict, but let's make it more clean).
CUSTOM_HOLIDAY_DATASETS
In case of removing a holiday, maybe need to create a NOT_HOLIDAY_DATASETS that will be set in init

Check if there's holiday in a given list of date

Send a list of day (string, date object)

result = HolidayJp.is_there_holiday(["2020-01-01", "2020-10-22", datetime.datetime.today()])

return True or False

result = HolidayJp.which_are_holiday(["2020-01-01", "2020-10-22", datetime.datetime.today()])

result can be
[HolidayJp<1>, ...]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.