Skip to main content

papyrus_ogcproxy

Project description

papyrus_ogcproxy provides an easy and convenient method for embeding an OGC proxy in Pyramid applications.

The source code of papyrus_ogcproxy is straightforward, so if papyrus_ogcproxy doesn’t do what you want, open its source code, get inspiration, and write your own code.

Install

papyrus_ogcproxy can be installed with easy_install:

$ easy_install papyrus_ogcproxy

Often you’ll want to make papyrus_ogcproxy a dependency of your Pyramid application, which is done by adding papyrus_ogcproxy to the install_requires list defined in the Pyramid application’s setup.py file.

Set up

Using papyrus_ogcproxy to set an OGC proxy in a Pyramid application is easy.

Edit the application’s main file, __init__.py, and register papyrus_ogcproxy using the Configurator.include method:

def main(global_config, **settings):

    config = Configurator(settings=settings)

    import papyrus_ogcproxy
    config.include(papyrus_ogcproxy)

That’s it! The OGC proxy is available at /ogcproxy.

Here is a test URL: http://localhost:5643/ogcproxy?url=http://wms.jpl.nasa.gov/wms.cgi?SERVICE=WMS&REQUEST=GetCapabilities

Run the tests

To run the tests install the nose, mock and coverage packages in the Python environment, and execute:

$ nosetests --with-coverage

0.1

  • First version

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

papyrus_ogcproxy-0.1.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file papyrus_ogcproxy-0.1.tar.gz.

File metadata

File hashes

Hashes for papyrus_ogcproxy-0.1.tar.gz
Algorithm Hash digest
SHA256 b76602e47096938be339d32c4f391d2f9441572b973789dbdfaa893ae0fc8b7f
MD5 2aa87ed08116287015aa1c3ff7f9d31a
BLAKE2b-256 b7bcda8aa660fd29ff8f932e959d767a669c77e624fd6e965e2afc3ead0afb2b

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