# Which framework can be use for ReST API

**URL:** <https://discuss.python.org/t/which-framework-can-be-use-for-rest-api/4594>\
**Category:** Python Help\
**Created:** [June 29, 2020, 10:33am UTC](https://discuss.python.org/t/which-framework-can-be-use-for-rest-api/4594 "2020-06-29T10:33:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Animesh-ctrl](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/animesh-ctrl/32/2749_2.png) [@Animesh-ctrl](https://discuss.python.org/u/Animesh-ctrl)\
**Post date:** [June 29, 2020, 10:33am UTC](https://discuss.python.org/t/which-framework-can-be-use-for-rest-api/4594/1 "2020-06-29T10:33:47Z")

</div>

I want to use the OpenNMS ReST API through Python. Since I’m a beginner so I want to know which framework will be fine for me.  
As per my understanding “to use the ReST API, there is no such framework” but to "develop any ReST API there will be a lot of frameworks such as Flask, Django. is it correct?

---

<div class="post-metadata">

**Author:** ![Owen](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/owen/32/2414_2.png) [@Owen](https://discuss.python.org/u/Owen)\
**Post date:** [June 29, 2020, 6:13pm UTC](https://discuss.python.org/t/which-framework-can-be-use-for-rest-api/4594/2 "2020-06-29T18:13:28Z")

</div>

To use a rest api from python, you need to send http requests. A common way to do that is to use [Requests](https://requests.readthedocs.io/en/master/).

If you prefer to use only the standard library, you can instead use [urllib](https://docs.python.org/3.8/library/urllib.request.html#module-urllib.request)

---

<div class="post-metadata">

**Author:** ![b11c](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/b11c/32/2350_2.png) [@b11c](https://discuss.python.org/u/b11c)\
**Post date:** [July 1, 2020, 7:47am UTC](https://discuss.python.org/t/which-framework-can-be-use-for-rest-api/4594/3 "2020-07-01T07:47:42Z")

</div>

If the API has an OpenAPI (aka Swagger) specification available, I’d recommend you to take a look at Pyotr client: [https://pyotr.readthedocs.io/en/latest/](https://pyotr.readthedocs.io/en/latest/)
