<html><head><style>pre,code,address {
  margin: 0px;
}
h1,h2,h3,h4,h5,h6 {
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}
ol,ul {
  margin-top: 0em;
  margin-bottom: 0em;
}
blockquote {
  margin-top: 0em;
  margin-bottom: 0em;
}
</style></head><body><div>On Wed, 2023-09-27 at 19:41 +0530, Gk Gk wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><div>Hi All,</div><div><br></div><div>I am new to python coding and trying to understand how wsgi is implemented in nova or glance api servers. What would be the best way to understand the design here ? Are there any useful documents available over the internet to understand these ?  I understand the WSGI standard. I can't figure out where the start_response functions are coded in nova-api wsgi implementation. Any useful tips are highly appreciated.  Thanks so much for your time.</div><div><br></div><div>Thanks</div><div>Y.G<br></div></div></blockquote><div><br></div><div>Script for WSGI "entry points" are automatically generated by pbr, similar to how standard setuptools builds scripts for console scripts:</div><div><br></div><div><a href="https://github.com/openstack/pbr/blob/d03d617c09e7ba8ddf62d1e53d71685cd708e2da/pbr/packaging.py#L332-L384">https://github.com/openstack/pbr/blob/d03d617c09e7ba8ddf62d1e53d71685cd708e2da/pbr/packaging.py#L332-L384</a></div><div><br></div><div>If you build an sdist or wheel and extract it, you'll see the generated scripts in there. You'll also see then in `bin` if you install e.g. nova and look at the `nova-api` script.</div><div><br></div><div>Stephen</div><div><span></span></div></body></html>