reddit's python service framework
Project description
baseplate.py
It's much easier to manage a bunch of services when they all have the same shape: the way they're developed, the way they interact with the infrastructure they run on, and the way they interact with each other. Baseplate is reddit's specification for the common shape of our services. This library, Baseplate.py, is the Python implementation of that specification.
Baseplate.py glues together tooling for interacting with the reddit backend ecosystem and spackles over things that are missing. It integrates with Apache Thrift, Pyramid, and client libraries for many systems to transparently make your applications observable.
Baseplate applications transparently get:
- Timing and request rate metrics using statsd
- Distributed tracing with Zipkin
- Error reporting and aggregation with Sentry
And can take advantage of:
- Integration with commonly used clients like: Thrift, SQLAlchemy, cassandra-driver, pymemcache, redis-py, and Kombu
- Secrets securely pulled from Vault
And many other things!
pre-commit
This repo comes with pre-commit hooks that let you (on a voluntary basis) enable pre-commit and/or pre-push hooks.
Configuration can be found at the root of the directory in
.pre-commit-config.yaml
. On its own, the configuration file doesn't do
anything. You either need to run the hooks manually
or install them so that they run
automatically on every commit or push.
Currently, we run the make fmt
target on commit and make lint
/ pytest
actions on push.
Specific hooks can be temporarily disabled.
You can install hooks only for a specific step (i.e. pre-push).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for baseplate-2.5.6b2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fb66d9b6ac7e6ea98a0398876acc1653abf3b1510ae00831c7187192185e5c8 |
|
MD5 | 15058cfe401c3004f180b0bd2310f92f |
|
BLAKE2b-256 | e672c22c21e0a800a0b55e59bcc5562a1e42239ebd077804678d00d312ad954e |