Code Monkey home page Code Monkey logo

zmanim_api's Introduction

Python Coverage Contributors Forks Stargazers Issues MIT License LinkedIn

Table of Contents

About The Project

Simple high-level api for all features of hebrew calendar.
Explore the swagger ยป

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Installation

Docker

  1. Run docker run -p 8000:8000 benyomin/zmanim-api:latest
  2. Open http://localhost:8000 in your browser to explore the swagger.

Python

  1. Clone/fork the repo
  2. Use PDM for build environment and install dependencies: pdm install
  3. Go to project folder: cd %repo_location%/zmanim_api
  4. Run python main.py
  5. Open http://localhost:8000 in your browser to explore the swagger

Tests

Run tests: pytest test/
Run with coverage: coverage run -m pytest -v test/ or coverage xml

Usage

Request:
GET http://localhost:8000/shabbat?cl_offset=18&lat=32.09&lng=34.86
Response:

{
  "candle_lighting": "2020-10-09T17:56:00+03:00",
  "havdala": "2020-10-10T18:50:00+03:00",
  "settings": {
    "date": "2020-10-05",
    "cl_offset": 18,
    "havdala_opinion": "tzeis_8_5_degrees",
    "coordinates": [32.09, 34.86],
    "elevation": 0
  },
  "torah_part": "shemini_atzeres",
  "late_cl_warning": false
}

For more examples, please refer to the Swagger docs

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Contact

Project Link: https://github.com/benyaming/zmanim_api

zmanim_api's People

Contributors

benyaming avatar daebaniyvrot avatar dependabot[bot] avatar

Stargazers

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

Watchers

 avatar  avatar

zmanim_api's Issues

Fast moved/deferred case

When Fast day comes to shabbat or Friday, it should be move forward (or backward).
Need to implement the logic and add field to response.

Server failed to compute shabbat with polar night

Request URL: https://api.ginzburg.io/zmanim/shabbat?cl_offset=18&lat=59.93&lng=30.34&date=2021-05-29
Response:

{
  "message": "AttributeError(\"'NoneType' object has no attribute 'isoformat'\")"
}

Moved holidays

Sometimes holidays like Israel modern holidays fall on shabbat and moves to another days.

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.