Skip to main content

A tool that can easily encrypt and decrypt. Utilizes the symmetric key cryptography method (AES).

Project description

listupy

下の方に日本語の説明があります

Listupy Documentation

Introduction

Listupy is a command-line Python tool that allows you to recursively enumerate Python files within a directory, compute the total number of lines in those files, and consolidate the results into a single markdown file. The name "Listupy" is a portmanteau of "listup" and "python," and is pronounced as "list-a-pie."

Installation

To install Listupy, use the following pip command:

pip install listupy

Usage

You can use Listupy from the command line using the listupy command. Below is an example:

listupy -i /path/to/directory -o /path/to/output.md

The -i argument requires the directory path to be scanned. The -o argument, which is optional, is used to specify the output markdown file path. If the -o argument is not provided, the output will be saved as ./listup_result.md by default.

Code Explanation

Listupy is primarily composed of four functions: r_listup, line_n, listup, and console_command.

  • r_listup(dir_name) is a recursive function that lists all python files in a directory.
  • line_n(file_ls) calculates the total number of lines from a list of files.
  • listup(dir_name) lists all python files in a directory, computes the total line count, and generates a markdown-formatted string.
  • console_command() handles command-line arguments and orchestrates the listup process.

Notes

  • Ensure that the directory you're scanning doesn't contain large numbers of Python files, as this could significantly slow down the performance of Listupy.

Listupyドキュメンテーション

はじめに

Listupyはコマンドラインから利用できるPythonツールで、ディレクトリ内のPythonファイルを再帰的に列挙し、それらのファイルの行数の合計を計算し、結果を1つのmarkdownファイルにまとめます。"Listupy"という名前は"listup"と"python"の合成語で、「リストアッパイ」と読みます。

インストール

Listupyのインストールは以下のpipコマンドで行うことができます:

pip install listupy

使用方法

コマンドラインからlistupyコマンドを使ってListupyを使用できます。以下に使用例を示します:

listupy -i /path/to/directory -o /path/to/output.md

-i引数にはスキャンするディレクトリのパスを指定します。-o引数はオプションで、出力markdownファイルのパスを指定します。-o引数が指定されていない場合、出力はデフォルトで./listup_result.mdとして保存されます。

コードの説明

Listupyは主に4つの関数で構成されています:r_listupline_nlistup、そしてconsole_command

  • r_listup(dir_name)はディレクトリ内の全てのPythonファイルを列挙する再帰関数です。
  • line_n(file_ls)はファイルのリストから行数の合計を計算します。
  • listup(dir_name)はディレクトリ内の全てのPythonファイルを列挙し、行数の合計を計算し、markdown形式の文字列を生成します。
  • console_command()はコマンドライン引数を処理し、リストアッププロセスを調整します。

注意点

  • スキャンするディレクトリが大量のPythonファイルを含んでいないことを確認してください。大量のファイルがあるとListupyのパフォーマンスが大幅に低下する可能性があります。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ezenc-0.0.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ezenc-0.0.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file ezenc-0.0.0.tar.gz.

File metadata

  • Download URL: ezenc-0.0.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.3

File hashes

Hashes for ezenc-0.0.0.tar.gz
Algorithm Hash digest
SHA256 f739dccaaf0794ff52441ae4e7982d22ba70b38afca9b8b35bb11b17f087eca9
MD5 6034c9546b5c622ad92f19adc9da07fb
BLAKE2b-256 d7c5738fa53fe6cb24ad3d81a56d3d7ed781eeb9a5e71f5f89230a9433128daf

See more details on using hashes here.

File details

Details for the file ezenc-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: ezenc-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.3

File hashes

Hashes for ezenc-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e8eb0fccef4b34457e5fbaefd2b8f7c119dec3bdb6f48c0969973b80f6512c51
MD5 6f8c9bf339ce6e4979c28d7f38cae05e
BLAKE2b-256 c7ddf7df4963ec38fd5cbe6e8fc83df77a825683cd5514d6c43a6ae63efce478

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page