Apiron

Latest version: v8.0.0.post1

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

Scan your dependencies

Page 4 of 5

2.6.0

Added
- Ability to pass optional parameter `allow_redirects` to enable/disable HTTP redirection when calling an endpoint

Changed
- Move to the descriptor protocol from metaclassing under the hood for turning an endpoint into a callable

2.5.0

Added
- Ability to pass dict to `json` keyword argument for raw POST body instead of form-encoded data
- Ability to use regular keyword arguments when calling an endpoint (instead of `path_kwargs`)

Changed
- `DiscoverableService` now inherits from `ServiceBase`, an ancestor common with `Service`, instead of `Service` itself

2.4.0

Changed
- Simplify imports so that all commonly-used classes can be imported with `from apiron import <class>`

Fixed
- Error in calling a dynamic stub endpoint

2.3.0

Added
- `pytest.ini` for `pytest` configuration
- Syntax sugar for calling endpoints

Changed
- Update tests to use `pytest`-style `assert`s and fixtures (`unittest.mock` usage is still in place, for now)
- Make `--cov=apiron` the default when running `pytest`
- Make test output terse by default (`-v` when running restores previous behavior; `-vv` gives explicit test list)
- An endpoint's `stub_response` can optionally be a callable, for returning dynamic values in response to parameters

Fixed
- End PyPI server URL with a slash to avoid a redirect, allowing deployment of build artifacts during release

2.2.0

Added
- Automated release artifact deployment via Travis CI's `providers` feature

Changed
- The `endpoint` module has been split up into a module for each endpoint type, still importable as before

Fixed
- Added the missing `wheel` dependency to `dev-requirements.txt` for creating a wheel distribution during release

2.1.0

Added
- Added ability to create a `StubEndpoint` for stubs

Page 4 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.