Strato-query

Latest version: v3.10.2

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

Scan your dependencies

Page 5 of 10

3.0.2

Fixes
- Fixes broken links to examples in documentation. Now links to new docs site at code.stratodem.com

3.0.1

Changes
- Failed API queries no longer include API token value in the error message (replaced by `**********`)

3.0.0

Changes
- **Breaking** Renames filters to full words in Python package. E.g., `EqFilter` --> `EqualToFilter`
- Arguments no longer must be `tuple`s, but can also be `list`s :tada:
- `data_filters` argument for `APIQueryParams` may be an iterable of `BaseFilter` objects, instead of only `dict`s
- `BaseAggregation` and `SumAggregation` added to handle aggregations instead of relying on arbitrary `dict`s
- `aggregations` argument for `APIQueryParams` may be an iterable of `BaseAggregation` objects, instead of only `dict`s
- Renames `BaseAPIQuery` --> `SDAPIQuery`
- New authentication method to support environment variable at `STRATODEM_API_TOKEN` or `authenticate_to_api('my-api-token')`
- New documentation site with Python, R, Shell, and VBA examples :tada:

python
from strato_query import SDAPIQuery, APIQueryParams, EqualToFilter, LessThanFilter
from strato_query.authentication import authenticate_to_api

authenticate_to_api('my-api-token')

df = SDAPIQuery.query_api_df(
query_params=APIQueryParams(
query_type='COUNT',
table='populationforecast_metro_annual_population',
data_fields=('year', 'cbsa', {'population': 'population'}),
data_filters=(
LessThanFilter(var='year', val=2015),
EqualToFilter(var='cbsa', val=14454),
),
aggregations=(dict(aggregation_func='sum', variable_name='population'),),
groupby=('cbsa', 'year'),
order=('year',),
join=APIQueryParams(
query_type='AREA',
table='geocookbook_metro_na_shapes_full',
data_fields=('cbsa', 'area', 'name'),
data_filters=(EqualToFilter(var='cbsa', val=14454),),
groupby=('cbsa', 'name'),
aggregations=(),
on=dict(left=('cbsa',), right=('cbsa',)),
)
)
)

2.11.1

Fixes
- Fixes an incorrect assertion statement in the `submit_query` method

Related issues:
- [53](https://github.com/StratoDem/strato-query/issues/53)

2.11.0

Adds
- Adds a new filter, `IntersectsFilter`, for querying all geoids whose geometries intersect with the given bounding geometry

Related issues:
- [50](https://github.com/StratoDem/strato-query/issues/50)

2.10.2

Changes
- Changes the pretty print methods in the `APIQueryParams` class so they can handle pretty printing for all query param classes
- Removes the pretty print methods from the `APICalculationQueryParams` class

Related issues:
- [48](https://github.com/StratoDem/strato-query/issues/48)

Page 5 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.