semvec/pypi-packages huggingface dataset:
pyopenweather 0.1.1
Python wrapper for OpenWeather API
License: MIT
Requires Python: >=3.7
Keywords: openweathermap libary web api wrapper client wind temperature humidity

# pyopenweather

pyopenweather is a lightweight asynchronous Python wrapper for the [OpenWeatherMap Current Weather Data API](https://openweathermap.org/current)

## Badges

[![Build Status](https://api.travis-ci.com/gsornsen/pyopenweather.svg)](https://travis-ci.com/github/gsornsen/pyopenweather)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/cca3c27dfeb541978f507efc06ae0d2e)](https://www.codacy.com/gh/gsornsen/pyopenweather/dashboard)
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/cca3c27dfeb541978f507efc06ae0d2e)](https://www.codacy.com/gh/gsornsen/pyopenweather/dashboard)

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install pyopenweather.

```bash
pip install pyopenweather
```

## Usage

### API Key

OpenWeatherMap APIs require an API key to provide valid responses. Please obtain an API key on the [OpenWeatherMap website](https://home.openweathermap.org/users/sign_up).

### Environment Variables

pyopenweather will search for the following environment variables when the `Weather` class is instantiated:

- `OPENWEATHER_API_KEY`
- `LATITUDE`
- `LONGITUDE`

#### `OPENWEATHER_API_KEY`

If you set the API key and the environment variable `OPENWEATHER_API_KEY` the library will use it on instantiation, otherwise the API key can be passed in as the `api_key` parameter.

#### `LATITUDE`

If you set the `LATITUDE` environment variable, the library will use it on instantiation, otherwise the latitude can be passed in as the `lat` parameter.

#### `LONGITUDE`

If you set the `LONGITUDE` environment variable, the library will use it on instantiation, otherwise the longitude can be passed in as the `long` parameter.

### Examples

#### With Environment Variables

```python
from pyopenweather.weather import Weather

weather = Weather()

weather.longitude # returns longitude
weather.latitude # returns latitude
weather.temperature # returns temperature
weather.pressure # returns temperatuire
```

#### Without Environment Variables

```python
from pyopenweather.weather import Weather

weather = Weather(lat=37.34, long=-121.89, api_key='abcdef123456')

weather.longitude # returns longitude
weather.latitude # returns latitude
weather.temperature # returns temperature
weather.pressure # returns temperatuire
```

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License

[MIT](https://choosealicense.com/licenses/mit/)
bootstrap-discord-bot 1.2.0
An opinionated discord.py bot code bootstrapper
License: MIT
Keywords: discord.py cli-tool bootstrapper boilerplate code generator discord bot

<h1 align="center">Bootstrap Discord Bot</h1>

<h2 align="center">An opinionated cli-tool to bootstrap\generate your discord bot code!</h2>

## Demo

<div align="center">
    <img src="https://i.ibb.co/ZWdm21b/demo.gif" alt="demo" width="600"/>
</div>
<br/>

[![Downloads](https://pepy.tech/badge/bootstrap-discord-bot)](https://pepy.tech/project/bootstrap-discord-bot)
[![Downloads](https://pepy.tech/badge/bootstrap-discord-bot/month)](https://pepy.tech/project/bootstrap-discord-bot)
[![Downloads](https://pepy.tech/badge/bootstrap-discord-bot/week)](https://pepy.tech/project/bootstrap-discord-bot)

<br/>
<br/>

## Features

- Support for code with/without cogs.
- .env file support for keys and .gitignore to hide it.
- Bot code pre-built with a utility ping function to get you started!
- Setup new cogs using cli.

## Usage

- Install using

```
pip install bootstrap-discord-bot
```

- cd into your bot directory

- Run `bootstrap-discord-bot -h` to get help

<div align="center">
    <img src="https://i.ibb.co/c61P53p/help.png" alt="help" width="800"/>
</div>
<br/>
<br/>
<br/>

- Run `bootstrap-discord-bot --cogs` to initialize a discord bot with cogs.

<div align="center">
    <img src="https://i.ibb.co/DkzZsQv/cogs.png" alt="cogs" width="800"/>
</div>
<br/>
<br/>
<br/>

- Run `boostrap-discord-bot --nocogs` to initialize a discord bot without cogs.

<div align="center">
    <img src="https://i.ibb.co/hCjP76r/nocogs.png" alt="demo" width="800"/>
</div>
<br/>
<br/>
<br/>

- Run `bootstrap-discord-bot --makecog cog_name file_name` to initialize a file in the cogs folder with required cog boilerplate.

## Built using

- Python
- Discord.py
- argparse
- setuptools