Skip to main content

catalog and store funny pictures

Project description

Catsnap
======

Catsnap is a tool for managing your pictures. Never again will you find yourself without the perfect cat gif or image macro to express your feelings!

How it works
------------

Catsnap uses Amazon S3 and DynamoDb to store and organize your images. Images are hosted for public access on S3, and each image can have one or more tags associated with it.

Once you store an image, you can look it up by its tags. Easy!

Installation and Setup
----------------------

* install catsnap using `pip <http://pypi.python.org/pypi/pip/>`_: ``pip install catsnap``
* Depending on your python setup, this may install catsnap to ``/usr/local/share/python``. Most people will have no problem, but if you're getting 'command not found' errors, make sure catsnap is in your ``$PATH`` by adding this line to your ``.bashrc`` or ``.bash_profile``:
- ``export PATH=/usr/local/share/python:$PATH``
* `Sign up for an Amazon Web Services account <https://aws-portal.amazon.com/gp/aws/developer/registration/index.html>`_ (or use your existing account).
* Make sure you're signed up for S3 and DynamoDB (you typically are by default).
* run ``catsnap setup`` and the catsnap script will walk you through configuring the necessary options.

Using Catsnap
-------------

Add an image:

``catsnap add http://i.imgur.com/zqCWA.gif dancing cat kitten``

Find an image by tag:

``catsnap find kitten``

Configuring Catsnap
-------------------

Catsnap supports configuration in 3 ways: environment variable, config file, and command-line argument. Command-line flags override config file settings, which override environment variables. Variables in each environment look slightly different:

``export CATSNAP_AWS_ACCESS_KEY_ID=itsme``
``catsnap --aws-access-key-id=itsme ...``
``echo 'aws_access_key_id = itsme' >> ~/.catsnap`` (this is not strictly correct; the setting needs to be in the correct section. It is best to use ``catsnap config`` to edit your ~/.catsnap)

How Catsnap interacts with your AWS account
-------------------------------------------

Catsnap requires `an S3 bucket <http://aws.amazon.com/s3/>`_ to host your images. You can use an existing bucket, or Catsnap can create one for you. The name of the bucket will be visible in your image urls if you send them to other people, so don't choose something embarassing!

Catsnap also creates two dynamodb tables. Dynamodb doesn't offer namespaced tables, so the tables' names are prefixed with your bucket name. This should prevent catsnap from conflicting with any of your other tables' names.

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

catsnap-2.3.0.tar.gz (10.3 kB view details)

Uploaded Source

File details

Details for the file catsnap-2.3.0.tar.gz.

File metadata

  • Download URL: catsnap-2.3.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for catsnap-2.3.0.tar.gz
Algorithm Hash digest
SHA256 ab4654af84994d46e8e9b227d12afd8185e4362bb9555e7571b7456f142f75d7
MD5 b2452dce390a0471f95215e35489f675
BLAKE2b-256 28772b8dce580b0a7eae3ad9295d53b26b64e80f6cf62a52d8e4529b196828ee

See more details on using hashes here.

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