The official Python client for the Felt API
felt-python is a Python client for the Felt API. It provides convenient wrappers for common operations like creating, deleting and updating maps and data layers.
This client is especially useful at simplifying certain operations like uploading and refreshing files and (Geo)DataFrames or updating layer styles and element properties.
Installation
pip install felt-python
Basic Usage
Authentication
To authenticate with the Felt API, you need to provide your API token. You can either
pass it explicitly to function calls or set it in the FELT_API_TOKEN environment variable.
Use the Felt dashboard to create a new token.
import os
os.environ["FELT_API_TOKEN"] = "YOUR_API_TOKEN"
Create a map
from felt_python import create_map
response = create_map(
title="My new map",
lat=40,
lon=-3,
public_access="private",
)
map_id = response["id"]
Upload anything
from felt_python import upload_file
upload = upload_file(
map_id=map_id,
file_name="path/to/file.csv",
layer_name="My new layer",
)
layer_id = upload["layer_id"]
Uploading a Pandas DataFrame
import pandas as pd
from felt_python import upload_dataframe
df = pd.read_csv("path/to/file.csv")
upload_dataframe(
map_id=map_id,
dataframe=df,
layer_name="Felt <3 Pandas",
)
Uploading a GeoPandas GeoDataFrame
import geopandas as gpd
from felt_python import upload_geodataframe
gdf = gpd.read_file("path/to/file.shp")
upload_geodataframe(
map_id=map_id,
geodataframe=gdf,
layer_name="Felt <3 GeoPandas",
)
Refreshing a layer
from felt_python import refresh_file_layer
refresh_file_layer(
map_id=map_id,
layer_id=layer_id,
file_path="path/to/new_file.csv",
)
Styling a layer
from felt_python import get_layer, update_layer_style
current_style = get_layer(
map_id=map_id,
layer_id=layer_id,
)["style"]
new_style = current_style.copy()
new_style["color"] = "#FF0000"
new_style["size"] = 20
update_layer_style(
map_id=map_id,
layer_id=layer_id,
style=new_style,
)
Notebooks
Check out our Juypter notebooks for a complete set of examples.
Documentation
Visit the API Reference section of our Developer docs for complete documentation of all endpoints in the REST API.
Support
We are always eager to hear from you. Reach out to support@felt.com for all your Felt support needs.
Metadata
Release files for felt-python 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| felt_python-0.1.3.tar.gz | 32.5 kB | Without provenance | Details for felt_python-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| felt_python-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for felt_python-0.1.3-py3-none-any.whl |
Total release size: 49.4 kB
Release files / felt_python-0.1.3.tar.gz
| Download URL | felt_python-0.1.3.tar.gz |
|---|---|
| Size | 32.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ce3d5f292aa923de4be15d8782acf0d118cc537761d8e1e104d527fca596001
|
|
BLAKE2b-256 checksum How to use checksums |
4e1b48ccb604fb0bd386023e73438d019a057ef4cb303bd9fe762a1f01ea50d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / felt_python-0.1.3-py3-none-any.whl
| Download URL | felt_python-0.1.3-py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28fdb56fea5e9ce25338f9cfa6d612f6707ca8dd9df0454a72b7b5bfb9bb651c
|
|
BLAKE2b-256 checksum How to use checksums |
29d9855db6f1854c2cef6e24cfe0651bb0152ce6058985e91d6c13c5f13d4a23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for felt-python 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.