Skip to main content

sniprd

https://badge.fury.io/py/sniprd.svg https://travis-ci.org/kejbaly2/sniprd.svg?branch=master https://coveralls.io/repos/kejbaly2/sniprd/badge.svg https://img.shields.io/pypi/dm/sniprd.svg https://img.shields.io/pypi/l/sniprd.svg https://landscape.io/github/kejbaly2/sniprd/master/landscape.svg

Track your activities, comfortably.

DESCRIPTION

Comfortably archive snips of the stuff you get done. Compatible with status-report. Beautiful. Made for Humans.

EXAMPLES

Save a basic snippet with now() timestamp:

snip #home #car I went to the post-office to buy stamps

Save a snippet as completed yesterday:

snip yesterday #project_x reported 36 bugs in BZ, 14 in JIRA

Save a snippet as completed on a specific date in the past:

snip 2015-01-01 pushed 14 code #commits

Save a snippet and connect with others involved:

snip washed dads car today @philly @dad #allowance

Save multiple snippets at once completed the day before yesterday:

snip -1 #project_x did this; #private arrived 30m late

See snippet –help for complete list of available commands.

To retrieve your current week’s saved snippets, use status-report:

status-report --snippets project_x

To sync your current week’s saved snippets with a remote db:

snip sync project_x [https://kejbaly2.sniprd.com]

INSTALLATION

Install directly from Fedora/Copr repository or use PIP:

# Basic dependencies for buiding/installing pip packages
sudo yum install gcc krb5-devel
sudo yum install python-devel python-pip python-virtualenv

# Upgrade to the latest pip/setup/virtualenv installer code
sudo pip install -U pip setuptools virtualenv

# Install into a python virtual environment (OPTIONAL)
virtualenv --no-site-packages ~/virtenv_sniprd
source ~/virtenv_sniprd/bin/activate

# Install sniprd (sudo required if not in a virtualenv)
pip install sniprd

CONFIGURATION - sniprd

The config file ~/.sniprd is used to store general settings:

[general]
uri = ~/.sniprd.db  # DEFAULT

# push (sync) ALL sniprd to another db
[push]
uri = postgresql://user:pass@sniphub.com/shared
exclude_tags = ["private", "confidential"]
exclude_regex = ["secret_code", "fsck"]

# push sniprd with hashtag #home to another db
[push-home]
uri = postgresql://user:pass@server.com/db:5432

# email #project_x sniprd to someone
[push-project_x]
uri = email://get@it.done
include_tags = ["project_x"]

[at-philly]
uri = email://philly@cheeze.com

DOCKER INSTALL

To build and execute in a docker container, run:

make run_docker

See LINKS section below for more docker resources.

GIT COMMIT HOOKS

If you’re planning to make commits to this project, please enable the following git hooks:

# UPDATE according to the correct absolute git path
PATH = ~/sniprd/git-hooks
ln -s $(PATH)/pre-commit.py .git/hooks/pre-commit
ln -s $(PATH)/commit-msg.py .git/hooks/commit-msg

TESTS

To run tests using pytest:

# sudo required if not in a virtualenv
pip install pytest coveralls
coverage run --source=sniprd -m py.test source/tests
coverage report

AUTHORS

Chris Ward

Metadata

Release files for sniprd 0.1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sniprd 0.1.1.1
File Size Uploaded Provenance
sniprd-0.1.1.1.tar.gz 13.7 kB Without provenance Details

Release files / sniprd-0.1.1.1.tar.gz

Download URL sniprd-0.1.1.1.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e05ff24bd49e3d690db128b5b81105af43257ca2d07af786d7db4582e9323c81
BLAKE2b-256 checksum
How to use checksums
587bc32895781e5f84755da368c5146975af8f9d5299ab9d376e442725966851
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for sniprd 0.1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page