Add CSV support to your Addok instance.
Project description
# Addok plugin add CSV geocoding endpoints
## Install
pip install addok-csv
## API
This plugin adds the following endpoints:
/search/csv
/reverse/csv
### Query parameters
data: the CSV file to process
delimiter (optional): the CSV delimiter (, or ;); if not given, we try to guess
quote (optional): CSV quote
encoding (optional): the encoding of the file (default to ‘utf-8-sig’)
columns (multiple): the columns, ordered, to be used for geocoding; if no column is given, all columns will be used
with_bom: if true, and if the encoding if utf-8, the returned CSV will contain a BOM (for Excel users…)
lat/lon (optional): center to bias the search
Any filter can be passed as key=value querystring, where key is the filter name and value is the column name containing the filter value for each row. For example, if there is a column “code_insee” and we want to use it for “citycode” filtering, we would pass citycode=code_insee as query string parameter.
## Config
CSV_ENCODING: default encoding to open CSV files (default: ‘utf-8-sig’)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for addok_csv-1.0.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 810b4c6baf86cac4d0ef27c2797716ba09ebf443bb99c638d22af1ee8cd6f302 |
|
MD5 | 926c8d1e80124fdbd9b68b062d803dea |
|
BLAKE2b-256 | 8ee5b9ab9850d3ecb742645134ad30789a70c1724cb92b2b73e21e6f3f4898ed |