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
Metadata
Release files for abook-parser 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| abook_parser-0.1.0.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| abook_parser-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.0 kB
Release files / abook_parser-0.1.0.tar.gz
| Download URL | abook_parser-0.1.0.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39353a57ff89ea753accb6e0ac359b718fb44c7497a29e832cd92db861721094
|
|
BLAKE2b-256 checksum How to use checksums |
7f23baa3509a0691a904bdc644d8e8f474188990b662fc41b5d4381cc52b4e4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / abook_parser-0.1.0-py3-none-any.whl
| Download URL | abook_parser-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3eaab29cf5fe20c15acbfe5e0779f8ede3e4f283ff17a4b955bb4c452db8ac94
|
|
BLAKE2b-256 checksum How to use checksums |
2e06340fd7d3f0ef6b5a7f56878f78e70af20c5d441a6939c8d88cc01db49ccd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|