semvec/pypi-packages huggingface dataset:
awsserviceendpoints 0.0.2
Micropackage that changes boto3 to return the standard service endpoints

# awsserviceendpoints
Micropackage that changes `boto3` to return the standard service endpoints

This package will replace the legacy AWS endpoints for all services with
the modern endpoints. Boto3 (really, botocore) is still using the legacy
endpoints for some services (most notably SQS) in order to support Python
2.6/2.7. This is unnecessary for Python 3 (and some Python 2.7) users, and 
causes problems with other libraries (and VPC endpoints) that have moved 
to the new service endpoints.

Note that this will only enable the modern endpoints if `ssl.HAS_SNI` returns
`True`.

To use, simply ensure that this library is imported prior to `boto3` being
imported.

```python
import awsserviceendpoints
import boto3
```
openwid 0.1.3
OpenWeather in Dash

<img src="doc/openwid-logo.png" alt="drawing" width="400"/>

**openwid** (OpenWeather in Dash) is a Python package for creating daily weather forecast components in Plotly Dash framework. You can easily add a fully responsive weather forecast card to your Dash applications. Before starting, you need to get a unique API key from <a href="https://home.openweathermap.org/api_keys">OpenWeather</a> website.

## Install
openwid can be installed using
```
pip install openwid
```

## Getting Started

Here is a very simple example that creates 7 day weather forecast card for MontrÃ©al:
```
import dash
import dash_bootstrap_components as dbc
import dash_html_components as html

from openwid import Openwid   # Importing openwid

openwid_mon = Openwid(
    api_key="YOUR_API_KEY",   # <-- Edit Here
    latitude="45.501690",
    longitude="-73.567253"
)

app = dash.Dash(
    __name__, meta_tags=[{"name": "viewport", "content": "width=device-width"}],
    external_stylesheets = [dbc.themes.PULSE]
)

app.layout = html.Div(
    [
        html.Div(
            [
                dbc.Row(
                    dbc.Col(
                        openwid_mon.get_card(city_name="MontrÃ©al", days=7),
                        lg=6,
                        md=6,
                        sm=12
                    ),
                )
            ], style={"margin": "2rem"}
        )
    ]
)

if __name__ == '__main__':
    app.run_server(debug=True)
```

## Constructor / reinitialise

### OPENWID()
You can use Openwid class as an instance.
```
Openwid(
    api_key="YOU_API_KEY",
    latitude="LATITUDE",
    longitude="LONGITUDE"
)
```
The ```Openwid()```constructor takes the following arguments:

**api_key**  
&emsp;the unique OpenWeather API key  
**latitude**  
 &emsp;latitude of the location  
**longitude**  
&emsp;longitude of the location  
    
### Component Functions
You can use this function to add a card component to your layout.

### GET_CARD()
```
get_card(
    city_name="CITY_NAME",
    days=4,
    bg_color="teal"
)
```

The ```get_card```function takes the following arguments:

**city_name**  
&emsp;the city name in card header  
**days**  
&emsp;how many days weather forecast will be shown, default=4  
**bg_color**  
&emsp;background color of the weather card, default=#00202f  

## Screenshots
<img src="doc/screenshot-1.png" alt="drawing"/>