semvec/pypi-packages huggingface dataset:
pyopencell 0.4.10
Python wrapper for OpenCell (using REST API)

[![pipeline status](https://gitlab.com/coopdevs/pyopencell/badges/master/pipeline.svg)](https://gitlab.com/coopdevs/pyopencell/commits/master)
[![coverage report](https://gitlab.com/coopdevs/pyopencell/badges/master/coverage.svg)](https://gitlab.com/coopdevs/pyopencell/commits/master)

> :heart: Inspired by [PyOTRS](https://gitlab.com/rhab/PyOTRS) :heart:

PyOpenCell is a Python wrapper for accessing [Open Cell](https://www.opencellsoft.com/) (Version 6) using the
REST API.

You can see all the API information [here](https://api.opencellsoft.com/6.0.0)

Features
--------

Access an OpenCell instance to:

* find a Customer by ID

Installation
============

Dependencies
------------

Create a virtualenv before installing dependencies.

If you are using `virtualenvwrapper` (https://virtualenvwrapper.readthedocs.io/en/latest/).

* Create virtualenv with python 3.7.7

```commandline
$ which python
/usr/bin/python3.7
$ mkvirtualenv --python=/usr/bin/python pyopencell
```
If you are using [pyenv](https://github.com/pyenv/pyenv) with [pyenv-virtualenv](https://github.com/pyenv/pyenv-virtualenv) plugin:
```commandline
$ pyenv virtualenv pyopencell
```

* Install requirements:

```commandline
$ pip install -r requirements.txt
```

Configuration Environment
-------------------------

You need define the OpcenCell API credentials as environment variables. You need define:

```
OPENCELL_BASEURL=<YOUR OC HOST>/opencell
OPENCELL_USER=<YOUR OC USER>
OPENCELL_PASSWORD=<YOUR OC PASSWORD>
```

If this envvars are not defined, a exception will be raised with the name of the envvar not defined.

Python Usage
============

Run test suite
----------

```commandline
$ tox
```

Release process
---

Update CHANGELOG.md following this steps:

1. Add any entries missing from merged merge requests.
1. Duplicate the `[Unreleased]` header.
1. Replace the second `Unreleased` with a version number followed by the current date. Copy the exact format from previous releases.

Then, you can release and publish the package to PyPi:

1. Update the `VERSION` var in `setup.py` matching the version you specified in the CHANGELOG.
1. Open a merge request with these changes for the team to approve
1. Merge it, add a git tag on that merge commit and push it.
1. Once the pipeline has successfully passed, go approve the `publish` step.

License
=======
weatherbuddy 0.1.0
A simple Python package to fetch and process weather data from OpenWeatherMap API.
Requires Python: >=3.7

# weatherbuddy

A simple Python package to fetch and process weather data from the OpenWeatherMap API.

## Features
- Get weather forecast for any city or coordinates
- Returns time, temperature (Celsius), and weather description for the next 12 hours
- Easy to use and extend

## Installation
```sh
pip install weatherbuddy
```

## Usage
```python
from weatherbuddy import Weather
import pprint

api_key = "YOUR_API_KEY"
city = "London"
weather = Weather(api_key, city=city)
print(f"Weather forecast for {city} for the next 12 hours:")
pprint.pprint(weather.next_12_hours_simplified())
```

## Example Output
```
Weather forecast for London for the next 12 hours:
[('2023-10-01 12:00:00', 15, 'light rain'),
 ('2023-10-01 15:00:00', 16, 'moderate rain'),
 ('2023-10-01 18:00:00', 14, 'clear sky'),
 ('2023-10-01 21:00:00', 13, 'light rain')]
```

## Requirements
- Python 3.7+
- requests
- python-dotenv

## API Key
Get your free API key from [OpenWeatherMap](https://openweathermap.org/api).

## License
MIT