Skip to main content

Python module for accessing groundwater data internally at DEW

Project description

dew_gwdata

Python module for accessing groundwater data internally at DEW

Install

The source code is on Bitbucket, while Python packages (source and binary) are published on the Python Package Index and on a dedicated channel on Anaconda Cloud.

From PyPI (most recent release)

Run this in Command Prompt to install from PyPI:

pip install dew_gwdata

To upgrade to the latest version:

pip install -U dew_gwdata

From Anaconda

You can also install using conda/mamba if you prefer:

mamba install -c dew-waterscience dew_gwdata

To upgrade:

mamba upgrade -c dew-waterscience dew_gwdata

The version may not be as up-to-date as the PyPI version.

From Bitbucket

This is how you can install the latest version of the source code directly from Bitbucket (the version control repository):

python -m pip install git+https://kinveraritysagov@bitbucket.org/dewsurfacewater/dew_gwdata.git

You will need to replace kinveraritysagov with your Bitbucket username, and you will also need access to the source repository on the Bitbucket dewsurfacewater workspace.

Usage

Check out complete documentation at:

http://bunyip:8191/python-docs/dew_gwdata/latest_source/index.html

Webapp usage

"New" Waterkennect is implemented by the dew_gwdata.webapp module. To execute the webapp navigate to the folder containing the source code, i.e. the dew_gwdata/webapp folder within this repository, and run:

uvicorn dew_gwdata.webapp.main:app --port 8191 --host 0.0.0.0 --reload --log-config .\log-config.yaml

There is an example logging config file in this folder.

(py310) C:\devapps\syski\code\dew_gwdata\dew_gwdata\webapp>uvicorn dew_gwdata.webapp.main:app --port 8191 --host 0.0.0.0 --reload --log-config .\log-config.yaml
INFO:     [29-11-2023 13:39:10] uvicorn.error.serve - Started server process [63528]
INFO:     [29-11-2023 13:39:10] uvicorn.error.startup - Waiting for application startup.
INFO:     [29-11-2023 13:39:10] uvicorn.error.startup - Application startup complete.
DEBUG:    [29-11-2023 13:39:41] dew_gwdata.webapp.models.queries.find_wells - id_types requested: ['unit_no', 'obs_no', 'dh_no']
INFO:     [29-11-2023 13:39:42] 10.55.65.0:58877 - "GET /app/wells_summary?idq=86711&idq_unit_no=1&idq_obs_no=1&idq_dh_no=1&env=prod HTTP/1.1" 200 OK

License

All rights reserved DEW 2023

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

dew_gwdata-0.117.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dew_gwdata-0.117-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file dew_gwdata-0.117.tar.gz.

File metadata

  • Download URL: dew_gwdata-0.117.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for dew_gwdata-0.117.tar.gz
Algorithm Hash digest
SHA256 46827fb9ab5ef89790477c0eb1f5475723d618dad3b559f95551c39fdf05f10e
MD5 517bedb71f1bac79082cbe69aea330ad
BLAKE2b-256 3d7d6de7517caac0154013acb2513f45a5f67e498007ad2b75ce89a120a0f123

See more details on using hashes here.

File details

Details for the file dew_gwdata-0.117-py3-none-any.whl.

File metadata

  • Download URL: dew_gwdata-0.117-py3-none-any.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for dew_gwdata-0.117-py3-none-any.whl
Algorithm Hash digest
SHA256 b4c3cfdc9e7321b18958d397146d5f835cd1253f7f9e4d27919a030a19c17acb
MD5 00fceb229a3deaf5643d07cee229088c
BLAKE2b-256 0b6c67db36410512c5434957de874d90b3e1c1f1193c3624f637913534e23f4b

See more details on using hashes here.

Supported by

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