semvec/pypi-packages huggingface dataset:
biogeme 3.3.2
Estimation and application of discrete choice models

# Biogeme
![PyPI](https://img.shields.io/pypi/v/biogeme.svg)
[![Downloads](https://static.pepy.tech/badge/Biogeme)](https://pepy.tech/project/Biogeme)
[![Downloads](https://static.pepy.tech/badge/Biogeme/month)](https://pepy.tech/project/Biogeme)
[![Downloads](https://static.pepy.tech/badge/Biogeme/week)](https://pepy.tech/project/Biogeme)

Biogeme is an open source freeware designed for the maximum likelihood estimation of parametric models in general, 
with a special emphasis on discrete choice models.

## Install
Biogeme requires Python >= 3.10 and can be installed [from PyPI](https://pypi.org/project/biogeme/).

`pip install biogeme`

Installing Biogeme from source can be done after cloning the repository with the following command executed in the 
root directory:

`pip install .`

## Documentation
Further documentation is available on [biogeme.epfl.ch](https://biogeme.epfl.ch)

## Author
[Michel Bierlaire](https://people.epfl.ch/michel.bierlaire), [Ecole Polytechnique Fédérale de Lausanne](https://www.epfl.ch), Switzerland.
part-of-day 0.5.0
This is an astral wrapper, that adds functionality for getting the part of day for a spesific datetime.
Requires Python: <4.0,>=3.9

# Part of Day

This is an astral package wrapper, that uses it's calculations to give the part of day, instead of giving time intervals for spesific parts.

## Installation
To install, run the following command

```
pip install part-of-day
```

## Usage
```python
from part_of_day import PartOfDayCalculator

from datetime import datetime, timezone

pod = PartOfDayCalculator(latitude=15.33, longitude=-7)

# following methods gives results related to now, if a datetime is not given
pod.is_it_day()
# True
pod.is_it_night()
# False
pod.get_part_of_day()
# <PartOfDay.DAY: 'Day'>

# or they can be used with a datetime
dt = datetime(2025, 3, 12, 6, 13, 25, 0, timezone.utc)

pod.is_it_day(dt)
# False
pod.is_it_night(dt)
# True
pod.get_part_of_day(dt)
# <PartOfDay.NIGHT: 'Night'>
```

### Including twilights
By setting `include_twilights` flag in calculator's init, you can enable calculations for dusk and dawn (normally, both counts as night). This also enables using `is_it_dawn` and `is_it_dusk` methods.
```python
from part_of_day import PartOfDayCalculator, PartOfDay

from datetime import datetime, timezone

pod = PartOfDayCalculator(latitude=15.33, longitude=-7, include_twilights=True)

# following methods gives results related to now, if a datetime is not given
pod.is_it_day()
# True
pod.is_it_night()
# False
pod.is_it_dawn()
# False
pod.is_it_dusk()
# False
pod.get_part_of_day()
# <PartOfDayWithTwilights.DAY: 'Day'>
```