Python-fieldclimate

Latest version: v1.3

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.3

----------------

High-level changes:

- Dropped ``aiohttp`` library in favor of using ``asks``.
- This adds support for asyncio, trio, and curio async loops.
- Dropped synchronous interface on FieldClimateClient.
**This means all client methods must now be awaited.**

Implementation changes:

- Moved url validation functions from ``fieldclimate.utils`` to ``fieldclimate.clean``.
These functions now raise ``AssertionError`` explicitly, as ``assert`` statements can be switched off.
- FieldClimateClient now inherits from ``asks.Session``,
which provides async context manager usage and connection rate limiting.
- Removed BaseClient and HmacClient classes, unifying their functionality in FieldClimateClient.
- Added tests for trio and curio event loops.

Bonus changes:

- Added DjangoFieldClimateClient.
This subclass gets your HMAC authentication keys from django's settings,
which can save you a few lines of code if you already use django.

1.2

----------------

- Dropped ``requests`` library in favor of using ``aiohttp`` for both sync and async interfaces.

1.1

----------------

- Renamed all ``station_id`` method parameters to ``station``, possibly breaking your code.
- This argument can now handle an entire station dictionary, and will extract the station_id automatically.

1.0

----------------

- Initial PyPI release. 🎉

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.