Skip to main content

Исполняемый пакет для работы с файлами формата txt, json, csv

Project description

'AidarUtils' is a command-line utility designed to simplify working with CSV, JSON, and TXT files. This versatile tool empowers you to:

• Count the number of characters, lines, and words in a .txt file.

• Merge the contents of two .txt files, finding the intersection of their elements.

• Remove duplicates and sort the results of merging and intersection alphabetically for easier data analysis.

• Filter data within a .json file and then convert it to .csv file.

Installation:

pip install AidarUtils

Usage:

Merge 2 .txt files:

python -m setutils --union list1.txt list2.txt

Intersect 2 .txt files:

python -m setutils --intersect list1.txt list2.txt

Remove duplicates and sort:

python -m setutils --union list1.txt list2.txt --unique --sort

.json to .csv conversion with output file name specification:

python -m json2csv --convert products.json --output products.csv

Filtering products by price in .json before converting to .csv:

python -m json2csv --convert products.json --output products.csv --min 10 --max 100

Filtering data by fields "Category" and "Inventory Status":

python -m json2csv --convert products.json --output products.csv --category electronics --stock

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

aidarutils-0.1.0.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

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

AidarUtils-0.1.0-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

Details for the file aidarutils-0.1.0.tar.gz.

File metadata

  • Download URL: aidarutils-0.1.0.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for aidarutils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b54db1a0750f05b56637fa25c0263c0c475aca160a49952f16a41ded779d0c7e
MD5 0bee0ee162ac2a619670855956368dd9
BLAKE2b-256 937080ac25b5c4aa54171068598ccf792767d384b92f8cfcb2d688c9c7b32900

See more details on using hashes here.

File details

Details for the file AidarUtils-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: AidarUtils-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for AidarUtils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d0fae5f9a6a7d75b664549486a17c57b00af4c9bba53c843b2c0d6836093f78a
MD5 343705e48de7bea01464e1b863fc66f7
BLAKE2b-256 d20dd25cb4ed083775090fdfa7c7ae5846fb99c632415523ab575572490ac364

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