I've seen api-paste.ini as a conf file after installing openstack. It looks like substituting some prefixes for python implementation but have no clue about this. Here, my questions are:
What script is it? it looks like very bizarre grammar like the following:
[composite:metadata]
use = egg:Paste#urlmap
/: meta
How does it work within python script?
See documentation for Paste Deploy.
Theapi-paste.ini
is the configuration for the above web-services framework. Paste.deploy allows you to separate concerns between writing your application and middleware/filters from the composition of them into a web service. You define you WSGI applications and any middleware filters in the configuration file then you can compose pipelines which include the middleware/filters you want into your web-service, e.g. authentication, rate-limiting, etc. app:meta
will be bound to /
and you should have a declaration of app:meta
later in the file. The implementation of the composite app is declared via the use
and the egg:Paste#urlmap
is a simple reference implementation. paste.deploy.loadwsgi.loadapp()
.
There is a proposal/recommendation(?) to move away from Paste Deploy/WebOb to WSME/Pecan see OpenStack Common WSGI
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With