Skip to main content

kmdvalg

What is kmdvalg?

  • It is a wrapper around BeautifulSoup to extract data from www.kmdvalg.dk.

  • Bokeh map patches are created with pyshp from shapefiles.

  • The shapefile dataset is: ‘Digdag (Kommunal)’ and ‘DAGI 1:2 mio’ downloaded 2017/12/03 from https://download.kortforsyningen.dk.

  • The voting information is combined with map information before plotting.

See examples

Use nbviewer.jupyter.org to:

Launch interactive Jupyter Notebook mybinder.org to try examples:

https://mybinder.org/badge.svg https://raw.githubusercontent.com/tlinnet/kmdvalg/master/docs/images/image1.png

How to install?

If using conda, these steps will install an environment

# With pip from https://pypi.python.org/pypi/kmdvalg
pip install kmdvalg

Developer install for local conda environment:

# Create environment
conda env create -f environment.yml

# Activate environment
conda env list
source activate kmdvalg

# Enable ipywidgets
jupyter nbextension list
jupyter nbextension enable --py widgetsnbextension --sys-prefix

# Start jupyter
jupyter notebook

Or manual install in root environment:

# Manually install package
python setup.py install --force

#  Manually uninstall
python setup.py install --record files.txt
PACK=`dirname $(head -n 1 files.txt)`
rm -rf $PACK
#cat files.txt | xargs rm -rf

Developer

# Modify version in: kmdvalg/__init__.py

# Create tag
VERS=`python -c "from kmdvalg import __version__; print(__version__)"`
# Adds a tag so that we can put this on PyPI
git tag $VERS -m ""
git push --tags origin master

# Upload your package to PyPI Test
python setup.py sdist upload -r pypitest
open https://testpypi.python.org/pypi/kmdvalg

# Upload to PyPI Live
# Once you've successfully uploaded to PyPI Test, perform the same steps but point to the live PyPI server instead.
python setup.py sdist upload -r pypi
open https://pypi.python.org/pypi/kmdvalg

Metadata

Release files for kmdvalg 0.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kmdvalg 0.13
File Size Uploaded Provenance Actions
kmdvalg-0.13.tar.gz 19.4 kB Without provenance Details for kmdvalg-0.13.tar.gz

Release files / kmdvalg-0.13.tar.gz

Download URL kmdvalg-0.13.tar.gz
Size 19.4 kB
Tags Source
SHA-256 checksum
How to use checksums
183b09190590cc1b16cff0deb68945b26b8dae293a01f565890a64dc9eb8ae85
BLAKE2b-256 checksum
How to use checksums
246d8c92a1d9a65fbaa81eda475c1bf83ee049fca3bf9b85ce4a1e8d3bd468d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for kmdvalg 0.13

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page