Share to: share facebook share twitter share wa share telegram print page

Requests

Requests
作者 Kenneth Reitz
開発元
  • Kenneth Reitz
  • Cory Benfield
  • Ian Stapleton Cordasco
  • Nate Prewitt
初版 2011年2月14日 (14年前) (2011-02-14)
最新版 2.32.4[1] ウィキデータを編集 - 2025年6月9日 (2か月前) [±]
リポジトリ ウィキデータを編集
プログラミング
言語
Python
対応OS クロスプラットフォーム
種別 HTTPライブラリ
ライセンス Apache License 2.0
公式サイト requests.readthedocs.io ウィキデータを編集
テンプレートを表示

Requestsは、HTTP向けのPythonライブラリである。 Apache License 2.0の条件に基づいて配布されている。 このプロジェクトの目標は、HTTPリクエストを簡単で人間に優しいものにすることである。

RequestsはPythonに同梱されていないライブラリの中で最も人気のあるものの1つであり、デフォルトで同梱することが提案されている[2]

実行例

>>> import requests
>>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))
>>> r.status_code
200
>>> r.headers['content-type']
'application/json; charset=utf8'
>>> r.encoding
'utf-8'
>>> r.text # doctest: +ELLIPSIS
u'{"type":"User"...'
>>> r.json() # doctest: +ELLIPSIS
{u'private_gists': 419, u'total_private_repos': 77, ...}

脚注

  1. ^ "Release 2.32.4"; 閲覧日: 2025年6月15日; 出版日: 2025年6月9日.
  2. ^ Beazley, David (2012年4月). ““R” is for Replacement”. USENIX. 2020年12月2日閲覧。

外部リンク

Prefix: a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9

Portal di Ensiklopedia Dunia

Kembali kehalaman sebelumnya