Metadata-Version: 2.1
Name: servicelayer
Version: 1.21.2
Summary: Basic remote service functions for alephdata components
Home-page: http://github.com/alephdata/servicelayer
Author: Organized Crime and Corruption Reporting Project
Author-email: data@occrp.org
License: MIT
Keywords: storage files s3
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: banal (<2.0.0,>=1.0.6)
Requires-Dist: normality (<3.0.0,>=2.4.0)
Requires-Dist: fakeredis (<3.0.0,>=2.11.2)
Requires-Dist: redis (<=4.6.0)
Requires-Dist: sqlalchemy (<3.0.0,>=1.4.49)
Requires-Dist: structlog (<24.0.0,>=20.2.0)
Requires-Dist: colorama (<1.0.0,>=0.4.4)
Requires-Dist: pika (<2.0.0,>=1.3.1)
Provides-Extra: amazon
Requires-Dist: boto3 (<2.0.0,>=1.11.9) ; extra == 'amazon'
Provides-Extra: dev
Requires-Dist: twine ; extra == 'dev'
Requires-Dist: moto ; extra == 'dev'
Requires-Dist: boto3 (<2.0.0,>=1.11.9) ; extra == 'dev'
Requires-Dist: pytest (>=3.6) ; extra == 'dev'
Requires-Dist: coverage ; extra == 'dev'
Requires-Dist: pytest-cov ; extra == 'dev'
Provides-Extra: google
Requires-Dist: grpcio (<2.0.0,>=1.32.0) ; extra == 'google'
Requires-Dist: google-cloud-storage (<3.0.0,>=1.31.0) ; extra == 'google'

# servicelayer

[![servicelayer](https://github.com/alephdata/servicelayer/actions/workflows/build.yml/badge.svg)](https://github.com/alephdata/servicelayer/actions/workflows/build.yml)

Components of the aleph data toolkit needed to interact with networked services,
such as a storage archive, job queueing, cache, and structured logging. This
package contains some common configuration components for all of these services
using environment variables.

## archive mechanism

This library provides a configurable method for file storage used by aleph and
memorious. It will store files based on their content hash (SHA1) and allows for
later retrieval of the content.


## Release procedure


```
git pull --rebase
make build-docker test
bump2version --no-commit --dry-run --verbose {patch,minor,major} # to test if this looks good
bump2version --verbose {patch,minor,major}
git push --atomic origin main $(git describe --tags --abbrev=0)
```
