Giter Club home page Giter Club logo

streamlit_netdevops's Introduction

streamlit_netdevops

動作確認

  • AlmaLinux9.2
  • Python 3.9.6

セットアップ

pip install -r requirements.txt

サーバー起動

streamlit run home.py

ポート指定で起動する場合

streamlit run home.py --server.port 80

Docker

(podman|docker) run -dt --name=st_netdevop -p 8080:8501 docker.io/ksaegusa0/st_netdevops_supporter:latest

ローカルのテンプレートを読み込ませる場合

(podman|docker) run -dt --name=st_netdevop -p 8080:8501 --mount type=bind,source=<loca_templates_path>,target=/app/st_ndos/files/templates docker.io/ksaegusa0/st_netdevops_supporter:latest

機能

  1. parser
    テキストエリアに書き込んだテキスト、もしくはアップロードしたテキストをパース。テンプレートはfiles/templatesに格納しているもの、もしくはアップロードが可能。
    パース結果をjmespathで絞り込むクエリの確認がでます。
  2. regex
    テキストエリアに書き込んだテキスト、もしくはアップロードしたテキストの行にマッチする正規表現の確認ができます。
  3. commander
    showコマンドの実行結果の確認とテキストダウンロードができます。

利用例

  1. parser テキストとパーサーを選択すると、パース結果が表示されます
    image
    クエリ文を入力し、[クエリ実行]をクリックします。クエリ結果が表示されます。
    image
    jmespathのfunctionも利用可能です。
    image

    ChatGPTにクエリ文を確認することが可能です
    ※ 取り扱う情報にはご注意ください
    利用時は[API Key Setting]からOpenAIのAPI Keyを入力する
    image
    質問を入力し実行を押し応答があるまで待機
    回答としてクエリが表示される。 image

  2. regex テキストに対して正規表現のマッチした行を表示させます。
    image
    正規表現を入力し[抽出]をクリックします。マッチした行数と文が表示されます。
    image

  3. commander
    認証情報を入力し、コマンドを実行します。
    image
    実行結果が表示されます。[テキストダウンロード]をクリックすると<アドレス>_<コマンド>.textで保存されます。
    コマンド内のスペースおよびパイプはアンダースコアに置換されます。 image

streamlit_netdevops's People

Contributors

ksaegusa avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.