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 📚.

Metadata

Release files for meteocatpy 1.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meteocatpy 1.0.8
File Size Uploaded Provenance Actions
meteocatpy-1.0.8.tar.gz 13.7 kB Without provenance Details for meteocatpy-1.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for meteocatpy 1.0.8
File Interpreter ABI Platform Actions
meteocatpy-1.0.8-py3-none-any.whl Python 3 none any Details for meteocatpy-1.0.8-py3-none-any.whl

Total release size: 41.0 kB

Release files / meteocatpy-1.0.8.tar.gz

Download URL meteocatpy-1.0.8.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0b07eb4211fef46f559ea7d8eec51b62b3daba9e372593f3055e84da70c34f9c
BLAKE2b-256 checksum
How to use checksums
a648986ac0174465516f5301c766caa7397e4465b74a093f7bf6cf08a7e5bd9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.2 CPython/3.12.7 Linux/5.15.154+

Release files / meteocatpy-1.0.8-py3-none-any.whl

Download URL meteocatpy-1.0.8-py3-none-any.whl
Size 27.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2cc4640b0a46e265ac82384c41c1c8d8b0a3e0f42627088bc44e4d0906c6bbb8
BLAKE2b-256 checksum
How to use checksums
6c4c32693e963eca904907a4c04770764d5014d775228833829f7f42afe83121
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.2 CPython/3.12.7 Linux/5.15.154+

Security for meteocatpy 1.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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