Skip to main content

Flomvarsel API

Project description

varsom-flood-client

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

This Python package is automatically generated by the Swagger Codegen project:

  • API version: v1.0.5
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import varsom_flood_client 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import varsom_flood_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import varsom_flood_client
from varsom_flood_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = varsom_flood_client.CapApi(varsom_flood_client.ApiClient(configuration))
startdate = '2013-10-20T19:20:30+01:00' # datetime | 
enddate = '2013-10-20T19:20:30+01:00' # datetime | 

try:
    api_response = api_instance.cap_feed(startdate, enddate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CapApi->cap_feed: %s\n" % e)

# create an instance of the API class
api_instance = varsom_flood_client.CapApi(varsom_flood_client.ApiClient(configuration))
id = 'id_example' # str | 

try:
    api_response = api_instance.cap_id(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CapApi->cap_id: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api01.nve.no/hydrology/forecast/flood/v1.0.5

Class Method HTTP request Description
CapApi cap_feed GET /api/Cap/Feed/{startdate}/{enddate}
CapApi cap_id GET /api/Cap/Id/{id}
RegionApi region_get GET /api/Region/{countyId}
WarningApi warning_all GET /api/Warning/All/{langkey}/{startdate}/{enddate}
WarningApi warning_county GET /api/Warning/County/{county}/{langkey}/{startdate}/{enddate}
WarningApi warning_get GET /api/Warning/{langkey}/{startdate}/{enddate}
WarningApi warning_municipality GET /api/Warning/Municipality/{municipality}/{langkey}/{startdate}/{enddate}

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

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

varsom-flood-client-1.0.0.tar.gz (32.8 kB view details)

Uploaded Source

Built Distribution

varsom_flood_client-1.0.0-py3-none-any.whl (78.3 kB view details)

Uploaded Python 3

File details

Details for the file varsom-flood-client-1.0.0.tar.gz.

File metadata

  • Download URL: varsom-flood-client-1.0.0.tar.gz
  • Upload date:
  • Size: 32.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for varsom-flood-client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0b95918b4fe5da15db32db2d7a834e18b899d508403c1aab1d201cdef5119730
MD5 648d7d372107a894afb1609663c86121
BLAKE2b-256 a16da1037a5cf660a57e977d09676aca2f4893dbf9f01c22e877527c45456c0d

See more details on using hashes here.

File details

Details for the file varsom_flood_client-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: varsom_flood_client-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 78.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for varsom_flood_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ef671520b410958486f4f66c7a64d9171e493ee16b48125b60263e603b39f74
MD5 0f7b0e54362fea309010ad3e8c6b761f
BLAKE2b-256 3f1bd33628b1ab630b8bd2034ccd5265e83c8a6eee67900be1a7c17c4e0d5191

See more details on using hashes here.

Supported by

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