Coder Social home page Coder Social logo

r0w4n / edr_query_parser Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 3.0 154 KB

The OGC Environmental Data Retrieval API query parser makes it easy to parse and use the API query.

License: GNU General Public License v3.0

Python 100.00%
parser python ogc-api ocg edr envrionmental

edr_query_parser's People

Contributors

metoffice-jmfrancis avatar r0w4n avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

edr_query_parser's Issues

EDRQueryParser.collection_name can raise IndexError instead of ValueError

Expected behaviour

Given the URL https://somewhere.com/collections has been parsed
When when the collection_name property is accessed
Then ValueError('collection name not found in url') is raised

Observed behaviour

>>> import edr_query_parser
>>> edr_query_parser.EDRQueryParser('https://somewhere.com/collections').collection_name
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/net/home/h05/jfrancis/LEELA/edr_query_parser/edr_query_parser/edr_query_parser.py", line 30, in collection_name
    return self.url_parts[self.url_parts.index('collections') + 1]
IndexError: list index out of range

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.