Skip to main content

Meteocat Python Package for Meteocat Home Assistant Integration

License Python version compatibility pipeline status

meteocatpy is a Python package to interact with the Meteocat API. Allows you to obtain meteorological data and lists of municipalities from the Meteocat API.

NOTE: Meteocat API requires to use an API_KEY, you should ask to (https://apidocs.meteocat.gencat.cat/documentacio/acces-ciutada-i-administracio/)

Installation

You can install the package from PyPI using pip:

pip install meteocatpy
from meteocatpy.town import MeteocatTown

# Replace 'tu_api_key' with your actual API key
api_key = "tu_api_key"
town_client = MeteocatTown(api_key)

# Get a list of municipalities (asynchronous call)
municipios_data = await town_client.get_municipis()
print(municipis)

Credits

This is a personal project.

Authors:

  • Figorr

Contributing

If you would like to contribute to this project, please open an issue or create a pull request. I'd be happy to review your contributions!

  1. Check for open features/bugs or initiate a discussion on one.
  2. Fork the repository.
  3. Install the dev environment: make init.
  4. Enter the virtual environment: pipenv shell
  5. Code your new feature or bug fix.
  6. Write a test that covers your new functionality.
  7. Update README.md with any new documentation.
  8. Run tests and ensure 100% code coverage for your contribution: make coverage
  9. Ensure you have no linting errors: make lint
  10. Ensure you have typed your code correctly: make typing
  11. Add yourself to AUTHORS.md.
  12. Submit a pull request!

License

Apache-2.0. By providing a contribution, you agree the contribution is licensed under Apache-2.0.

API Reference

See the docs 📚.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

meteocatpy-1.0.7.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

meteocatpy-1.0.7-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

Details for the file meteocatpy-1.0.7.tar.gz.

File metadata

  • Download URL: meteocatpy-1.0.7.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.0

File hashes

Hashes for meteocatpy-1.0.7.tar.gz
Algorithm Hash digest
SHA256 e658cf6473601e2af94e4ea675fe0f78ace6bd9f00e41389f3510a83f69ab07e
MD5 f9a97feaf45da609cb310fc11a84a616
BLAKE2b-256 c4294f811bf1cfbff30847649fd3651fe186d72e6c670337891f464b34f20705

See more details on using hashes here.

File details

Details for the file meteocatpy-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: meteocatpy-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 27.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.0

File hashes

Hashes for meteocatpy-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 75dcf89630a1cfffb8daf3869ff07df8245e443e9e161ad3dd4889cff1bc0be6
MD5 0491a5803b09e1931273e2baad36d52a
BLAKE2b-256 1148b41adb53f5f1f8656c0cb2e3a9d756bb3c21ded59fb323024872f26677fb

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.8

2 files

This release

1.0.7 This release

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.0.20

2 files

0.0.19

2 files

0.0.18

2 files

0.0.17

2 files

0.0.16

2 files

0.0.15

2 files

0.0.14

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

0.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page