Skip to content

dbrojas/Python_OpeningHours

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpeningHours (python)

This module is a parser between the excellent OpenStreetMap Opening Hour format and python datetime objects.

Installation

pip install opening_hours

Usage

from opening_hours import OpeningHours
from datetime import datetime
import pytz


oh = OpeningHours("2016 Mar: Mo-Sa 08:00-13:00,14:00-17:00")
oh.is_open(datetime.now(pytz.timezone('Europe/Paris')))

About

A wrapper of my C_OpeningHours in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%