Openfisca-core

Latest version: v41.4.5

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

Scan your dependencies

Page 41 of 60

22.0.2

- Update openfisca_serve [rst](https://openfisca.org/doc/openfisca-python-api/openfisca_serve.html) documentation
* Make native gunicorn parameters use in `openfisca serve` obvious and make parameters' format more explicit

22.0.1

- Fix a bug that broke the route `calculate` of the legacy web API since `21.0.2`

22.0.0

Breaking changes

- Improve entities projection consistency

Before, there were inconsistencies in the behaviors of projectors:

_For instance, for a simulation that contains 4 persons in 1 household:_

py
person.household('rent', '2018-02') The rent paid by the household of the person.
>>> [800, 800, 800, 800] Has the dimension of persons (4)

salaries = person.household.members('salary', '2018-02')
sum_salary = person.household.sum(salaries) The sum of the salaries of the person's family
>>> [4000] Has the dimension of household (1)



Now, consistency have been enforced for all entities related helpers (`sum`, `min`, `max`, `all`, `any`, `has_role`, etc.)


py
person.household('rent', '2018-02') The rent paid by the household of the person.
>>> [800, 800, 800, 800] Has the dimension of persons (4)

salaries = person.household.members('salary')
sum_salary = person.household.sum(salaries) The sum of the salaries of the person's family
>>> [4000, 4000, 4000, 4000] Has the dimension of persons (4)


This is a breaking change, as all the adaptations (such as [this one](https://github.com/openfisca/openfisca-france/blob/18.11.0/openfisca_france/model/prestations/minima_sociaux/rsa.py#L375-L376)) used to overcome these inconsistensies must be removed.

21.5.0

- Introduce:
- [`person.get_rank(entity, criteria, condition)`](https://github.com/openfisca/openfisca-core/blob/21.4.0/openfisca_core/entities.py#L278-L293)
- [`entity.value_nth_person(k, array, default)`](https://github.com/openfisca/openfisca-core/blob/21.4.0/openfisca_core/entities.py#L515-L520)

21.4.0

New features

- Improve `Tracer`:
- Make aggregation more efficient
- Introduce [`tracer.print_trace`](https://openfisca.org/doc/openfisca-python-api/tracer.html#openfisca_core.tracers.Tracer.print_trace)

21.3.6

- Describe `/spec` endpoint in OpenAPI documentation available at `/spec`

Page 41 of 60

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.