GithubHelp home page GithubHelp logo

wolfhong / lunarcalendar Goto Github PK

View Code? Open in Web Editor NEW
59.0 5.0 17.0 295 KB

A lunar calendar converter in Python, including 24 solar terms and a number of solar holidays and lunar holidays, mainly from China.

Home Page: https://pypi.org/project/LunarCalendar/

License: MIT License

Makefile 0.07% Python 9.39% HTML 90.54%
lunar-calendar festival chinese-festivals solar-calendar lunar-solar-converter 24-solar-terms lunisolar-calendar

lunarcalendar's People

Contributors

wolfhong avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

lunarcalendar's Issues

sdist file on pypi is broken (pip install [sdist file] fails)

Hello,

The library imports itself in its setup.py: here
Usually it shouldn't import a package during the bootstrap of the build of that package.
To import itself, the package must have all its dependencies already present in the virtualenv before it starts building.

Could you change to a better way to get that version string and update pypi?
For example, put it in a different file that does not import other dependencies, and import that.

Thanks

Wrong algorithm

I try this and the algorithm gives me the wrong output:
print(Lunar.from_date(datetime.date(2021, 1, 4))) --> Lunar(year=2020, month=11, day=21, isleap=False)

It should be: Lunar(year=2020, month=11, day=22, isleap=False)

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.