Git Product home page Git Product logo

py_crypt_keeper_client's Introduction

Crypt-Keeper Client

Install

To install using pip:

virtualenv -p `which python3` some_env
source some_env/bin/activate
pip install py_crypt_keeper_client

Development

Getting (giting) the Code

Assuming you keep your source code in a directory names source off your home directory then do the following:

cd ~/source
git clone http://github.com/mauricecarey/py_crypt_keeper_client

Note that you should likely fork the repo on GitHub before cloning to make it easier to send PRs if you intend to submit your changes back to the project.

Setting up a Virtual Environment

Assuming the directory structure as outlined above:

cd ~/source/py_crypt_keeper_client
virtualenv -p `which python3` env
source env/bin/activate

Installing Requirements for Development

Once you have your virtual environment setup and loaded:

pip install -r requirements.txt

Running Unit Tests

Nose is installed as part of the development requirements and we'll show examples of using nose here.

nosetests py_crypt_keeper_client/tests/

or with coverage information:

nosetests --with-coverage --cover-package=py_crypt_keeper_client py_crypt_keeper_client/tests/

Every attempt is made to keep coverage above a minimum of 85% with a goal of 95%, while it is understood that percentages are tricky when it comes to unit testing there are also far to many excuses for writing untested code. Keep this in mind if you are submitting PRs.

Running Integration Tests

There is a simple integration test that communicates with the Crypt-Keeper service then executes a complete round trip file upload to S3 followed by grabbing the download info and downloading from S3. The randomly generated file is uploaded, downloaded, then compared for equality.

python test.py

py_crypt_keeper_client's People

Contributors

mauricecarey avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.