A simple command-line tool to archive data
Project description
Clarc (CommandLine Archiva)
clarc is a simple CLI tool to archive data like day-to-day commands, notes, text, passcodes etc. The data is stored in a shared sqlite in-memory connection and can be archived & retrieved with helpful commands. The output response is shown in the terminal as json.
Installation
Using Pip
$ pip install clarc
Manual
$ git clone https://github.com/sandiemann/clarc-cli
$ cd clarc
$ python setup.py install
- Install the dependencies:
$ python -m pip install -r requirements.txt
- Initialize the application (database initialize):
$ python -m clarc init
Usage
$python -m clarc --help
Usage: clarc [OPTIONS] COMMAND [ARGS]...
Options:
-v, --version Show the application's version and exit.
--install-completion Install completion for the current shell.
--show-completion Show completion for the current shell, to copy it or
customize the installation.
--help Show this message and exit.
Commands:
fetch fetch the archived entries --all or by --key ${key}
init initialize the database.
remove remove an archived entry by specefic --key ${key}
upsert update on duplicate key else insert a new entry to db
Features
clarc has the following features:
| Command | Description |
|---|---|
init |
Initializes the application's sqlite database. |
upsert |
insert or update a new entry to the database with a key:value pair. |
fetch |
fetch all or a specific entry by key from database. |
remove |
removes an entry from db by key from database. |
Release History
- 0.1.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clarc-1.0.0.tar.gz.
File metadata
- Download URL: clarc-1.0.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b5d0d18c99d8d66e39733c5556ddc7f19800575e893cf1e160f9958a17650b2
|
|
| MD5 |
7a0a9cf8b89441bef3bff0e00a7e5b94
|
|
| BLAKE2b-256 |
0f572edcdfff6eccec0318f40e05365742e8531c2e78de22f47e1b524f890b51
|
File details
Details for the file clarc-1.0.0-py3.9.egg.
File metadata
- Download URL: clarc-1.0.0-py3.9.egg
- Upload date:
- Size: 9.6 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5d7013e7dfb285f1b80a7847896908b1ccdd38b4336c0e205246b856eb8df03
|
|
| MD5 |
cab5af5778c82c8b7539ca528f84a73b
|
|
| BLAKE2b-256 |
3b9f3aca7409d0e44506fb6df429d196a5b4bc157ce2a39846383f8c8ade8f03
|
File details
Details for the file clarc-1.0.0-py3-none-any.whl.
File metadata
- Download URL: clarc-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2251e4f2b11a2d5a93dc6df5f73cc04e46ba440a600bc3d655ef82d59d396a4
|
|
| MD5 |
e03c5157e6e46b5b9f3b9ee697d9a269
|
|
| BLAKE2b-256 |
ba8489ca53e2189cc428b806f0d4f77bf21d9d24427c14ee748f0bec958208a1
|