Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

addok-csv-1.0.0rc1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

addok_csv-1.0.0rc1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file addok-csv-1.0.0rc1.tar.gz.

File metadata

File hashes

Hashes for addok-csv-1.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 81446aed67fe0b02883aa1d601050bdcf5d6417695e765177ddbbda192657373
MD5 dc8b9b2196f33986905999a7de00fd95
BLAKE2b-256 2093f8cf682ecc86ec9979a639cc5299408166ac04bfe631a476f147e3f2d611

See more details on using hashes here.

File details

Details for the file addok_csv-1.0.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for addok_csv-1.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 810b4c6baf86cac4d0ef27c2797716ba09ebf443bb99c638d22af1ee8cd6f302
MD5 926c8d1e80124fdbd9b68b062d803dea
BLAKE2b-256 8ee5b9ab9850d3ecb742645134ad30789a70c1724cb92b2b73e21e6f3f4898ed

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page