Skip to content
/ spylib Public

Sokanu's Python library that shares abstract logic across our services.

Notifications You must be signed in to change notification settings

sokanu/spylib

Repository files navigation

Spylib (Sokanu Python Lib) CircleCI codecov

Spylib Logo

A library used for sharing abstract code between services

Goals

  1. Encapsulate python modules shared across multiple services (linkforge, careless response, auth, ...) into one repository.
  2. Lower the overhead when creating new microservices.
  3. Create a standardization into how things are done in order to promote faster development time, better code quality, less bugs.
  4. Be framework agnostic.
  5. Use the least number of dependencies as possible.

Documentation

Documentation can be seen here.

How to install spylib

Add the following to your requirements.txt file on its own line; and replace va.b.c with the SEMVER version of this library that you'd like to consume (e.g. v0.0.1) git+https://github.com/sokanu/spylib.git@va.b.c#egg=spylib

Tests

Tests are run be unit test discovery. Please run the following command locally to run the suite.

docker build -t spylib . && docker run spylib

Upgrading Packages

  • When upgrading requirements.txt, pleases also upgrade setup.py if the package will effect other applications that pull in spylib.