Explore geodata interactively.
Project description
geo-explorer
Explore geodata interactively.
Opprettet av: ort ort@ssb.no
To install, use one of:
poetry add ssb-sgis
pip install ssb-sgis
GeoExplorer
from geo_explorer import GeoExplorer
from geo_explorer import LocalFileSystem
explorer = GeoExplorer(
start_dir="C:/users/ort/OneDrive - Statistisk sentralbyrå/data",
file_system=LocalFileSystem(),
port=8055,
)
explorer.run(debug=True)
Run locally:
from geo_explorer import GeoExplorer
from geo_explorer import LocalFileSystem
explorer = GeoExplorer(
start_dir="C:/users/user/data",
file_system=LocalFileSystem(),
port=None,
)
explorer.run()
Developer information
Git LFS
The data in the testdata directory is stored with Git LFS.
Make sure git-lfs is installed and that you have run the command git lfs install
at least once. You only need to run this once per user account.
Dependencies
Poetry is used for dependency management. Install poetry and run the command below from the root directory to install the dependencies.
poetry install -E test --no-root
Tests
Use the following command from the root directory to run the tests:
poetry run pytest # from root directory
For VS Code there are extensions for opening a python script as Jupyter Notebook, for example: Jupytext for Notebooks.
Code quality
Run 'ruff' on all files with safe fixes:
poetry run ruff check --fix .
Formatting
Format the code with black and isort by running the following command from the
root directory:
poetry run black .
poetry run isort .
Pre-commit hooks
We are using pre-commit hooks to make sure the code is correctly formatted and consistent before committing. Use the following command from the root directory in the repo to install the pre-commit hooks:
poetry run pre-commit install
It then checks the changed files before committing. You can run the pre-commit checks on all files by using this command:
poetry run pre-commit run --all-files
Documentation
To generate the API-documentation locally, run the following command from the root directory:
poetry run sphinx-build -W docs docs/_build
Then open the file docs/_build/index.html.
To check and run the docstrings examples, run this command:
poetry run xdoctest --command=all ./src/sgis
Contributing
Contributions are very welcome. To learn more, see the Contributor Guide.
License
Distributed under the terms of the MIT license, SSB sgis is free and open source software.
Issues
If you encounter any problems, please file an issue along with a detailed description.
Credits
This project was generated from Statistics Norway's SSB PyPI Template.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file geo_explorer-0.2.1.tar.gz.
File metadata
- Download URL: geo_explorer-0.2.1.tar.gz
- Upload date:
- Size: 36.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8c74387e361fa7a64b11a38453ddb0f06a4ca22d0bcc4e08aada25b6c5f59e1
|
|
| MD5 |
add490a636be3bb1db94bcff204f47ce
|
|
| BLAKE2b-256 |
0ec412ff234895d429cce69f729c6f7ed271e2c693417b264ba2d50ffcdca2bd
|
Provenance
The following attestation bundles were made for geo_explorer-0.2.1.tar.gz:
Publisher:
release.yml on statisticsnorway/geo-explorer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
geo_explorer-0.2.1.tar.gz -
Subject digest:
c8c74387e361fa7a64b11a38453ddb0f06a4ca22d0bcc4e08aada25b6c5f59e1 - Sigstore transparency entry: 275148800
- Sigstore integration time:
-
Permalink:
statisticsnorway/geo-explorer@ce093bdd2fe5a7e78df11f27087b302c5de5f9ea -
Branch / Tag:
refs/heads/main - Owner: https://github.com/statisticsnorway
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ce093bdd2fe5a7e78df11f27087b302c5de5f9ea -
Trigger Event:
push
-
Statement type:
File details
Details for the file geo_explorer-0.2.1-py3-none-any.whl.
File metadata
- Download URL: geo_explorer-0.2.1-py3-none-any.whl
- Upload date:
- Size: 35.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d267fe181ad6a912c0a4f3b93564e1391bb210ec57649cc3ea06564e6cedb7af
|
|
| MD5 |
35cde4a8b88a9f8315f87fc14015286d
|
|
| BLAKE2b-256 |
9f87919e63f58a1b8894f6367617b42385310739e049e025a1ea3958c14016c5
|
Provenance
The following attestation bundles were made for geo_explorer-0.2.1-py3-none-any.whl:
Publisher:
release.yml on statisticsnorway/geo-explorer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
geo_explorer-0.2.1-py3-none-any.whl -
Subject digest:
d267fe181ad6a912c0a4f3b93564e1391bb210ec57649cc3ea06564e6cedb7af - Sigstore transparency entry: 275148813
- Sigstore integration time:
-
Permalink:
statisticsnorway/geo-explorer@ce093bdd2fe5a7e78df11f27087b302c5de5f9ea -
Branch / Tag:
refs/heads/main - Owner: https://github.com/statisticsnorway
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ce093bdd2fe5a7e78df11f27087b302c5de5f9ea -
Trigger Event:
push
-
Statement type: