This package is in an early development stage. You should expect things to break unannounced until we release a version 1.0.0.
You can use altair_tiles to add tiles from any xyz tile provider such as OpenStreetMap to your Altair chart. It is a counterpart to the amazing contextily package which provides this functionality for matplotlib.
You can find the documentation here.
For a general introduction to plotting geographic data with Altair, see Geoshape - Vega-Altair and Specifying Data - Vega-Altair.
Installation
pip install altair_tiles
or
conda install -c conda-forge altair_tiles
altair-tiles requires at least Vega version 5.26.0. If you use an IDE such as a Jupyter Notebook or VS Code, you usually don't have to worry about this.
Development
python -m venv .venv
source .venv/bin/activate
pip install -e '.[dev]'
Run linters and tests with
hatch run test
Build and view the documentation with
hatch run doc:clean
hatch run doc:build
hatch run doc:serve
To run a clean build and publish, run
hatch run doc:build-and-publish
Metadata
Release files for altair_tiles 0.4.0
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 |
|---|---|---|---|---|
| altair_tiles-0.4.0.tar.gz | 9.5 kB | Without provenance | Details for altair_tiles-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| altair_tiles-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for altair_tiles-0.4.0-py3-none-any.whl |
Total release size: 18.6 kB
Release files / altair_tiles-0.4.0.tar.gz
| Download URL | altair_tiles-0.4.0.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c262a00baad4f37966be9490fc014db0dd7c15c6e98c7cf3cfa5492abb867961
|
|
BLAKE2b-256 checksum How to use checksums |
bc02f08b6d605e514226204505487ad139583e1ea858aad563fd9fbd8d617349
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.28.1
|
Release files / altair_tiles-0.4.0-py3-none-any.whl
| Download URL | altair_tiles-0.4.0-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eeed1a6d89800f6cf5aafa6a59ee735bc7c243cd133acebccabfdbf69cc7e33c
|
|
BLAKE2b-256 checksum How to use checksums |
c8a7a597ff7dd1e1603abd94991ce242f93979d5f10b0d45ed23976dfb22bf64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.28.1
|
Security for altair_tiles 0.4.0
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.