Skip to main content

A collection of basic python utilities.

Project description

bsutils: Basic Python Utilities

Downloads Python Versions License

A collection of basic python utilities.

Installation

# With pip.
pip install bsutils

# Or pipx.
pipx install bsutils

# Or uv
uv pip install bsutils

Features

Json Utilities

  • get_item_num: Get the number of items in a JSON or JSONL file.
  • iter_json_file: Iterate over a JSON or a JSONL file.
  • load_json_file: Load a JSON or JSONL file.
  • jsonl_to_json: Convert a JSONL file to a JSON file.
  • json_to_jsonl: Convert a JSON file to a JSONL file.
  • write_json_file: Write a JSON or JSONL file.

File Utilities

  • pure_file_name: Get the pure file name from a path, e.g., "document" for "/path/to/ducumnet.pdf".

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

bsutils-0.0.2.post1.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

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

bsutils-0.0.2.post1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file bsutils-0.0.2.post1.tar.gz.

File metadata

  • Download URL: bsutils-0.0.2.post1.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.1

File hashes

Hashes for bsutils-0.0.2.post1.tar.gz
Algorithm Hash digest
SHA256 36cf2b06261a4a099c0ceb8a1b027d01e54da613b1cfd3b0cf3fd38a147ab619
MD5 5b481c4b0be9cf0e1addfb1944ec3f95
BLAKE2b-256 29c92846a0f7e1ce486e507b9509753aef3696c7c3a67dceb95fa198260f99ee

See more details on using hashes here.

File details

Details for the file bsutils-0.0.2.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for bsutils-0.0.2.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 ef917cd41d218a060d4a8b0f6b3e2409484260cfed51d6251984ff3e7eec22f8
MD5 e72f1a1275cc7a8c4583be3e22832e96
BLAKE2b-256 c9fc016c64320f142f4b268d9a69a510ada7d75f3faed882089780629da77eb4

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