Skip to main content

abook_parser

parser for the abook CLI

Installation

Requires python3.12+

To install with pip, run:

pip install git+https://github.com/purarue/abook_parser

Usage

This can read the addressbook, sort it by some key, and print a formatted version (either JSON or the abook addressbook format).

Usage: abook_parser parse [OPTIONS] FILE

  Parse the addressbook file, and sort it by the name field

Options:
  -t, --output-type [abook|json]  output format type
  -k, --sort-key TEXT             sort addressbook items by key
  -o, --output PATH               output file path
  --help                          Show this message and exit.

It also has commands to add or edit and item with a fzf-based interactive mode.

Usage: abook_parser edit [OPTIONS] FILE

  Edit a field in the addressbook file

Options:
  --ignore-case / --no-ignore-case
                                  ignore case in query
  -q, --query TEXT                query string to search for
  --help                          Show this message and exit.

Tests

git clone 'https://github.com/purarue/abook_parser'
cd ./abook_parser
pip install '.[testing]'
pytest
flake8 ./abook_parser
mypy ./abook_parser

Download files

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

Source Distribution

abook_parser-0.1.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

abook_parser-0.1.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for abook_parser-0.1.0.tar.gz
Algorithm Hash digest
SHA256 39353a57ff89ea753accb6e0ac359b718fb44c7497a29e832cd92db861721094
MD5 dc1a9c27e6aac7749396c1acd7595293
BLAKE2b-256 7f23baa3509a0691a904bdc644d8e8f474188990b662fc41b5d4381cc52b4e4d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for abook_parser-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3eaab29cf5fe20c15acbfe5e0779f8ede3e4f283ff17a4b955bb4c452db8ac94
MD5 3f6dc93773e8726b5cbc83615aeff632
BLAKE2b-256 2e06340fd7d3f0ef6b5a7f56878f78e70af20c5d441a6939c8d88cc01db49ccd

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

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