Package: idchecker
IDCheckerIDCheckeris a tool to get a list of ID records from 1Password, sorted by expiration date.DescriptionSinceLotus Notes DBis about to fall into oblivion, a new way of working with ID records is needed.1Passwordwas chosen to store this data. However, there was a problem:1Password does not provide the ability to sort records by custom fields, and this makes working with records inconvenient. This tool solves the sorting problem by using the official 1Password CLI as the basis.IDChecker uses the following ID record fields when working with:Title- the name of the recordExpire- a custom field that actually contains the expiration dateID revalidation owner- ID revalidation owner informationnotes- notes about the record that may contain useful informationEnvironmentLanguage: PythonThird-party software:1Password command-line toolInterface: CLISupported OS: Linux, macOSInstallationRequirements:Python 3.6+The operating systems previously marked as supported have built-in Python supportpipUsually Linux distributions have the pip package manager installed by default. If it is not installed, then follow the installation instructions:https://pip.pypa.io/en/stable/installing/#using-linux-package-managersTo install pip on macOS, use this instruction:https://pip.pypa.io/en/stable/installing/#installing-with-get-pip-pyLinux:$ pip install idcheckermacOS:$ python3 get-pip.py idcheckerUsageUsage:
    idchecker login <1password_url> <useranme>
    idchecker check [--vault=<vault_name>] [--dir=<path>] [--notes]
    idchecker -h | --help
    idchecker -v | --version

Options:
    --vault=<vault_name>            The name of the 1Password vault where the IDs are stored (it is better to frame the name with quotation marks)
    --dir=<path>                    The path to the folder where the report_<datetime>.csv file will be saved
    --notes                          Add notes from the ID record to the report
    -h, --help                      Show this help message.
    -v, --version                   Show the version.All the commands listed below are examples. Use them along with the usage section presented above to understand what you need to doLogging inExecutelogincommand$ idchecker login example.company.1password.com username@example.comThen you will get a message that you need to enterSecret Key. Type itEnter the Secret Key for username@example.com at example.company.1password.com: A3-RTNYOW9-****-****-****-****-****After that you will get a message that you need to enterMaster Password. Type itEnter the password for username@example.com at example.company.1password.com: **********If you have access and you did everything right, you will getSession Tokenin the following message:export OP_SESSION_company="M2gCFb-****-f6qe****vYfx****hdoF****1LJL****"
# This command is meant to be used with your shell's eval function.
# Run 'eval $(op signin company)' to sign in to your 1Password account.
# Use the --raw flag to only output the session token.Just copy the entire line starting withexport, paste it into the terminal, and press Enter$ export OP_SESSION_company="M2gCFb-****-f6qe****vYfx****hdoF****1LJL****"CheckingThe tool allows you to get the result in two ways:As a simpleoutput to the terminal$ idchecker check
    title: ID : NAME 1
    expire: 2020/01/01
    ID revalidation owner: ID revalidation owner information
    ——————————————————
    title: ID : NAME 2
    expire: 2020/02/10
    ID revalidation owner: ID revalidation owner information
    ——————————————————
    title: ID : NAME 3
    expire: 2020/03/21
    ID revalidation owner: ID revalidation owner information
    ——————————————————
    title: ID : NAME 4
    expire: 2020/04/30
    ID revalidation owner: ID revalidation owner informationAs aCSV file$ idchecker check --dir=./After the command is executed, a file calledreport_d-m-Y_H-M-S.csvcontaining the same information in the view of the table will appear in thespecified directory.As described in the usage section, you can additionally add the--notesoption to include notes from 1Password records in the reportAdditional infoThe app is currently under development. The app may contain bugs.Use at your own risk.ContributingFork it.Create your feature branch:git checkout -b my-new-featureCommit your changes:git commit -am 'Add some feature'Push to the branch:git push origin my-new-featureSubmit a pull requestLicenseThe MIT License (MIT)Copyright (c) 2021 Mikalai LisitsaPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.