semvec/pypi-packages huggingface dataset:
TSUtilities 0.0.5
Various utilities for time series forecasting.
Keywords: forecasting,time series,seasonality,trend

# TSUtilities v0.0.2

## Recent Changes

pip install TSUtilities:
```
pip install TSUtilities
```

Example of trend dampening:

```
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np

sns.set_style('darkgrid')
y = np.linspace(0, 100, 100)
plt.plot(y)
plt.show()

y_train = y[:80]
future_y = y[80:]
future_trend = future_y


from TSUtilities.TSTrend.trend_dampen import TrendDampen

dampener = TrendDampen(damp_factor=.7,
                       damp_style='smooth')
dampened_trend = dampener.dampen(future_trend)
```

Example of Prophet Trend Dampening helper function where ts is your input to prophet:

```
from TSUtilities.functions import dampen_prophet

prophet = Prophet()
prophet.fit(ts)
fitted = prophet.predict()

# create a future data frame
future = prophet.make_future_dataframe(periods=len(y_test))
forecast = prophet.predict(future)

#get predictions and required data inputs for auto-damping
predictions = forecast.tail(len(y_test))
predicted_trend = predictions['trend'].values
trend_component = fitted['trend'].values
seasonality_component = fitted['additive_terms'].values
forecasts_no_dampen = predictions['yhat'].values
forecasts_damped = dampen_prophet(y=y.values,
                                  fit_df=fitted,
                                  forecast_df=forecast)
```
uenv 0.0.1
A simple .env reader
Requires Python: >=2.7

# uenv
Tiny simple .env reader.

## Usage
```py
import uenv
```

## Why
Ever writing a Jupyter notebook and you want to use a token, where do you set it?

- write directly to the Jupyter, then it is like write secret to code. Some may git add the .ipynb file and push to GitHub
- set shell ENVIRONMENT variable, then it would need to restart the notebook every time
- read from some random file, then you may need to delete before go production.

`.env` file is a popular way to handle it, put the env key=value inside it and load with some library, e.g https://github.com/theskumar/python-dotenv

## Why uenv?
μenv, like utorrent.
Mu .env reader, because [`dotenv` name on PYPI is already taken](https://pypi.org/project/dotenv/), and https://github.com/theskumar/python-dotenv is a bit more full-features or more than too simple.

## Install

```
pip install git+https://github.com/hvnsweeting/uenv
```

Or

#### TODO

```
pip install uenv
```

or open uenv.py then copy 5 lines of code.
cool-mapMapboxRoute 0.0.3
For generating route path and estimated time
Requires Python: >=3.5

#COOLMAP ROUTE PATH ESTIMATION

Install

pip install cool-mapMapboxRoute

Instructions

from cool_mapMapboxRoute.route_mapbox import CoolmapRoutePath

    obj = CoolmapRoutePath(<from_lat_log>,<to_lat_log>,<mapbox_api_key>)

    #EXAMPLE:
        obj = CoolmapRoutePath("34.01076,-117.44858","33.94559,-118.18381",<mapbox_api_key>)

#to get the path of route
    obj.get_mapbox_response()

#return estimated time of route
    obj.estimated_time_in_minute()

#return estimated distance of route
    obj.estimated_distance_in_mile