Skip to main content

A small tool to remind yourself of your day-to-day accomplishments

Project description

Branch

Build Status

Coverage

master

Build Status

Coverage Status

develop

Develop Build Status

Develop Coverage Status

A command line tool to help remind you of your accomplishments

Limitations

Currently, only the “files” persistence mechanism is implemented. Any other method will raise a NotImplemented exception.

Installation

pip install bragly

OR

$ git clone https://github.com/huntcsg/bragly.git

$ python setup.py install

After installation be sure to run the following command so that your file/s will be in the right place.

$ brag-util init

Base executable

$ brag --help
usage: brag [-h] {w,r,s} ...

positional arguments:
  {w,r,s}     sub command help
    w         Write a new brag entry
    r         Read a group of brag entries
    s         Search for a group of brag entries

optional arguments:
  -h, --help  show this help message and exit

Write

e.g. - brag w Went to seminar, taught mini class to co-workers --tags help teach - brag w Found bug in caching code, let relevant team know --tags network help debug

$ brag w --help
usage: brag w [-h] [-t [TAGS [TAGS ...]]] [-d TIMESTAMP] message [message ...]

positional arguments:
  message               The brag message

optional arguments:
  -h, --help            show this help message and exit
  -t [TAGS [TAGS ...]], --tags [TAGS [TAGS ...]]
                        The tags associated with this brag message
  -d TIMESTAMP, --timestamp TIMESTAMP
                        The time stamp to use for this entry, in ISO-8601
                        format

Read

$ brag r --help
usage: brag r [-h] [-s START] [-p PERIOD | -e END] [-f FORM]

optional arguments:
  -h, --help            show this help message and exit
  -s START, --start START
                        The start time for getting entries
  -p PERIOD, --period PERIOD
                        The time period after the start datetime to get
                        entires. One of hour, day, week, month, year
  -e END, --end END     The end time for getting entries
  -f FORM, --form FORM  The format to display the results in. One of json,
                        json-pretty, log. Default: json

Utility Script

$ brag-util --help
usage: brag-util [-h] {init} ...

positional arguments:
  {init}      sub command help
    init      Initialize brag. If you want a different location for brag than
              /home/hunter/.brag than be sure to set BRAG_DIR environmental
              variable. If you want a different location for the configuration
              file then be sure to set BRAG_CONFIG_PATH to something other
              than /home/hunter/.brag/config.ini

optional arguments:
  -h, --help  show this help message and exit

brag-util init

$ brag-util init --help
usage: brag-util init [-h] [-m {reldb,files,mongodb}] [-c]

optional arguments:
  -h, --help            show this help message and exit
  -m {reldb,files,mongodb}, --mechanism {reldb,files,mongodb}
                        Select the persistence mechanism. Default: files.
  -c, --clobber         If set, overwrites existing configuration files.

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

bragly-0.1.3.zip (17.6 kB view hashes)

Uploaded Source

Built Distribution

bragly-0.1.3-py2.py3-none-any.whl (15.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page