Skip to main content

A common set of classes for the ColorSplash project python components

Project description

colorsplash-common

Description

colorsplash-common (CSC) is a component of the overarching ColorSplash web application that can be found at https://thurau.io/colorsplash/. ColorSplash allows users to browse royalty free images that have colors within a certain Euclidean distance of a provided HEX code. CSC is a python library hosted on PyPi to allow common features to be included as dependencies within the other python componenets.

You can see other components of this project in the following Github repos

Motivation

A friend was facing issues when trying to create social media posts for an ecommerce company we recently launched. She had developed a branding guide and had chosen what colors she wanted to include in the website, logos, and eventual marketing material. But when it was time to make marketing posts, trying to apply that style guide was difficult. For all the tools on the internet she used, none were able to query royalty free images that were close to the HEX color codes she had selected. This project was born to remedy this issue.

I wanted to provide a clean minimal interface on a website that would have a form for a HEX code, and query a REST API that would return royalty free images that had a subset of colors within close to the original HEX code.

Tech Used

CSC is a very simple python library that tightly couples integration with the various DynamoDB tables in the project. It uses boto3 as the client library.

Installation

Cloning The Project

You can either fork the repo or clone it directly with

$ git clone https://github.com/DanielThurau/colorsplash-common.git
$ cd colorsplash-common

Developing

This project uses poetry to build, test, and publish.

To install dependencies run

$ poetry install

To run the unit tests run

$ poetry run pytest

Usage

CSC is hosted on PyPi so you can use any tool that integrates with PyPi to bring it in as a dependency. The easiest way is with pip. For example

$ pip install colorsplash-common

// TODO link a Github gist showing the use of the library

Contribute

If you'd like to contribute, fork the project and submit a Pull Request.

License

See LICENSE.md

MIT License

Copyright (c) 2021 Daniel Thurau

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

colorsplash-common-0.3.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

colorsplash_common-0.3.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file colorsplash-common-0.3.0.tar.gz.

File metadata

  • Download URL: colorsplash-common-0.3.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.8.10 Darwin/20.6.0

File hashes

Hashes for colorsplash-common-0.3.0.tar.gz
Algorithm Hash digest
SHA256 4b07c0a31ffef9324d0512587d3de033c208fc17aa245fd5df2ef5cf7025e447
MD5 144a746c85a8cda4a4de01870b9c42bb
BLAKE2b-256 a23d61a9ec0459a034cb8d461d423c9c24ba2af6e60f164f9f0d1e0b7817472b

See more details on using hashes here.

File details

Details for the file colorsplash_common-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: colorsplash_common-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.8.10 Darwin/20.6.0

File hashes

Hashes for colorsplash_common-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3f833f7fcaeaa68cdb0a402c126e7538085ca5811be7f6371d6f5efe669dae9
MD5 a89e33734e7f8b59b4bbae31a7e5d53b
BLAKE2b-256 0199232d31f22755c75d6bfeeb29043b5e34b887e85eef9210755df7d58341d9

See more details on using hashes here.

Supported by

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