Python-BasicAuth.

信じられないほど単純なHTTP基本認証実装
今すぐダウンロード

Python-BasicAuth. ランキングとまとめ

広告

  • Rating:
  • ライセンス:
  • Other/Proprietary Li...
  • 価格:
  • FREE
  • 出版社名:
  • Randall Degges
  • 出版社のWebサイト:
  • http://github.com/comradeb14ck/

Python-BasicAuth. タグ


Python-BasicAuth. 説明

Python-BasicAuthは、Dead Simple HTTP Basic Authエンコーダとデコーダです。どうして? HTTPは落ち着くべきだから簡単です。だからこそ、 `` python-basicauth``をインストールするだけで、単に `` PIP Install Basicauth``を実行し、最新バージョンが自動的にインストールされています.usagetoはエンコードされた基本認証文字列を生成します。 `` Python >>>インポートエンコード>>> username、password = 'rdegges'、 'omghax !!!' >>> encoded_str = encode(ユーザー名、パスワード)>>> Encoded_str'Basic CMRLZ2DLCZPVBWDOYXGLMJELMJELMJE = '`` `` `` `` `` `` `` `` `` `` `` `` `encoded basic auth文字列を復号する: `` `python >>> frasicauth importデコード>>> encoded_str = '基本cmrlz2dlczpvbwdoyxglmjelmjelmje ='#>>> username、password = decode(encoded_str)>>> print(ユーザー名、パスワード)( ' RDEGGES '、' OMGHAX !!! ') `` `` `` ``私たちはまた、BasicAuth Import Decodeからの `` Python >>>上記の例から `` Python >>> >>> encoded_str =' cmrlz2dlczpvbwdoyxglmjelmjelmje = '#からの#>>> username、password = decode(encoded_str)>>>印刷(ユーザー名、パスワード)( 'rdegges'、 'omghax !!!') `` `` `` `python >>> Basicauth Import Decodeから、 DecodeError >>> enco. DED_STR = 'lol omg cmrlz2dlczpvbwdoyxglmjelmjelmje ='#無効なハッシュ。>>> username、password = decode(encoded_str)トレースバック(最新のコール):ファイル ""、1行目、1行目 "BASCARCAUTH / __ init_.py"テストを実行するには、Decode RerrorBasicauth.DecodeError``testswantのデコードで49行目に49行目がありますか?問題ありません。依存関係。$ Nosetests .............----------------------------- ------------------------------------- - 0.166SokProductのホームページで13のテストを走行しました


Python-BasicAuth. 関連ソフトウェア